File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,15 @@ export function activate(context: ExtensionContext) {
16
16
let visualizer : Visualize | null = null ;
17
17
18
18
context . subscriptions . push (
19
+ outputChannel ,
19
20
commands . registerCommand ( "syntaxTree.start" , startLanguageServer ) ,
20
21
commands . registerCommand ( "syntaxTree.stop" , stopLanguageServer ) ,
21
22
commands . registerCommand ( "syntaxTree.restart" , restartLanguageServer ) ,
22
23
commands . registerCommand ( "syntaxTree.visualize" , ( ) => visualizer ?. visualize ( ) ) ,
23
24
commands . registerCommand ( "syntaxTree.showOutputChannel" , ( ) => outputChannel . show ( ) ) ,
24
- outputChannel
25
+ workspace . onDidChangeConfiguration ( event =>
26
+ event . affectsConfiguration ( "syntaxTree" ) &&
27
+ restartLanguageServer ( ) )
25
28
) ;
26
29
27
30
return startLanguageServer ( ) ;
You can’t perform that action at this time.
0 commit comments