Commit Graph

3932 Commits

Author SHA1 Message Date
github-actions[bot]
1b43e989ab Bump CLI version from v2.12.5 to v2.12.6 for integration tests (#2274)
Co-authored-by: github-actions[bot] <github-actions@github.com>
2023-04-05 13:39:02 +00:00
Robert
e84d488005 Merge pull request #2273 from github/robertbrignull/splitCommand/codeQL.restartQueryServer
Split up codeQL.restartQueryServer command
2023-04-05 14:23:07 +01:00
Robert
145764c39b Split up codeQL.restartQueryServer command 2023-04-05 13:35:40 +01:00
Nora
9015a57732 Merge pull request #2261 from github/nora/repo-states-refactoring
Repo States: Extract read/write methods to repo states store
2023-04-04 14:45:09 +02:00
Koen Vlaswinkel
60e39636e7 Merge pull request #2262 from github/koesie10/data-extension-editor-setup
Add empty data extension editor view
2023-04-04 12:52:41 +02:00
Koen Vlaswinkel
478c095d65 Add empty data extension editor view
This adds an empty data extension editor view which is only available
behind the `codeQL.dataExtensions.editor` and `codeQL.canary` settings.
2023-04-04 12:14:19 +02:00
Koen Vlaswinkel
35cb1137e8 Merge pull request #2258 from github/koesie10/upgrade-storybook
Upgrade Storybook for TS 5.0 compatibility
2023-04-04 11:30:19 +02:00
Nora
2464537467 Extract read/write to extra file 2023-04-04 09:00:14 +00:00
Koen Vlaswinkel
78337543df Upgrade Storybook for TS 5.0 compatibility
This upgrades Storybook to an alpha version to ensure we can start
Storybook when using TypeScript 5.0. This is temporary until we can
upgrade to Storybook 7 or to a released version of 6.5.17.
2023-04-03 15:26:19 +02:00
Koen Vlaswinkel
0af341407c Merge pull request #2168 from github/koesie10/react-strict-mode
Enable React strict mode
2023-04-03 11:13:04 +02:00
Koen Vlaswinkel
de521e8e48 Merge pull request #2252 from github/dependabot/npm_and_yarn/extensions/ql-vscode/typescript-5.0.2
Bump typescript from 4.6.4 to 5.0.2 in /extensions/ql-vscode
2023-04-03 11:08:39 +02:00
Koen Vlaswinkel
0015a59971 Merge pull request #2254 from github/dependabot/npm_and_yarn/extensions/ql-vscode/ts-loader-9.4.2
Bump ts-loader from 8.1.0 to 9.4.2 in /extensions/ql-vscode
2023-04-03 11:06:28 +02:00
Koen Vlaswinkel
fce8f87c10 Update types for updated TypeScript 2023-04-03 10:54:58 +02:00
Koen Vlaswinkel
2eb420b656 Merge branch 'main' into koesie10/react-strict-mode 2023-04-03 10:47:29 +02:00
Koen Vlaswinkel
980e27a6ca Merge pull request #2167 from github/koesie10/react-18
Upgrade to React 18
2023-04-03 10:47:20 +02:00
Koen Vlaswinkel
e997dab8cf Merge branch 'main' into koesie10/react-18 2023-04-03 10:14:38 +02:00
Koen Vlaswinkel
64503770e0 Merge pull request #2255 from github/koesie10/results-view-regression-unit-test
Add simple regression unit test for the results view
2023-04-03 10:14:26 +02:00
Dave Bartolomeo
4bba53d5ad Merge pull request #2246 from github/dbartol/debug-extension-packs
Move extension pack resolution into `LocalQueries`
2023-03-31 14:36:35 -04:00
Dave Bartolomeo
b67e3b7c35 Merge pull request #2245 from github/dbartol/local-queries-commands
Move `LocalQueries` commands to be member functions
2023-03-31 14:31:44 -04:00
Koen Vlaswinkel
cb2b4f432a Reduce nesting in if-statement 2023-03-31 16:13:22 +02:00
Koen Vlaswinkel
b4b020800e Use getErrorMessage 2023-03-31 13:52:46 +02:00
Koen Vlaswinkel
918fb75fe3 Better error message and check for results info 2023-03-31 13:52:21 +02:00
Koen Vlaswinkel
d5610c1a6f Add simple regression unit test for the results view
This adds a really simple regression unit test for the results view
which checks that the results view can render a SARIF file. This is
in preparation for the upgrade to React 18 to ensure that we don't
break the basic functionality of the results view.
2023-03-31 13:48:10 +02:00
Dave Bartolomeo
6e51d81a9b Merge branch 'main' into dbartol/local-queries-commands 2023-03-30 10:33:43 -04:00
Dave Bartolomeo
0da5aab1e9 Merge branch 'main' into dbartol/debug-extension-packs 2023-03-30 10:33:16 -04:00
Dave Bartolomeo
dd9f6bf185 Merge pull request #2244 from github/dbartol/debug-context
Refactor local query evaluation to prepare for debug adapter
2023-03-30 10:23:11 -04:00
Dave Bartolomeo
110f5f9d07 Merge remote-tracking branch 'origin/main' into dbartol/debug-context 2023-03-30 10:09:08 -04:00
dependabot[bot]
9058814fcf Bump ts-loader from 8.1.0 to 9.4.2 in /extensions/ql-vscode
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.1.0 to 9.4.2.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.1.0...v9.4.2)

---
updated-dependencies:
- dependency-name: ts-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 14:00:11 +00:00
dependabot[bot]
875f894741 Bump typescript from 4.6.4 to 5.0.2 in /extensions/ql-vscode
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.4 to 5.0.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.4...v5.0.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 13:58:59 +00:00
Dave Bartolomeo
c6309a9800 Show warning instead of error when using extension packs with legacy query server 2023-03-30 09:53:33 -04:00
Koen Vlaswinkel
8a4f2837e2 Merge pull request #2249 from github/koesie10/improve-monitor-error-message
Improve monitor error message
2023-03-30 11:40:38 +02:00
Robert
1e004514ea Merge pull request #2237 from github/robertbrignull/use_app_commands_6
Convert call sites to use typed commands (part 6): createVSCodeCommandManager in tests
2023-03-30 10:30:26 +01:00
Dave Bartolomeo
aef836f9b1 Move LocalQueries commands to be member functions 2023-03-29 18:20:11 +00:00
Dave Bartolomeo
41e0702d3a Update extensions/ql-vscode/src/run-queries-shared.ts
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
2023-03-29 14:15:05 -04:00
Koen Vlaswinkel
0bf01274e8 Merge pull request #2248 from github/koesie10/fail-vsce-workflow-on-failure
Fail VSCE workflow on failure
2023-03-29 16:00:22 +02:00
Koen Vlaswinkel
91af71dbb6 Merge pull request #2247 from github/koesie10/use-gh-release-create
Use gh release create instead of deprecated actions
2023-03-29 16:00:07 +02:00
Koen Vlaswinkel
b06d935256 Improve monitor error message
This will improve the error message shown when monitoring fails. Instead
of showing "Error while monitoring variant analysis: Not Found", this
will now show "Error while monitoring variant analysis "Empty block
(javascript) [29/3/2023 10:45:10]: Not Found". This should make it
easier for the user to figure out which query history item is
problematic.

We're not using the full query history item label here because that
would require access to the query history item, which we don't yet have
here. Adding it here would add a dependency on the query history, which
seems undesirable.
2023-03-29 14:43:07 +02:00
Koen Vlaswinkel
70aa6df6c4 Fail VSCE workflow on failure
We were ignoring errors coming from `vsce publish` and this was causing
the workflow to succeed even when the publish failed. This will remove
the `||` and let the workflow fail if the publish fails.
2023-03-29 12:56:41 +02:00
Koen Vlaswinkel
58a1e27e64 Use gh release create instead of deprecated actions 2023-03-29 12:09:34 +02:00
Dave Bartolomeo
c712b2999c Merge branch 'dbartol/debug-context' of https://github.com/github/vscode-codeql into dbartol/debug-context 2023-03-28 18:52:38 -04:00
Dave Bartolomeo
d84baedb52 Use default value for id parameter of createQueryRun() 2023-03-28 18:51:19 -04:00
Dave Bartolomeo
a8cd9c2abb Fix bad param reference 2023-03-28 18:46:27 -04:00
Dave Bartolomeo
62cd4e3c64 Move extension pack resolution into LocalQueries
This way the debug configuration will be able to override it.
2023-03-28 18:26:33 -04:00
Dave Bartolomeo
24ecd6feb8 Update extensions/ql-vscode/src/run-queries-shared.ts
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
2023-03-28 18:24:54 -04:00
Dave Bartolomeo
a00db34999 Mock CancellationToken slightly better 2023-03-28 17:24:00 -04:00
Dave Bartolomeo
f247687dd9 Better encapsulation of LocalQueryRun 2023-03-28 13:19:04 -04:00
Dave Bartolomeo
39e7caa972 Fix feedback 2023-03-28 12:59:27 -04:00
Dave Bartolomeo
2cb329bf03 Remove redundant check for custom log directory 2023-03-28 12:56:35 -04:00
Dave Bartolomeo
258cb55de0 Fix the _other_ typo 2023-03-28 12:52:49 -04:00
Dave Bartolomeo
b358f11e62 Fix integration tests on Windows 2023-03-28 12:05:58 -04:00