Skip to content

Commit 81cbf26

Browse files
authored
Merge branch 'master' into aesienberg/database-commands
2 parents 2e2f101 + 8f84989 commit 81cbf26

35 files changed

+872
-156
lines changed

.github/pull_request_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Replace this with a description of the changes your pull request makes.
77

88
## Checklist
99

10-
- [ ] [CHANGELOG.md](../extensions/ql-vscode/CHANGELOG.md) has been updated to incorporate all user visible changes made by this pull request.
10+
- [ ] [CHANGELOG.md](https://github.com/github/vscode-codeql/blob/master/extensions/ql-vscode/CHANGELOG.md) has been updated to incorporate all user visible changes made by this pull request.
1111
- [ ] Issues have been created for any UI or other user-facing changes made by this pull request.
1212
- [ ] `@github/product-docs-dsp` has been cc'd in all issues for UI or other user-facing changes made by this pull request.

.vscode/launch.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"request": "launch",
99
"runtimeExecutable": "${execPath}",
1010
"args": [
11-
"--extensionDevelopmentPath=${workspaceRoot}/dist/vscode-codeql",
12-
"${workspaceRoot}/../vscode-codeql-starter/vscode-codeql-starter.code-workspace"
11+
"--extensionDevelopmentPath=${workspaceRoot}/dist/vscode-codeql"
1312
],
1413
"stopOnEntry": false,
1514
"sourceMaps": true,

common/config/rush/pnpm-lock.yaml

+26-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/ql-vscode/CHANGELOG.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
# CodeQL for Visual Studio Code: Changelog
22

3-
## 1.1.2
3+
## 1.1.3
44

5-
- Implement syntax highlighting for the new `unique` aggregate.
5+
- Add a suggestion in alerts view to view raw results, when there are
6+
raw results but no alerts.
67
- Add the ability to rename databases in the database view.
78
- Add the ability to open the directory in the filesystem
89
of a database.
10+
11+
## 1.1.2 - 28 April 2020
12+
13+
- Implement syntax highlighting for the new `unique` aggregate.
14+
- Implement XML syntax highlighting for `.qhelp` files.
15+
- Add option to auto save queries before running them.
16+
- Add new command in query history to view the query text of the
17+
selected query (note that this may be different from the current
18+
contents of the query file if the file has been edited).
19+
- Add ability to sort CodeQL databases by name or by date added.
920

1021
## 1.1.1 - 23 March 2020
1122

Loading
Loading
Loading
Loading

extensions/ql-vscode/package.json

+52-8
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.1.2",
7+
"version": "1.1.3",
88
"publisher": "GitHub",
99
"license": "MIT",
1010
"icon": "media/VS-marketplace-CodeQL-icon.png",
@@ -80,9 +80,6 @@
8080
},
8181
{
8282
"id": "xml",
83-
"aliases": [
84-
"qhelp"
85-
],
8683
"extensions": [
8784
".qhelp"
8885
]
@@ -178,8 +175,8 @@
178175
"command": "codeQL.chooseDatabase",
179176
"title": "CodeQL: Choose Database",
180177
"icon": {
181-
"light": "media/black-plus.svg",
182-
"dark": "media/white-plus.svg"
178+
"light": "media/light/plus.svg",
179+
"dark": "media/dark/plus.svg"
183180
}
184181
},
185182
{
@@ -214,6 +211,22 @@
214211
"command": "codeQLDatabases.openDatabaseFolder",
215212
"title": "Show Database Directory"
216213
},
214+
{
215+
"command": "codeQLDatabases.sortByName",
216+
"title": "Sort by Name",
217+
"icon": {
218+
"light": "media/light/sort-alpha.svg",
219+
"dark": "media/dark/sort-alpha.svg"
220+
}
221+
},
222+
{
223+
"command": "codeQLDatabases.sortByDateAdded",
224+
"title": "Sort by Date Added",
225+
"icon": {
226+
"light": "media/light/sort-date.svg",
227+
"dark": "media/dark/sort-date.svg"
228+
}
229+
},
217230
{
218231
"command": "codeQL.checkForUpdatesToCLI",
219232
"title": "CodeQL: Check for CLI Updates"
@@ -234,6 +247,10 @@
234247
"command": "codeQLQueryHistory.showQueryLog",
235248
"title": "Show Query Log"
236249
},
250+
{
251+
"command": "codeQLQueryHistory.showQueryText",
252+
"title": "Show Query Text"
253+
},
237254
{
238255
"command": "codeQLQueryResults.nextPathStep",
239256
"title": "CodeQL: Show Next Step on Path"
@@ -261,6 +278,16 @@
261278
],
262279
"menus": {
263280
"view/title": [
281+
{
282+
"command": "codeQLDatabases.sortByName",
283+
"when": "view == codeQLDatabases",
284+
"group": "navigation"
285+
},
286+
{
287+
"command": "codeQLDatabases.sortByDateAdded",
288+
"when": "view == codeQLDatabases",
289+
"group": "navigation"
290+
},
264291
{
265292
"command": "codeQL.chooseDatabase",
266293
"when": "view == codeQLDatabases",
@@ -313,6 +340,11 @@
313340
"group": "9_qlCommands",
314341
"when": "view == codeQLQueryHistory"
315342
},
343+
{
344+
"command": "codeQLQueryHistory.showQueryText",
345+
"group": "9_qlCommands",
346+
"when": "view == codeQLQueryHistory"
347+
},
316348
{
317349
"command": "codeQLTests.showOutputDifferences",
318350
"group": "qltest@1",
@@ -353,6 +385,14 @@
353385
"command": "codeQLDatabases.setCurrentDatabase",
354386
"when": "false"
355387
},
388+
{
389+
"command": "codeQLDatabases.sortByName",
390+
"when": "false"
391+
},
392+
{
393+
"command": "codeQLDatabases.sortByDateAdded",
394+
"when": "false"
395+
},
356396
{
357397
"command": "codeQLDatabases.removeDatabase",
358398
"when": "false"
@@ -373,6 +413,10 @@
373413
"command": "codeQLQueryHistory.showQueryLog",
374414
"when": "false"
375415
},
416+
{
417+
"command": "codeQLQueryHistory.showQueryText",
418+
"when": "false"
419+
},
376420
{
377421
"command": "codeQLQueryHistory.setLabel",
378422
"when": "false"
@@ -438,8 +482,8 @@
438482
"tmp": "^0.1.0",
439483
"tree-kill": "~1.2.2",
440484
"unzipper": "~0.10.5",
441-
"vscode-jsonrpc": "^4.0.0",
442-
"vscode-languageclient": "^5.2.1",
485+
"vscode-jsonrpc": "^5.0.1",
486+
"vscode-languageclient": "^6.1.3",
443487
"vscode-test-adapter-api": "~1.7.0",
444488
"vscode-test-adapter-util": "~0.7.0",
445489
"minimist": "~1.2.5"

0 commit comments

Comments
 (0)