Add cancellation from query history view#1105
Conversation
3b62f0f to
dd0a21a
Compare
2d1c9a0 to
b79c80b
Compare
|
Another piece of #400 |
shati-patel
left a comment
There was a problem hiding this comment.
This looks good as well 🎉 The diff has changed a bit since merging #1094, but I think I've checked the right changes!
|
Oh... a bunch of conflicts now. I will fix. |
And tweak the commands visible from the view.
b79c80b to
6f64d4f
Compare
shati-patel
left a comment
There was a problem hiding this comment.
Oh... a bunch of conflicts now. I will fix.
Much nicer, thanks! 🧹
Just a minor bug in the package.json conditions that I hadn't spotted before!
extensions/ql-vscode/package.json
Outdated
| "command": "codeQLQueryHistory.compareWith", | ||
| "group": "9_qlCommands", | ||
| "when": "view == codeQLQueryHistory" | ||
| "when": "view == codeQLQueryHistory && (viewItem == rawResultsItem || viewItem == interpretedResultsItem)" |
There was a problem hiding this comment.
"Compare With" wasn't visible at all (ditto for "Show Query Log" and "View DIL" below). This works locally:
| "when": "view == codeQLQueryHistory && (viewItem == rawResultsItem || viewItem == interpretedResultsItem)" | |
| "when": "view == codeQLQueryHistory && viewItem == rawResultsItem || view == codeQLQueryHistory && viewItem == interpretedResultsItem" |
Equivalent, but VS Code just doesn't seem to support parentheses in when clauses 🙄
extensions/ql-vscode/package.json
Outdated
| "command": "codeQLQueryHistory.showQueryLog", | ||
| "group": "9_qlCommands", | ||
| "when": "view == codeQLQueryHistory" | ||
| "when": "view == codeQLQueryHistory && (viewItem == rawResultsItem || viewItem == interpretedResultsItem)" |
extensions/ql-vscode/package.json
Outdated
| "command": "codeQLQueryHistory.viewDil", | ||
| "group": "9_qlCommands", | ||
| "when": "view == codeQLQueryHistory" | ||
| "when": "view == codeQLQueryHistory && (viewItem == rawResultsItem || viewItem == interpretedResultsItem)" |
|
Darn...thought I tested that. But maybe not enough. I'll need to make sure the expressions are grouped correctly with the correct |
Use only `||` and clearly specify when each item should be visible.
|
Fixed. I simplified the expressions and now there is no need for both |
|
Fixes #1101 |
And tweak the commands visible from the view.
No changelog entry needed since it is still part of the query history feature.
Checklist
ready-for-doc-reviewlabel there.