Skip to content

Commit 9deef58

Browse files
Merge remote-tracking branch 'origin' into codelens-quick-eval
2 parents d384943 + 68f566d commit 9deef58

41 files changed

Lines changed: 1374 additions & 140 deletions

Some content is hidden

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

.github/ISSUE_TEMPLATE/new-extension-release.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
strategy:
136136
matrix:
137137
os: [ubuntu-latest, windows-latest]
138-
version: ['v2.3.3', 'v2.4.6', 'v2.5.9', 'v2.6.3', 'v2.7.1', 'nightly']
138+
version: ['v2.3.3', 'v2.4.6', 'v2.5.9', 'v2.6.3', 'v2.7.2', 'nightly']
139139
env:
140140
CLI_VERSION: ${{ matrix.version }}
141141
NIGHTLY_URL: ${{ needs.find-nightly.outputs.url }}

extensions/ql-vscode/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,22 @@
22

33
## [UNRELEASED]
44

5+
## 1.5.8 - 2 December 2021
6+
7+
- Emit a more explicit error message when a user tries to add a database with an unzipped source folder to the workspace. [#1021](https://github.com/github/vscode-codeql/pull/1021)
8+
- Ensure `src.zip` archives are used as the canonical source instead of `src` folders when importing databases. [#1025](https://github.com/github/vscode-codeql/pull/1025)
9+
10+
## 1.5.7 - 23 November 2021
11+
512
- Fix the _CodeQL: Open Referenced File_ command for Windows systems. [#979](https://github.com/github/vscode-codeql/pull/979)
13+
- Support large SARIF results files (>4GB) without crashing VS Code. [#1004](https://github.com/github/vscode-codeql/pull/1004)
614
- Fix a bug that shows 'Set current database' when hovering over the currently selected database in the databases view. [#976](https://github.com/github/vscode-codeql/pull/976)
715
- Fix a bug with importing large databases. Databases over 4GB can now be imported directly from LGTM or from a zip file. This functionality is only available when using CodeQL CLI version 2.6.0 or later. [#971](https://github.com/github/vscode-codeql/pull/971)
816
- Replace certain control codes (`U+0000` - `U+001F`) with their corresponding control labels (`U+2400` - `U+241F`) in the results view. [#963](https://github.com/github/vscode-codeql/pull/963)
917
- Allow case-insensitive project slugs for GitHub repositories when adding a CodeQL database from LGTM. [#978](https://github.com/github/vscode-codeql/pull/961)
18+
- Add a _CodeQL: Preview Query Help_ command to generate Markdown previews of `.qhelp` query help files. This command should only be run in trusted workspaces. See https://codeql.github.com/docs/codeql-cli/testing-query-help-files for more information about query help. [#988](https://github.com/github/vscode-codeql/pull/988)
1019
- Make "Open Referenced File" command accessible from the active editor menu. [#989](https://github.com/github/vscode-codeql/pull/989)
20+
- Fix a bug where result set names in the result set drop-down were disappearing when viewing a sorted table. [#1007](https://github.com/github/vscode-codeql/pull/1007)
1121
- Allow query result locations with 0 as the end column value. These are treated as the first column in the line. [#1002](https://github.com/github/vscode-codeql/pull/1002)
1222

1323
## 1.5.6 - 07 October 2021

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ export function watchTypeScript() {
3737

3838
/** Copy CSS files for the results view into the output directory. */
3939
export function copyViewCss() {
40-
return gulp.src('src/view/*.css')
40+
return gulp.src('src/**/view/*.css')
4141
.pipe(gulp.dest('out'));
4242
}

extensions/ql-vscode/gulpfile.ts/webpack.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const config: webpack.Configuration = {
66
entry: {
77
resultsView: './src/view/results.tsx',
88
compareView: './src/compare/view/Compare.tsx',
9+
remoteQueriesView: './src/remote-queries/view/RemoteQueries.tsx',
910
},
1011
output: {
1112
path: path.resolve(__dirname, '..', 'out'),

extensions/ql-vscode/package-lock.json

Lines changed: 97 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/ql-vscode/package.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "CodeQL for Visual Studio Code",
55
"author": "GitHub",
66
"private": true,
7-
"version": "1.5.7",
7+
"version": "1.5.9",
88
"publisher": "GitHub",
99
"license": "MIT",
1010
"icon": "media/VS-marketplace-CodeQL-icon.png",
@@ -46,6 +46,7 @@
4646
"onCommand:codeQL.setCurrentDatabase",
4747
"onCommand:codeQL.viewAst",
4848
"onCommand:codeQL.openReferencedFile",
49+
"onCommand:codeQL.previewQueryHelp",
4950
"onCommand:codeQL.chooseDatabaseFolder",
5051
"onCommand:codeQL.chooseDatabaseArchive",
5152
"onCommand:codeQL.chooseDatabaseInternet",
@@ -283,6 +284,10 @@
283284
"command": "codeQL.runRemoteQuery",
284285
"title": "CodeQL: Run Remote Query"
285286
},
287+
{
288+
"command": "codeQL.openRemoteQueriesView",
289+
"title": "CodeQL: Open Remote Queries View"
290+
},
286291
{
287292
"command": "codeQL.runQueries",
288293
"title": "CodeQL: Run Queries in Selected Files"
@@ -295,6 +300,10 @@
295300
"command": "codeQL.openReferencedFile",
296301
"title": "CodeQL: Open Referenced File"
297302
},
303+
{
304+
"command": "codeQL.previewQueryHelp",
305+
"title": "CodeQL: Preview Query Help"
306+
},
298307
{
299308
"command": "codeQL.quickQuery",
300309
"title": "CodeQL: Quick Query"
@@ -681,6 +690,11 @@
681690
"group": "9_qlCommands",
682691
"when": "view == codeQLQueryHistory"
683692
},
693+
{
694+
"command": "codeQL.previewQueryHelp",
695+
"group": "9_qlCommands",
696+
"when": "view == codeQLQueryHistory && resourceScheme == .qhelp && isWorkspaceTrusted"
697+
},
684698
{
685699
"command": "codeQLTests.showOutputDifferences",
686700
"group": "qltest@1",
@@ -712,6 +726,11 @@
712726
"command": "codeQL.openReferencedFile",
713727
"group": "9_qlCommands",
714728
"when": "resourceExtname == .qlref"
729+
},
730+
{
731+
"command": "codeQL.previewQueryHelp",
732+
"group": "9_qlCommands",
733+
"when": "resourceExtname == .qhelp && isWorkspaceTrusted"
715734
}
716735
],
717736
"commandPalette": [
@@ -731,6 +750,10 @@
731750
"command": "codeQL.runRemoteQuery",
732751
"when": "config.codeQL.canary && editorLangId == ql && resourceExtname == .ql"
733752
},
753+
{
754+
"command": "codeQL.openRemoteQueriesView",
755+
"when": "config.codeQL.canary"
756+
},
734757
{
735758
"command": "codeQL.runQueries",
736759
"when": "false"
@@ -743,6 +766,10 @@
743766
"command": "codeQL.openReferencedFile",
744767
"when": "resourceExtname == .qlref"
745768
},
769+
{
770+
"command": "codeQL.previewQueryHelp",
771+
"when": "resourceExtname == .qhelp && isWorkspaceTrusted"
772+
},
746773
{
747774
"command": "codeQL.setCurrentDatabase",
748775
"when": "false"
@@ -900,6 +927,10 @@
900927
{
901928
"command": "codeQL.openReferencedFile",
902929
"when": "resourceExtname == .qlref"
930+
},
931+
{
932+
"command": "codeQL.previewQueryHelp",
933+
"when": "resourceExtname == .qhelp && isWorkspaceTrusted"
903934
}
904935
]
905936
},
@@ -969,6 +1000,9 @@
9691000
"react": "^16.8.6",
9701001
"react-dom": "^16.8.6",
9711002
"semver": "~7.3.2",
1003+
"stream": "^0.0.2",
1004+
"stream-chain": "~2.2.4",
1005+
"stream-json": "~1.7.3",
9721006
"tmp": "^0.1.0",
9731007
"tmp-promise": "~3.0.2",
9741008
"tree-kill": "~1.2.2",
@@ -1003,6 +1037,8 @@
10031037
"@types/semver": "~7.2.0",
10041038
"@types/sinon": "~7.5.2",
10051039
"@types/sinon-chai": "~3.2.3",
1040+
"@types/stream-chain": "~2.0.1",
1041+
"@types/stream-json": "~1.7.1",
10061042
"@types/through2": "^2.0.36",
10071043
"@types/tmp": "^0.1.0",
10081044
"@types/unzipper": "~0.10.1",

0 commit comments

Comments
 (0)