Skip to content

Commit d98293e

Browse files
committed
Use codeql.exe instead of codeql.cmd on Windows
1 parent 1a4d729 commit d98293e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
if: matrix.os == 'windows-latest'
8181
run: |
8282
cd extensions/ql-vscode
83-
$env:CODEQL_PATH=$(Join-Path $env:GITHUB_WORKSPACE -ChildPath 'codeql-home/codeql/codeql.cmd')
83+
$env:CODEQL_PATH=$(Join-Path $env:GITHUB_WORKSPACE -ChildPath 'codeql-home/codeql/codeql.exe')
8484
npm run test
8585
8686
- name: Run integration tests (Linux)

extensions/ql-vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"scope": "machine",
100100
"type": "string",
101101
"default": "",
102-
"description": "Path to the CodeQL executable that should be used by the CodeQL extension. The executable is named `codeql` on Linux/Mac and `codeql.cmd` on Windows. This overrides all other CodeQL CLI settings."
102+
"description": "Path to the CodeQL executable that should be used by the CodeQL extension. The executable is named `codeql` on Linux/Mac and `codeql.exe` on Windows. This overrides all other CodeQL CLI settings."
103103
},
104104
"codeQL.runningQueries.numberOfThreads": {
105105
"type": "integer",

extensions/ql-vscode/src/distribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ export function versionCompare(a: Version, b: Version): number {
502502
}
503503

504504
function codeQlLauncherName(): string {
505-
return (os.platform() === "win32") ? "codeql.cmd" : "codeql";
505+
return (os.platform() === "win32") ? "codeql.exe" : "codeql";
506506
}
507507

508508
function isRedirectStatusCode(statusCode: number): boolean {

0 commit comments

Comments
 (0)