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) {
1616 let visualizer : Visualize | null = null ;
1717
1818 context . subscriptions . push (
19+ outputChannel ,
1920 commands . registerCommand ( "syntaxTree.start" , startLanguageServer ) ,
2021 commands . registerCommand ( "syntaxTree.stop" , stopLanguageServer ) ,
2122 commands . registerCommand ( "syntaxTree.restart" , restartLanguageServer ) ,
2223 commands . registerCommand ( "syntaxTree.visualize" , ( ) => visualizer ?. visualize ( ) ) ,
2324 commands . registerCommand ( "syntaxTree.showOutputChannel" , ( ) => outputChannel . show ( ) ) ,
24- outputChannel
25+ workspace . onDidChangeConfiguration ( event =>
26+ event . affectsConfiguration ( "syntaxTree" ) &&
27+ restartLanguageServer ( ) )
2528 ) ;
2629
2730 return startLanguageServer ( ) ;
You can’t perform that action at this time.
0 commit comments