File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
ProjectDirectoryStructure ,
12
12
ShowComponentHierarchy ,
13
13
} from '@commands' ;
14
+ import { ShowModuleHierarchy } from './commands/showModuleHierarchy' ;
14
15
15
16
export function activate ( context : vscode . ExtensionContext ) {
16
17
@@ -67,6 +68,22 @@ export function activate(context: vscode.ExtensionContext) {
67
68
command . execute ( componentHierarchyPanel . webview ) ;
68
69
} ) ;
69
70
context . subscriptions . push ( showComponentHierarchyDisposable ) ;
71
+
72
+ const showModuleHierarchyDisposable = vscode . commands . registerCommand ( `${ cmdPrefix } .${ ShowModuleHierarchy . commandName } ` , ( ) => {
73
+ const moduleHierarchyPanel = vscode . window . createWebviewPanel (
74
+ 'angularTools_showModuleHierarchy' ,
75
+ 'Angular module hierarchy' ,
76
+ vscode . ViewColumn . One ,
77
+ {
78
+ enableScripts : true
79
+ }
80
+ ) ;
81
+ moduleHierarchyPanel . onDidDispose ( ( ) => {
82
+ } , null , context . subscriptions ) ;
83
+ const command = new ShowModuleHierarchy ( context ) ;
84
+ command . execute ( moduleHierarchyPanel . webview ) ;
85
+ } ) ;
86
+ context . subscriptions . push ( showModuleHierarchyDisposable ) ;
70
87
}
71
88
72
89
// this method is called when your extension is deactivated
You can’t perform that action at this time.
0 commit comments