Skip to content

Commit cd987cb

Browse files
committed
correct initialition of extension, if configuration change in initialization phase
1 parent 1132194 commit cd987cb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

vscode-client/extension.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ export async function activateAsync(context: vscode.ExtensionContext): Promise<v
5252
() => undefined
5353
);
5454
},
55-
}),
55+
})
56+
);
57+
58+
await languageClientManger.refresh();
5659

60+
context.subscriptions.push(
5761
vscode.workspace.onDidChangeConfiguration(async (event) => {
5862
for (const s of [
5963
"robotcode.python",
@@ -71,8 +75,6 @@ export async function activateAsync(context: vscode.ExtensionContext): Promise<v
7175
}
7276
})
7377
);
74-
75-
await languageClientManger.refresh();
7678
}
7779

7880
function displayProgress<R>(promise: Promise<R>): Thenable<R> {

vscode-client/testcontrollermanager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ export class TestControllerManager {
154154
}
155155
}
156156
}),
157-
158157
vscode.debug.onDidReceiveDebugSessionCustomEvent((event) => {
159158
if (event.session.configuration.type === "robotcode") {
160159
switch (event.event) {

0 commit comments

Comments
 (0)