Skip to content

Commit 5a5b49c

Browse files
committed
Simplify check if language client manager must be restarted if settings changed
1 parent 15d701a commit 5a5b49c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

vscode-client/extension.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,7 @@ export async function activateAsync(context: vscode.ExtensionContext): Promise<v
6565

6666
context.subscriptions.push(
6767
vscode.workspace.onDidChangeConfiguration(async (event) => {
68-
for (const s of [
69-
"robotcode.python",
70-
"robotcode.languageServer.mode",
71-
"robotcode.languageServer.tcpPort",
72-
"robotcode.languageServer.args",
73-
"robotcode.robot.args",
74-
"robotcode.robot.pythonPath",
75-
"robotcode.robot.env",
76-
"robotcode.robot.variables",
77-
]) {
68+
for (const s of ["robotcode.python", "robotcode.languageServer", "robotcode.robot", "robotcode.robocop"]) {
7869
if (event.affectsConfiguration(s)) {
7970
await languageClientManger.refresh();
8071
}

0 commit comments

Comments
 (0)