Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6c980ae

Browse files
committed
Restart LSP when extension configuration changes
1 parent 8e179b9 commit 6c980ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export function activate(context: ExtensionContext) {
2121
commands.registerCommand("syntaxTree.restart", restartLanguageServer),
2222
commands.registerCommand("syntaxTree.visualize", () => visualizer?.visualize()),
2323
commands.registerCommand("syntaxTree.showOutputChannel", () => outputChannel.show()),
24-
outputChannel
24+
workspace.onDidChangeConfiguration(event =>
25+
event.affectsConfiguration("syntaxTree") &&
26+
restartLanguageServer())
2527
);
2628

2729
return startLanguageServer();

0 commit comments

Comments
 (0)