Restart CLI server too when restarting query server

This commit is contained in:
Edoardo Pirovano
2022-08-31 10:55:27 +01:00
committed by Edoardo Pirovano
parent 7d2e4b6de4
commit 84bd029749
2 changed files with 3 additions and 1 deletions

View File

@@ -240,7 +240,7 @@ export class CodeQLCliServer implements Disposable {
/**
* Restart the server when the current command terminates
*/
private restartCliServer(): void {
restartCliServer(): void {
const callback = (): void => {
try {
this.killProcessIfRunning();

View File

@@ -938,6 +938,8 @@ async function activateWithInstalledDistribution(
progress: ProgressCallback,
token: CancellationToken
) => {
// We restart the CLI server too, to ensure they are the same version
cliServer.restartCliServer();
await qs.restartQueryServer(progress, token);
void showAndLogInformationMessage('CodeQL Query Server restarted.', {
outputLogger: queryServerLogger,