Skip to content

Commit 84bd029

Browse files
Restart CLI server too when restarting query server
1 parent 7d2e4b6 commit 84bd029

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

extensions/ql-vscode/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class CodeQLCliServer implements Disposable {
240240
/**
241241
* Restart the server when the current command terminates
242242
*/
243-
private restartCliServer(): void {
243+
restartCliServer(): void {
244244
const callback = (): void => {
245245
try {
246246
this.killProcessIfRunning();

extensions/ql-vscode/src/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,8 @@ async function activateWithInstalledDistribution(
938938
progress: ProgressCallback,
939939
token: CancellationToken
940940
) => {
941+
// We restart the CLI server too, to ensure they are the same version
942+
cliServer.restartCliServer();
941943
await qs.restartQueryServer(progress, token);
942944
void showAndLogInformationMessage('CodeQL Query Server restarted.', {
943945
outputLogger: queryServerLogger,

0 commit comments

Comments
 (0)