-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for opening SceneGraph Inspector in panel (#561)
* add support for opening scenegraph inspector in panel * switch back to private for setupViewMessageObserver * Change icon to link-external --------- Co-authored-by: Brian Leighty <[email protected]> Co-authored-by: Bronley Plumb <[email protected]>
- Loading branch information
1 parent
7671c86
commit abe1813
Showing
4 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
import type * as vscode from 'vscode'; | ||
import { BaseRdbViewProvider } from './BaseRdbViewProvider'; | ||
import { ViewProviderId } from './ViewProviderId'; | ||
import { VscodeCommand } from '../commands/VscodeCommand'; | ||
|
||
export class SceneGraphInspectorViewProvider extends BaseRdbViewProvider { | ||
public readonly id = ViewProviderId.sceneGraphInspectorView; | ||
|
||
constructor(context: vscode.ExtensionContext, dependencies) { | ||
super(context, dependencies); | ||
|
||
this.registerCommandWithWebViewNotifier(context, 'extension.brightscript.sceneGraphInspectorView.refreshNodeTree'); | ||
this.registerCommand(context, VscodeCommand.openSceneGraphInspectorInPanel, async () => { | ||
await this.createOrRevealWebviewPanel(); | ||
}); | ||
} | ||
} |