Skip to content

Commit a382a98

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/extensions/ql-vscode/github/markdownlint-github-0.8.0
2 parents b9d64d1 + 4eebf6a commit a382a98

File tree

84 files changed

+2577
-977
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+2577
-977
lines changed

docs/test-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ choose to go through some of the Optional Test Cases.
4545
#### Test case 2: Running a problem query and viewing results
4646

4747
1. Open the [javascript ReDoS query](https://github.com/github/codeql/blob/main/javascript/ql/src/Performance/ReDoS.ql).
48-
2. Select the `babel/babel` database (or download it if you don't have one already)
48+
2. Select the `angular-cn/ng-nice` database (or download it if you don't have one already)
4949
3. Run a local query.
5050
4. Once the query completes:
5151
- Check that the result messages are rendered

extensions/ql-vscode/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.18.3
1+
v22.15.1

extensions/ql-vscode/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## [UNRELEASED]
44

5+
- Add new command "CodeQL: Trim Overlay Base Cache" that returns a database to the state prior to overlay evaluation, leaving only base predicates and types that may later be referenced during overlay evaluation. [#4082](https://github.com/github/vscode-codeql/pull/4082)
6+
7+
## 1.17.4 - 10 July 2025
8+
9+
- Fix variant analysis pack creation on some Windows systems [#4068](https://github.com/github/vscode-codeql/pull/4068)
10+
11+
## 1.17.3 - 3 June 2025
12+
513
- Fix reporting of bad join orders in recursive predicates. [#4019](https://github.com/github/vscode-codeql/pull/4019)
614

715
## 1.17.2 - 27 March 2025

extensions/ql-vscode/gulpfile.ts/deploy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
mkdirs,
55
readdir,
66
unlinkSync,
7+
rename,
78
remove,
89
writeFile,
910
} from "fs-extra";
@@ -45,6 +46,10 @@ async function copyPackage(
4546
copyDirectory(resolve(sourcePath, file), resolve(destPath, file)),
4647
),
4748
);
49+
50+
// The koffi directory needs to be located at the root of the package to ensure
51+
// that the koffi package can find its native modules.
52+
await rename(resolve(destPath, "out", "koffi"), resolve(destPath, "koffi"));
4853
}
4954

5055
export async function deployPackage(): Promise<DeployedPackage> {

extensions/ql-vscode/gulpfile.ts/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
checkTypeScript,
66
watchCheckTypeScript,
77
cleanOutput,
8-
copyWasmFiles,
8+
copyModules,
99
} from "./typescript";
1010
import { compileTextMateGrammar } from "./textmate";
1111
import { packageExtension } from "./package";
@@ -21,7 +21,7 @@ export const buildWithoutPackage = series(
2121
cleanOutput,
2222
parallel(
2323
compileEsbuild,
24-
copyWasmFiles,
24+
copyModules,
2525
checkTypeScript,
2626
compileTextMateGrammar,
2727
compileViewEsbuild,
@@ -46,7 +46,7 @@ export {
4646
watchCheckTypeScript,
4747
watchViewEsbuild,
4848
compileEsbuild,
49-
copyWasmFiles,
49+
copyModules,
5050
checkTypeScript,
5151
injectAppInsightsKey,
5252
compileViewEsbuild,

extensions/ql-vscode/gulpfile.ts/typescript.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { gray, red } from "ansi-colors";
2-
import { dest, src, watch } from "gulp";
2+
import { dest, parallel, src, watch } from "gulp";
33
import esbuild from "gulp-esbuild";
44
import type { reporter } from "gulp-typescript";
55
import { createProject } from "gulp-typescript";
@@ -71,7 +71,7 @@ export function watchCheckTypeScript() {
7171
watch(["src/**/*.ts", "!src/view/**/*.ts"], checkTypeScript);
7272
}
7373

74-
export function copyWasmFiles() {
74+
function copyWasmFiles() {
7575
// We need to copy this file for the source-map package to work. Without this fie, the source-map
7676
// package is not able to load the WASM file because we are not including the full node_modules
7777
// directory. In version 0.7.4, it is not possible to call SourceMapConsumer.initialize in Node environments
@@ -83,3 +83,18 @@ export function copyWasmFiles() {
8383
encoding: false,
8484
}).pipe(dest("out"));
8585
}
86+
87+
function copyNativeAddonFiles() {
88+
// We need to copy these files manually because we only want to include Windows x64 to limit
89+
// the size of the extension. Windows x64 is the most common platform that requires short path
90+
// expansion, so we only include this platform.
91+
// See src/common/short-paths.ts
92+
return pipeline(
93+
src("node_modules/koffi/build/koffi/win32_x64/*.node", {
94+
encoding: false,
95+
}),
96+
dest("out/koffi/win32_x64"),
97+
);
98+
}
99+
100+
export const copyModules = parallel(copyWasmFiles, copyNativeAddonFiles);

0 commit comments

Comments
 (0)