Skip to content

Commit bd6a6ff

Browse files
committed
Add Multi-select support to query history view
This is not quite ideal due to microsoft/vscode#99767 Allow multiselection in the query-history view. For commands that shouldn't accept multiple options, show a user message to that effect. For remove query, allow multiple removals at once. For compare query, allow selecting of exactly two queries. Otherwise, throw an error. Also, verify that the selected queries are compatible to compare.
1 parent dd44bf7 commit bd6a6ff

File tree

5 files changed

+492
-211
lines changed

5 files changed

+492
-211
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@
3434
"resolvePluginsRelativeTo": "./extensions/ql-vscode"
3535
},
3636
"editor.formatOnSave": false,
37-
"prettier.singleQuote": true
37+
"prettier.singleQuote": true,
38+
"typescript.preferences.quoteStyle": "single",
39+
"javascript.preferences.quoteStyle": "single"
3840
}

extensions/ql-vscode/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,6 @@
302302
"command": "codeQLQueryHistory.viewSarif",
303303
"title": "View SARIF"
304304
},
305-
{
306-
"command": "codeQLQueryResults.nextPathStep",
307-
"title": "CodeQL: Show Next Step on Path"
308-
},
309-
{
310-
"command": "codeQLQueryResults.previousPathStep",
311-
"title": "CodeQL: Show Previous Step on Path"
312-
},
313305
{
314306
"command": "codeQLQueryHistory.setLabel",
315307
"title": "Set Label"
@@ -318,6 +310,14 @@
318310
"command": "codeQLQueryHistory.compareWith",
319311
"title": "Compare with..."
320312
},
313+
{
314+
"command": "codeQLQueryResults.nextPathStep",
315+
"title": "CodeQL: Show Next Step on Path"
316+
},
317+
{
318+
"command": "codeQLQueryResults.previousPathStep",
319+
"title": "CodeQL: Show Previous Step on Path"
320+
},
321321
{
322322
"command": "codeQL.restartQueryServer",
323323
"title": "CodeQL: Restart Query Server"

0 commit comments

Comments
 (0)