Skip to content

Commit 13c3c8e

Browse files
Convert extensions/ql-vscode/src/cli.ts to call typed commands
1 parent a3c4c8f commit 13c3c8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • extensions/ql-vscode/src

extensions/ql-vscode/src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Readable } from "stream";
99
import { StringDecoder } from "string_decoder";
1010
import tk from "tree-kill";
1111
import { promisify } from "util";
12-
import { CancellationToken, commands, Disposable, Uri } from "vscode";
12+
import { CancellationToken, Disposable, Uri } from "vscode";
1313

1414
import { BQRSInfo, DecodedBqrsChunk } from "./pure/bqrs-cli-types";
1515
import { allowCanaryQueryServer, CliConfig } from "./config";
@@ -1375,7 +1375,7 @@ export class CodeQLCliServer implements Disposable {
13751375
if (!this._version) {
13761376
this._version = this.refreshVersion();
13771377
// this._version is only undefined upon config change, so we reset CLI-based context key only when necessary.
1378-
await commands.executeCommand(
1378+
await this.app.commands.execute(
13791379
"setContext",
13801380
"codeql.supportsEvalLog",
13811381
await this.cliConstraints.supportsPerQueryEvalLog(),

0 commit comments

Comments
 (0)