You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @name Don't ignore the token for a cancellable progress bar
3
+
* @kind problem
4
+
* @problem.severity warning
5
+
* @id vscode-codeql/token-not-used
6
+
* @description If we call `withProgress` with `cancellable: true` but then
7
+
* ignore the token that is given to us, it will lead to a poor user experience
8
+
* because the progress bar will appear to be canceled but it will not actually
9
+
* affect the background process. Either check the token and respect when it
10
+
* has been cancelled, or mark the progress bar as not cancellable.
11
+
*/
12
+
13
+
import javascript
14
+
import ProgressBar
15
+
16
+
fromWithProgressCallt
17
+
wheret.isCancellable()andnott.usesToken()
18
+
selectt,"This progress bar is $@ but the token is not used. Either use the token or mark the progress bar as not cancellable.",t.getCancellableProperty(),"cancellable"
Copy file name to clipboardExpand all lines: extensions/ql-vscode/CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,13 @@
2
2
3
3
## [UNRELEASED]
4
4
5
+
- Add new supported source and sink kinds in the CodeQL Model Editor [#3511](https://github.com/github/vscode-codeql/pull/3511)
6
+
7
+
## 1.12.4 - 20 March 2024
8
+
9
+
- Don't show notification after local query cancellation. [#3489](https://github.com/github/vscode-codeql/pull/3489)
10
+
- Databases created from [CodeQL test cases](https://docs.github.com/en/code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/testing-custom-queries) are now copied into a shared VS Code storage location. This avoids a bug where re-running test cases would fail if the test's database is already imported into the workspace. [#3433](https://github.com/github/vscode-codeql/pull/3433)
11
+
5
12
## 1.12.3 - 29 February 2024
6
13
7
14
- Update variant analysis view to show when cancelation is in progress. [#3405](https://github.com/github/vscode-codeql/pull/3405)
0 commit comments