Skip to content

[pull] main from github:main #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5,126 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
5126 commits
Select commit Hold shift + click to select a range
7294480
Add expected http error to code search test plan
norascheuch Mar 3, 2025
f201a88
Merge comments
norascheuch Mar 3, 2025
dfb9a4c
Merge pull request #3948 from github/nora/tweak-testplan
norascheuch Mar 3, 2025
1f9196c
Bump Node version to v20.18.1
invalid-email-address Mar 4, 2025
58f88b1
Merge pull request #3950 from github/github-action/bump-node-version
koesie10 Mar 4, 2025
3d4a2f3
Bump Node version to v20.18.2
invalid-email-address Mar 6, 2025
c535e21
Merge pull request #3951 from github/github-action/bump-node-version
koesie10 Mar 6, 2025
6aba78b
Bump the typescript-eslint group across 1 directory with 2 updates
dependabot[bot] Mar 6, 2025
29c12d3
Bump the storybook group in /extensions/ql-vscode with 12 updates (#3…
dependabot[bot] Mar 6, 2025
0ef64f4
Bump CLI version from v2.20.5 to v2.20.6 for integration tests (#3955)
github-actions[bot] Mar 6, 2025
b394483
Bump Node version to v20.18.2
invalid-email-address Mar 11, 2025
e4a3e96
Merge pull request #3956 from github/github-action/bump-node-version
koesie10 Mar 11, 2025
40a131a
Always require credentials when using command to download databases f…
robertbrignull Mar 11, 2025
4397ce3
Merge pull request #3952 from github/dependabot/npm_and_yarn/extensio…
angelapwen Mar 11, 2025
f53c846
Update extensions/ql-vscode/CHANGELOG.md
robertbrignull Mar 12, 2025
4ba097d
Merge pull request #3941 from github/robertbrignull/download_private_dbs
robertbrignull Mar 12, 2025
296a95c
Bump @storybook/icons in /extensions/ql-vscode in the storybook group…
dependabot[bot] Mar 13, 2025
9776d45
Bump the typescript-eslint group in /extensions/ql-vscode with 2 upda…
dependabot[bot] Mar 13, 2025
49bc5e7
Bump codercom/code-server in /extensions/ql-vscode/test/e2e/docker (#…
dependabot[bot] Mar 13, 2025
a87c3e7
Bump CLI version from v2.20.6 to v2.20.7 for integration tests
invalid-email-address Mar 18, 2025
8a70ead
Merge pull request #3960 from github/github-action/bump-cli
koesie10 Mar 19, 2025
b1759d2
Bump codercom/code-server in /extensions/ql-vscode/test/e2e/docker
dependabot[bot] Mar 20, 2025
38cfdea
Bump the octokit group in /extensions/ql-vscode with 2 updates
dependabot[bot] Mar 20, 2025
4865cdf
Bump the storybook group in /extensions/ql-vscode with 12 updates
dependabot[bot] Mar 20, 2025
7117e84
Merge pull request #3962 from github/dependabot/docker/extensions/ql-…
angelapwen Mar 20, 2025
f490777
Merge pull request #3963 from github/dependabot/npm_and_yarn/extensio…
angelapwen Mar 20, 2025
a8f430f
Merge pull request #3964 from github/dependabot/npm_and_yarn/extensio…
angelapwen Mar 20, 2025
e07db8d
Bump Node version to v20.18.2
invalid-email-address Mar 21, 2025
d2f953a
Merge pull request #3966 from github/github-action/bump-node-version
koesie10 Mar 21, 2025
53d0c86
Add "actions" as an analysis language
aeisenberg Mar 19, 2025
f523014
Bump vite in /extensions/ql-vscode in the npm_and_yarn group
dependabot[bot] Mar 25, 2025
58d20bd
Merge pull request #3969 from github/dependabot/npm_and_yarn/extensio…
angelapwen Mar 25, 2025
b03de8d
Bump Node version to v20.18.2
invalid-email-address Mar 26, 2025
69db3f3
Merge pull request #3967 from github/github-action/bump-node-version
koesie10 Mar 26, 2025
e7faabc
Add "rust" as an analysis language
redsun82 Mar 26, 2025
f889d65
Fix legacy label regex
koesie10 Mar 27, 2025
139226f
Merge pull request #3972 from github/koesie10/fix-legacy-history-item…
koesie10 Mar 27, 2025
460a04a
v1.17.2
starcke Mar 27, 2025
976901b
Merge pull request #3973 from github/v1.17.2
starcke Mar 27, 2025
6a0a3a4
Bump Node version to v20.18.2
invalid-email-address Mar 27, 2025
e85ed5b
Fix permissions on release workflow
koesie10 Mar 27, 2025
6aa52e8
Bump the typescript-eslint group in /extensions/ql-vscode with 2 updates
dependabot[bot] Mar 27, 2025
dfadeb9
Merge pull request #3975 from github/koesie10/fix-permissions-release
koesie10 Mar 27, 2025
37c43b4
Bump the storybook group in /extensions/ql-vscode with 12 updates
dependabot[bot] Mar 27, 2025
d32cdb9
Bump version to v1.17.3
invalid-email-address Mar 27, 2025
d8b8d9c
Merge pull request #3974 from github/github-action/bump-node-version
koesie10 Mar 27, 2025
1eb99ca
Merge pull request #3978 from github/version/bump-to-v1.17.3
koesie10 Mar 27, 2025
0cff263
Merge pull request #3976 from github/dependabot/npm_and_yarn/extensio…
angelapwen Mar 27, 2025
ce4ce36
Bump glob from 11.0.0 to 11.0.1 in /extensions/ql-vscode
dependabot[bot] Mar 27, 2025
5a540a6
Merge pull request #3977 from github/dependabot/npm_and_yarn/extensio…
angelapwen Mar 27, 2025
77204e6
Add Rust to `QUERY_LANGUAGE_TO_DATABASE_REPO`
Mar 28, 2025
c2c138a
Merge branch 'main' into redsun82/rust
Mar 28, 2025
09a41cf
Merge pull request #3970 from github/redsun82/rust
redsun82 Mar 28, 2025
93b461e
Bump tar-fs in /extensions/ql-vscode in the npm_and_yarn group
dependabot[bot] Mar 28, 2025
0149263
Merge pull request #3980 from github/dependabot/npm_and_yarn/extensio…
koesie10 Mar 31, 2025
f0329a0
Use newer version of JSDOM
koesie10 Mar 31, 2025
ec66435
Add new Link component
tuan-nguen Mar 31, 2025
f1ecc63
Replace VsCodeLink with Link
tuan-nguen Mar 31, 2025
f1ee3f4
Replace the rest of VsCodeLink occurances
tuan-nguen Mar 31, 2025
86d4a80
Merge pull request #3979 from github/koesie10/use-custom-jest-environ…
koesie10 Mar 31, 2025
2d8195c
Add custom Tag component
tuan-nguen Mar 31, 2025
2fd7263
Bump vite in /extensions/ql-vscode in the npm_and_yarn group
dependabot[bot] Mar 31, 2025
81c4cdc
Merge pull request #3982 from github/dependabot/npm_and_yarn/extensio…
koesie10 Apr 1, 2025
42fc778
Merge pull request #3981 from github/tuan-nguen/remove-vscode-links
tuan-nguen Apr 1, 2025
487713d
Remove uses of VSCodeTag
tuan-nguen Apr 1, 2025
14701cf
Change to span and make colours consistent in all themes
tuan-nguen Apr 1, 2025
5a4c51e
Bump Node version to v20.18.2
invalid-email-address Apr 1, 2025
a82dcce
Merge pull request #3984 from github/github-action/bump-node-version
koesie10 Apr 1, 2025
27476d0
Add @vscode-elements/elements package
tuan-nguen Apr 1, 2025
25bb51c
Replace all VSCodeButton with VscodeButton
tuan-nguen Apr 1, 2025
873ad15
Use css variables
tuan-nguen Apr 1, 2025
5336388
Make view tests run
tuan-nguen Apr 1, 2025
ca2b732
Merge pull request #3983 from github/tuan-nguen/remove-vscode-tags
tuan-nguen Apr 1, 2025
eb666e6
Merge pull request #3965 from github/dependabot/npm_and_yarn/extensio…
robertbrignull Apr 1, 2025
9962c07
Bump Node version to v20.18.2
invalid-email-address Apr 2, 2025
6b53395
Merge pull request #3985 from github/github-action/bump-node-version
koesie10 Apr 2, 2025
73c38ae
Fix tests
tuan-nguen Apr 2, 2025
5966cea
Replace VSCodeTextField for VscodeTextfield
tuan-nguen Apr 2, 2025
3924561
Replace VSCodeDropdown and VSCodeOption
tuan-nguen Apr 2, 2025
24a3530
Fix MethodRow stories
tuan-nguen Apr 2, 2025
8e7a93b
Replace VSCodeBadge
tuan-nguen Apr 2, 2025
1db6add
Fix AlertTable stories
tuan-nguen Apr 2, 2025
f466998
Replace VSCodeDivider and fix LibraryRow stories
tuan-nguen Apr 2, 2025
82427ed
Replace VSCodeCheckbox
tuan-nguen Apr 2, 2025
cfd4b63
Replace VSCodeProgressRing
tuan-nguen Apr 2, 2025
33d7a58
Add new Badge component to apply border-radius by default
tuan-nguen Apr 3, 2025
4a29bab
Use custom Badge component
tuan-nguen Apr 3, 2025
3b1e929
Replace VSCodePanelTab
tuan-nguen Apr 3, 2025
2dd5dd9
Merge branch 'main' of https://github.com/github/vscode-codeql into t…
tuan-nguen Apr 3, 2025
f655fab
Remove vscode/webview-ui-toolkit
tuan-nguen Apr 3, 2025
4eaee21
Fix RepoRow tests
tuan-nguen Apr 3, 2025
560c379
Fix VariantAnalysisActions tests
tuan-nguen Apr 3, 2025
475fe20
Compare perf: Fix missing unit in grouped predicate entry
asgerf Apr 3, 2025
197ffc8
Bump the typescript-eslint group in /extensions/ql-vscode with 2 updates
dependabot[bot] Apr 3, 2025
14101bb
Bump prettier from 3.2.5 to 3.5.3 in /extensions/ql-vscode
dependabot[bot] Apr 3, 2025
68b4eea
Bump CLI version from v2.20.7 to v2.21.0 for integration tests (#3991)
github-actions[bot] Apr 3, 2025
f9538a2
Run: npm run format
robertbrignull Apr 3, 2025
161f578
Merge pull request #3990 from github/dependabot/npm_and_yarn/extensio…
robertbrignull Apr 3, 2025
94cb908
Bump the storybook group in /extensions/ql-vscode with 12 updates
dependabot[bot] Apr 3, 2025
d403b16
Merge pull request #3989 from github/dependabot/npm_and_yarn/extensio…
robertbrignull Apr 3, 2025
76bb04e
Merge pull request #3988 from github/dependabot/npm_and_yarn/extensio…
robertbrignull Apr 3, 2025
b7cde9f
Bump Node version to v20.18.3
invalid-email-address Apr 4, 2025
2d23a97
Merge pull request #3992 from github/github-action/bump-node-version
koesie10 Apr 4, 2025
c570a9d
Bump vite in /extensions/ql-vscode in the npm_and_yarn group
dependabot[bot] Apr 4, 2025
d23c3c5
Merge pull request #3993 from github/dependabot/npm_and_yarn/extensio…
koesie10 Apr 7, 2025
3941de8
Mock out assignedElements from HTMLSlotElement
tuan-nguen Apr 7, 2025
986399a
Replace Button secondary attribute
tuan-nguen Apr 7, 2025
56bc3b4
Tidy up props for VariantAnalysisOutcomePanels
tuan-nguen Apr 7, 2025
e9f85b0
Add ActionButton component
tuan-nguen Apr 7, 2025
d59a84b
Add --vscode-contrastActiveBorder to the rest of the stories themes
tuan-nguen Apr 7, 2025
bebde7c
Tweak ActionButton styles and add comments
tuan-nguen Apr 7, 2025
5bf2ca5
Fix styles for icon buttons
tuan-nguen Apr 7, 2025
b801c78
Fix lint
tuan-nguen Apr 7, 2025
6b06687
Merge pull request #3961 from github/aeisenberg/add-actions
aeisenberg Apr 7, 2025
39dc154
Update skeleton-query-wizard.ts
aeisenberg Apr 7, 2025
bbbedc6
Merge pull request #3994 from github/aeisenberg/add-sample-database
aeisenberg Apr 8, 2025
4eeea10
Use correct css variables for Link
tuan-nguen Apr 9, 2025
6e225d3
Bring back icon for SearchBox
tuan-nguen Apr 9, 2025
8cd4b20
Change Dropdown prop from onInput to onChange
tuan-nguen Apr 9, 2025
cb9a79c
Add negative right margin to Checkbox
tuan-nguen Apr 9, 2025
71e69f6
Fix divider styling
tuan-nguen Apr 9, 2025
6f39d9b
Remove eslint-disables
tuan-nguen Apr 9, 2025
d09133f
Bump the typescript-eslint group in /extensions/ql-vscode with 2 updates
dependabot[bot] Apr 10, 2025
f5ab6ce
Bump husky from 9.1.5 to 9.1.7 in /extensions/ql-vscode
dependabot[bot] Apr 10, 2025
a5e48ef
Bump codercom/code-server in /extensions/ql-vscode/test/e2e/docker
dependabot[bot] Apr 10, 2025
7975e92
Set up CSS module support
koesie10 Apr 11, 2025
89c2602
Merge pull request #4000 from github/koesie10/css-modules
koesie10 Apr 11, 2025
f467281
Merge branch 'main' of https://github.com/github/vscode-codeql into t…
tuan-nguen Apr 11, 2025
8014162
Use css modules instead of global classes
tuan-nguen Apr 11, 2025
c639f7d
Remove manually added css variable
tuan-nguen Apr 11, 2025
f5dfc8a
Bump vite in /extensions/ql-vscode in the npm_and_yarn group
dependabot[bot] Apr 11, 2025
5a799b2
Add default value for action button hover outline
tuan-nguen Apr 14, 2025
329ac0d
Default action button outline to transparent
tuan-nguen Apr 14, 2025
718cdc9
Fix check-types job
tuan-nguen Apr 14, 2025
184828d
Merge pull request #4001 from github/dependabot/npm_and_yarn/extensio…
koesie10 Apr 15, 2025
e5e355e
Merge pull request #3997 from github/dependabot/npm_and_yarn/extensio…
koesie10 Apr 15, 2025
981e73f
Merge pull request #3996 from github/dependabot/npm_and_yarn/extensio…
koesie10 Apr 15, 2025
a76a79d
Merge pull request #3998 from github/dependabot/docker/extensions/ql-…
koesie10 Apr 15, 2025
1d2a22a
Fix Badge for method modelling
tuan-nguen Apr 15, 2025
881ef75
Don't render 0 if a result is falsy
tuan-nguen Apr 16, 2025
fca2ee7
Add changelog
tuan-nguen Apr 16, 2025
edf0f46
Revert change to CHANGELOG
tuan-nguen Apr 16, 2025
c263e30
Tidy up ActionButton css module
tuan-nguen Apr 16, 2025
4c49158
Make comment clearer
tuan-nguen Apr 16, 2025
8318e04
Merge pull request #3986 from github/tuan-nguen/replace-vscode-webview
tuan-nguen Apr 16, 2025
6987875
Bump the typescript-eslint group in /extensions/ql-vscode with 2 updates
dependabot[bot] Apr 17, 2025
abf797c
Bump msw from 2.6.8 to 2.7.4 in /extensions/ql-vscode
dependabot[bot] Apr 17, 2025
12cdceb
Bump codercom/code-server in /extensions/ql-vscode/test/e2e/docker
dependabot[bot] Apr 17, 2025
6d71951
Merge pull request #4005 from github/dependabot/npm_and_yarn/extensio…
koesie10 Apr 17, 2025
9db105b
Merge pull request #4006 from github/dependabot/docker/extensions/ql-…
koesie10 Apr 17, 2025
f19a351
Merge pull request #4004 from github/dependabot/npm_and_yarn/extensio…
koesie10 Apr 17, 2025
f333a9a
Bump the testing-library group across 1 directory with 2 updates
dependabot[bot] Apr 17, 2025
861e4bd
Merge pull request #3911 from github/dependabot/npm_and_yarn/extensio…
koesie10 Apr 17, 2025
6e59d40
Merge pull request #3987 from asgerf/asgerf/fix-grouped-entries-unit
asgerf Apr 22, 2025
55c808e
Destructure event object
asgerf Feb 18, 2025
59e754e
Avoid unhandled errors in build streams
asgerf Apr 22, 2025
5262dfd
Update codeql-config.yml
aeisenberg Apr 22, 2025
4677ca3
Merge pull request #4010 from github/aeisenberg/add-github
aeisenberg Apr 22, 2025
4e59754
Bump CLI version from v2.21.0 to v2.21.1 for integration tests
invalid-email-address Apr 22, 2025
1424307
Merge pull request #4009 from asgerf/asgerf/fix-unhandled-build-error
asgerf Apr 22, 2025
3882e93
Update codeql-config.yml
aeisenberg Apr 22, 2025
5626309
Merge pull request #4012 from github/aeisenberg-patch-1
aeisenberg Apr 22, 2025
f757e8d
Merge pull request #4011 from github/github-action/bump-cli
koesie10 Apr 23, 2025
3dbe527
Pin azure/login Action
koesie10 Apr 23, 2025
9c9b237
Merge pull request #4013 from github/koesie10/pin-azure-login
koesie10 Apr 23, 2025
5f37dc5
Bump the typescript-eslint group in /extensions/ql-vscode with 2 updates
dependabot[bot] Apr 24, 2025
d9074fa
Bump eslint-plugin-prettier from 5.1.3 to 5.2.6 in /extensions/ql-vscode
dependabot[bot] Apr 24, 2025
be58c0b
Bump ts-jest from 29.2.5 to 29.3.2 in /extensions/ql-vscode
dependabot[bot] Apr 24, 2025
c038a1c
Merge pull request #4015 from github/dependabot/npm_and_yarn/extensio…
koesie10 Apr 24, 2025
49c82c9
Merge pull request #4014 from github/dependabot/npm_and_yarn/extensio…
koesie10 Apr 24, 2025
8ad9705
Merge pull request #4016 from github/dependabot/npm_and_yarn/extensio…
koesie10 Apr 24, 2025
37c53b6
Bump codercom/code-server in /extensions/ql-vscode/test/e2e/docker
dependabot[bot] Apr 24, 2025
7cdcf9d
Merge pull request #4017 from github/dependabot/docker/extensions/ql-…
koesie10 Apr 24, 2025
bcd72a9
Do not use "millis" field for COMPUTE_RECURSIVE events
asgerf Apr 22, 2025
06a2513
Also handle NAMED_LOCAL event type
asgerf Apr 22, 2025
1165752
Associate predicate with their RA hash
asgerf Apr 22, 2025
6329d23
Store dependencies of predicates
asgerf Apr 22, 2025
12a342e
Record implicit dependency for 'cached' predicates
asgerf Apr 22, 2025
833f679
Record dependencies from sentinels
asgerf Apr 23, 2025
570f63e
Record dependencies inside SCCs
asgerf Apr 23, 2025
c724577
Store pipeline hash on PipelineSummary
asgerf Apr 22, 2025
e8bf7e3
Associate rows with RA-hash and a name-with-pipeline hash
asgerf Apr 25, 2025
06fcd6f
Detect "shadowed" cache hits
asgerf Apr 25, 2025
e718ea6
Default to hiding cache hits, and omit warning
asgerf Apr 25, 2025
0da5e5b
Update dependencies passed to useMemo
asgerf Apr 25, 2025
a155289
Actually report bad join orders in recursions
nickrolfe Apr 24, 2025
dba5150
Fix join-order scoring for recursive predicates
nickrolfe Apr 25, 2025
cb44665
Include RA hashes in messages about bad join orders
nickrolfe Apr 25, 2025
84441f0
Add changenote about fix for reporting bad joins in recursions
nickrolfe Apr 25, 2025
fbfa60b
Bump Node version to v20.18.3
invalid-email-address Apr 25, 2025
02b6299
Merge pull request #4020 from github/github-action/bump-node-version
koesie10 Apr 25, 2025
7b113a2
Do not export NamedLocal as it is never imported.
asgerf Apr 28, 2025
b66a670
Bump Node version to v20.18.3
invalid-email-address Apr 28, 2025
41be887
Merge pull request #4021 from github/github-action/bump-node-version
koesie10 Apr 28, 2025
f9f9246
Apply suggestions from code review
asgerf Apr 29, 2025
fd73c06
Merge pull request #4019 from github/nickrolfe/join-order-cleanup
nickrolfe Apr 29, 2025
bfbf5a4
Merge branch 'main' into asgerf/compare-fixes
asgerf Apr 29, 2025
c0261ec
Merge pull request #4018 from asgerf/asgerf/compare-fixes
asgerf Apr 30, 2025
4a9d5f9
Bump vite in /extensions/ql-vscode in the npm_and_yarn group
dependabot[bot] Apr 30, 2025
d9f7089
Merge pull request #4022 from github/dependabot/npm_and_yarn/extensio…
koesie10 May 1, 2025
7826df8
Bump CLI version from v2.21.1 to v2.21.2 for integration tests (#4023)
github-actions[bot] May 1, 2025
420a1e3
Bump the typescript-eslint group in /extensions/ql-vscode with 2 upda…
dependabot[bot] May 1, 2025
305f018
Bump Node version to v20.18.3
invalid-email-address May 6, 2025
d7e588c
Merge pull request #4028 from github/github-action/bump-node-version
koesie10 May 6, 2025
469d655
Bump Node version to v20.18.3
invalid-email-address May 7, 2025
79b19a4
Merge pull request #4029 from github/github-action/bump-node-version
koesie10 May 7, 2025
10cd440
Bump Node version to v20.18.3
invalid-email-address May 8, 2025
8a81c6a
Bump codercom/code-server in /extensions/ql-vscode/test/e2e/docker
dependabot[bot] May 8, 2025
4363b25
Bump the typescript-eslint group in /extensions/ql-vscode with 2 updates
dependabot[bot] May 8, 2025
fd665fc
Merge pull request #4032 from github/dependabot/npm_and_yarn/extensio…
norascheuch May 8, 2025
85ff20b
Merge pull request #4031 from github/dependabot/docker/extensions/ql-…
norascheuch May 8, 2025
f36b228
Merge pull request #4030 from github/github-action/bump-node-version
koesie10 May 8, 2025
806fcf8
Bump CLI version from v2.21.2 to v2.21.3 for integration tests (#4034)
github-actions[bot] May 15, 2025
8061780
Bump codercom/code-server in /extensions/ql-vscode/test/e2e/docker
dependabot[bot] May 22, 2025
56fa962
Bump the storybook group in /extensions/ql-vscode with 12 updates (#4…
dependabot[bot] May 22, 2025
459d6a9
Add command for running a query suite
nickrolfe Apr 16, 2025
4dc9d7c
Merge pull request #4037 from github/nickrolfe/run-qls
nickrolfe May 28, 2025
88568f1
Bump Node version to v20.19.0
invalid-email-address Jun 1, 2025
2231793
Merge pull request #4033 from github/github-action/bump-node-version
koesie10 Jun 2, 2025
ddb55eb
Bump CLI version from v2.21.3 to v2.21.4 for integration tests (#4044)
github-actions[bot] Jun 2, 2025
dd6fbde
Merge pull request #4038 from github/dependabot/docker/extensions/ql-…
starcke Jun 2, 2025
61b1ddc
v1.17.3
starcke Jun 3, 2025
df7ccbc
Merge pull request #4045 from github/v1.17.3
starcke Jun 3, 2025
4cd85e1
Bump version to v1.17.4
invalid-email-address Jun 3, 2025
54a20e0
Merge pull request #4046 from github/version/bump-to-v1.17.4
starcke Jun 3, 2025
3364c9e
Bump codercom/code-server in /extensions/ql-vscode/test/e2e/docker
dependabot[bot] Jun 5, 2025
768ef30
Bump Node version to v20.19.0
invalid-email-address Jun 6, 2025
db91c22
Merge pull request #4049 from github/github-action/bump-node-version
koesie10 Jun 6, 2025
704d923
Bump CLI version from v2.21.4 to v2.22.0 for integration tests
invalid-email-address Jun 11, 2025
ec6bd6e
Merge pull request #4048 from github/dependabot/docker/extensions/ql-…
robertbrignull Jun 12, 2025
56f299a
Upgrade brace-expansion to v2.0.2
koesie10 Jun 13, 2025
3699283
Merge pull request #4051 from github/github-action/bump-cli
koesie10 Jun 13, 2025
33340e7
Bump Node version to v22.15.1
invalid-email-address Jun 13, 2025
95763ac
Merge pull request #4053 from github/github-action/bump-node-version
koesie10 Jun 13, 2025
ac988a0
Merge pull request #4052 from github/koesie10/upgrade-brace-expansion
koesie10 Jun 16, 2025
a9413d3
Bump Node version to v22.15.1
invalid-email-address Jun 16, 2025
91558cc
Merge pull request #4055 from github/github-action/bump-node-version
koesie10 Jun 16, 2025
03b5b3c
Update local queries test case 2 (#4057)
charisk Jun 19, 2025
f574c9f
Bump the typescript-eslint group in /extensions/ql-vscode with 2 updates
dependabot[bot] Jun 19, 2025
902ba3f
Merge pull request #4036 from github/dependabot/npm_and_yarn/extensio…
koesie10 Jun 25, 2025
94c7abc
Bump Node version to v22.15.1
invalid-email-address Jun 25, 2025
f1ef333
Merge pull request #4058 from github/github-action/bump-node-version
koesie10 Jun 25, 2025
ca71676
Bump CLI version from v2.22.0 to v2.22.1 for integration tests
invalid-email-address Jun 26, 2025
0991233
Merge pull request #4060 from github/github-action/bump-cli
koesie10 Jun 26, 2025
4305b8d
Bump the typescript-eslint group in /extensions/ql-vscode with 2 updates
dependabot[bot] Jun 26, 2025
8b43fa2
Bump codercom/code-server in /extensions/ql-vscode/test/e2e/docker
dependabot[bot] Jun 26, 2025
ef2a020
Merge pull request #4061 from github/dependabot/npm_and_yarn/extensio…
koesie10 Jun 26, 2025
746a52f
Bump prettier from 3.5.3 to 3.6.1 in /extensions/ql-vscode
dependabot[bot] Jun 26, 2025
f1ca6af
Merge pull request #4062 from github/dependabot/docker/extensions/ql-…
koesie10 Jun 26, 2025
ac2dea7
Merge pull request #4063 from github/dependabot/npm_and_yarn/extensio…
koesie10 Jun 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: "CodeQL config"
queries:
- name: Run standard queries
uses: security-and-quality
- name: Experimental queries
uses: security-experimental
- name: Run custom javascript queries
uses: ./.github/codeql/queries
paths:
- ./extensions/ql-vscode
- ./.github/workflows
- ./.github/actions
paths-ignore:
- '**/node_modules'
- '**/build'
Expand Down
16 changes: 16 additions & 0 deletions .github/codeql/queries/ProgressBar.qll
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import javascript

class WithProgressCall extends CallExpr {
WithProgressCall() { this.getCalleeName() = "withProgress" }

predicate usesToken() { exists(this.getTokenParameter()) }

Parameter getTokenParameter() { result = this.getArgument(0).(Function).getParameter(1) }

Property getCancellableProperty() { result = this.getArgument(1).(ObjectExpr).getPropertyByName("cancellable") }

predicate isCancellable() {
this.getCancellableProperty().getInit().(BooleanLiteral).getBoolValue() =
true
}
}
37 changes: 37 additions & 0 deletions .github/codeql/queries/assert-no-vscode-dependency.ql
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* @name Unwanted dependency on vscode API
* @kind path-problem
* @problem.severity error
* @id vscode-codeql/assert-no-vscode-dependency
* @description The modules stored under `common` should not have dependencies on the VS Code API
*/

import javascript

class VSCodeImport extends ImportDeclaration {
VSCodeImport() { this.getImportedPath().getValue() = "vscode" }
}

class CommonFile extends File {
CommonFile() {
this.getRelativePath().regexpMatch(".*/src/common/.*") and
not this.getRelativePath().regexpMatch(".*/vscode/.*")
}
}

Import getANonTypeOnlyImport(Module m) {
result = m.getAnImport() and not result.(ImportDeclaration).isTypeOnly()
}

query predicate edges(AstNode a, AstNode b) {
getANonTypeOnlyImport(a) = b or
a.(Import).getImportedModule() = b
}

from Module m, VSCodeImport v
where
m.getFile() instanceof CommonFile and
edges+(m, v)
select m, m, v,
"This module is in the 'common' directory but has a transitive dependency on the vscode API imported $@",
v, "here"
21 changes: 0 additions & 21 deletions .github/codeql/queries/assert-pure.ql

This file was deleted.

20 changes: 20 additions & 0 deletions .github/codeql/queries/progress-not-cancellable.ql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* @name Using token for non-cancellable progress bar
* @kind problem
* @problem.severity warning
* @id vscode-codeql/progress-not-cancellable
* @description If we call `withProgress` without `cancellable: true` then the
* token that is given to us should be ignored because it won't ever be cancelled.
* This makes the code more confusing as it tries to account for cases that can't
* happen. The fix is to either not use the token or make the progress bar cancellable.
*/

import javascript
import ProgressBar

from WithProgressCall t
where not t.isCancellable() and t.usesToken()
select t,
"The $@ should not be used when the progress bar is not cancellable. Either stop using the $@ or mark the progress bar as cancellable.",
t.getTokenParameter(), t.getTokenParameter().getName(), t.getTokenParameter(),
t.getTokenParameter().getName()
3 changes: 2 additions & 1 deletion .github/codeql/queries/qlpack.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: vscode-codeql-custom-queries-javascript
version: 0.0.0
libraryPathDependencies: codeql-javascript
dependencies:
codeql/javascript-queries: "*"
18 changes: 18 additions & 0 deletions .github/codeql/queries/token-not-used.ql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* @name Don't ignore the token for a cancellable progress bar
* @kind problem
* @problem.severity warning
* @id vscode-codeql/token-not-used
* @description If we call `withProgress` with `cancellable: true` but then
* ignore the token that is given to us, it will lead to a poor user experience
* because the progress bar will appear to be canceled but it will not actually
* affect the background process. Either check the token and respect when it
* has been cancelled, or mark the progress bar as not cancellable.
*/

import javascript
import ProgressBar

from WithProgressCall t
where t.isCancellable() and not t.usesToken()
select t, "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"
159 changes: 159 additions & 0 deletions .github/codeql/queries/unique-command-use.ql
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
/**
* @name A VS Code command should not be used in multiple locations
* @kind problem
* @problem.severity warning
* @id vscode-codeql/unique-command-use
* @description Using each VS Code command from only one location makes
* our telemetry more useful, because we can differentiate more user
* interactions and know which features of the UI our users are using.
* To fix this alert, new commands will need to be made so that each one
* is only used from one location. The commands should share the same
* implementation so we do not introduce duplicate code.
* When fixing this alert, search the codebase for all other references
* to the command name. The location of the alert is an arbitrarily
* chosen usage of the command, and may not necessarily be the location
* that should be changed to fix the alert.
*/

import javascript

/**
* The name of a VS Code command.
*/
class CommandName extends string {
CommandName() { exists(CommandUsage e | e.getCommandName() = this) }

/**
* In how many ways is this command used. Will always be at least 1.
*/
int getNumberOfUsages() { result = count(this.getAUse()) }

/**
* Get a usage of this command.
*/
CommandUsage getAUse() { result.getCommandName() = this }

/**
* Get the canonical first usage of this command, to use for the location
* of the alert. The implementation of this ordering of usages is arbitrary
* and the usage given may not be the one that should be changed when fixing
* the alert.
*/
CommandUsage getFirstUsage() {
result =
max(CommandUsage use |
use = this.getAUse()
|
use
order by
use.getFile().getRelativePath(), use.getLocation().getStartLine(),
use.getLocation().getStartColumn()
)
}
}

/**
* Matches one of the members of `BuiltInVsCodeCommands` from `extensions/ql-vscode/src/common/commands.ts`.
*/
class BuiltInVSCodeCommand extends string {
BuiltInVSCodeCommand() {
exists(TypeAliasDeclaration tad |
tad.getIdentifier().getName() = "BuiltInVsCodeCommands" and
tad.getDefinition().(InterfaceTypeExpr).getAMember().getName() = this
)
}
}

/**
* Represents a single usage of a command, either from within code or
* from the command's definition in package.json
*/
abstract class CommandUsage extends Locatable {
abstract string getCommandName();
}

/**
* A usage of a command from the typescript code, by calling `executeCommand`.
*/
class CommandUsageCallExpr extends CommandUsage, CallExpr {
CommandUsageCallExpr() {
this.getCalleeName() = "executeCommand" and
this.getArgument(0).(StringLiteral).getValue().matches("%codeQL%") and
not this.getFile().getRelativePath().matches("extensions/ql-vscode/test/%")
}

override string getCommandName() { result = this.getArgument(0).(StringLiteral).getValue() }
}

/**
* A usage of a command from the typescript code, by calling `CommandManager.execute`.
*/
class CommandUsageCommandManagerMethodCallExpr extends CommandUsage, MethodCallExpr {
CommandUsageCommandManagerMethodCallExpr() {
this.getCalleeName() = "execute" and
this.getReceiver().getType().unfold().(TypeReference).getTypeName().getName() = "CommandManager" and
this.getArgument(0).(StringLiteral).getValue().matches("%codeQL%") and
not this.getFile().getRelativePath().matches("extensions/ql-vscode/test/%")
}

override string getCommandName() { result = this.getArgument(0).(StringLiteral).getValue() }
}

/**
* A usage of a command from any menu that isn't the command palette.
* This means a user could invoke the command by clicking on a button in
* something like a menu or a dropdown.
*/
class CommandUsagePackageJsonMenuItem extends CommandUsage, JsonObject {
CommandUsagePackageJsonMenuItem() {
exists(this.getPropValue("command")) and
exists(PackageJson packageJson, string menuName |
packageJson
.getPropValue("contributes")
.getPropValue("menus")
.getPropValue(menuName)
.getElementValue(_) = this and
menuName != "commandPalette"
)
}

override string getCommandName() { result = this.getPropValue("command").getStringValue() }
}

/**
* Is the given command disabled for use in the command palette by
* a block with a `"when": "false"` field.
*/
predicate isDisabledInCommandPalette(string commandName) {
exists(PackageJson packageJson, JsonObject commandPaletteObject |
packageJson
.getPropValue("contributes")
.getPropValue("menus")
.getPropValue("commandPalette")
.getElementValue(_) = commandPaletteObject and
commandPaletteObject.getPropValue("command").getStringValue() = commandName and
commandPaletteObject.getPropValue("when").getStringValue() = "false"
)
}

/**
* Represents a command being usable from the command palette.
* This means that a user could choose to manually invoke the command.
*/
class CommandUsagePackageJsonCommandPalette extends CommandUsage, JsonObject {
CommandUsagePackageJsonCommandPalette() {
this.getFile().getBaseName() = "package.json" and
exists(this.getPropValue("command")) and
exists(PackageJson packageJson |
packageJson.getPropValue("contributes").getPropValue("commands").getElementValue(_) = this
) and
not isDisabledInCommandPalette(this.getPropValue("command").getStringValue())
}

override string getCommandName() { result = this.getPropValue("command").getStringValue() }
}

from CommandName c
where c.getNumberOfUsages() > 1 and not c instanceof BuiltInVSCodeCommand
select c.getFirstUsage(),
"The " + c + " command is used from " + c.getNumberOfUsages() + " locations"
34 changes: 29 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,39 @@ updates:
labels:
- "Update dependencies"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
# @types/node is related to the version of VS Code we're supporting and should
# not be updated to a newer version of Node automatically. However, patch versions
# are unrelated to the Node version, so we allow those.
- dependency-name: "@types/node"
update-types: ["version-update:semver-major", "version-update:semver-minor"]
groups:
octokit:
patterns:
- "@octokit/*"
update-types:
- "minor"
- "patch"
storybook:
patterns:
- "@storybook/*"
- "storybook"
testing-library:
patterns:
- "@testing-library/*"
typescript-eslint:
patterns:
- "@typescript-eslint/*"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "thursday" # Thursday is arbitrary
labels:
- "Update dependencies"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
- package-ecosystem: docker
directory: "extensions/ql-vscode/test/e2e/docker"
schedule:
interval: "weekly"
day: "thursday" # Thursday is arbitrary
labels:
- "Update dependencies"
6 changes: 1 addition & 5 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@

Replace this with a description of the changes your pull request makes.

## Checklist

- [ ] [CHANGELOG.md](https://github.com/github/vscode-codeql/blob/main/extensions/ql-vscode/CHANGELOG.md) has been updated to incorporate all user visible changes made by this pull request.
- [ ] Issues have been created for any UI or other user-facing changes made by this pull request.
- [ ] _[Maintainers only]_ If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the [github/codeql](https://github.com/github/codeql/tree/main/docs/codeql/codeql-for-visual-studio-code) repo and add the `ready-for-doc-review` label there.
Remember to update the [changelog](https://github.com/github/vscode-codeql/blob/main/extensions/ql-vscode/CHANGELOG.md) if there have been user-facing changes!
Loading