Commit Graph

4615 Commits

Author SHA1 Message Date
Robert
cda3483b01 Use getOnDiskWorkspaceFoldersObjects early instead of getting all folders and filtering later 2023-05-22 10:51:32 +01:00
Robert
78f11397e2 Exclude src archives and other non-normal workspace folders 2023-05-22 10:42:47 +01:00
Robert
935c9b996f Don't include bad workspace roots in the list 2023-05-22 10:41:49 +01:00
Robert
4e46d87a77 Use name from file tree instead of calculating from path 2023-05-19 17:09:21 +01:00
Robert
a8f8990793 Hook query discovery results up to query panel 2023-05-19 17:09:21 +01:00
Robert
0a534ae360 Add QueryDiscovery class 2023-05-19 17:09:21 +01:00
Robert
13f8f19339 Add resolveQueries to CodeQL CLI 2023-05-19 17:09:21 +01:00
Robert
a3f2b7b1ca Merge pull request #2431 from github/robertbrignull/app-workspace
Add workspace folders to App interface
2023-05-19 17:08:59 +01:00
Robert
6371356b4b Merge pull request #2432 from github/robertbrignull/tree-node-shared
Pull out node classes to shared location
2023-05-19 17:06:24 +01:00
Robert
a7f6401be7 Add workspace folders to App interface 2023-05-19 15:28:04 +01:00
Robert
a5af2f2e4b Pull out node classes to shared location 2023-05-19 13:04:58 +01:00
Andrew Eisenberg
3ebd13df57 Merge pull request #2425 from github/aeisenberg/truncated-log-msg
Ensure full stack traces are included in log messages
2023-05-17 08:51:35 -07:00
Andrew Eisenberg
4ad3f7cb1f Merge branch 'main' into aeisenberg/truncated-log-msg 2023-05-17 08:08:34 -07:00
Andrew Eisenberg
0f1f00dfc8 Merge pull request #2424 from github/aeisenberg/update-changelog
Update changelog
2023-05-17 08:08:07 -07:00
Robert
b47f018b69 Merge pull request #2426 from github/robertbrignull/open-on-click
Open query file on click
2023-05-17 15:54:11 +01:00
shati-patel
565a7a53e0 Only implement "open file" when you click a file node (not a folder) 2023-05-17 14:43:43 +01:00
Robert
ec1fda21d0 Open query file on click 2023-05-17 12:16:09 +01:00
Robert
baea36561d Merge pull request #2423 from github/robertbrignull/query-tree-types
Simplify types around query panel
2023-05-17 10:39:43 +01:00
Andrew Eisenberg
55b65e33ad Update changelog 2023-05-16 14:51:03 -07:00
Andrew Eisenberg
276e2cfdcf Ensure full stack traces are included in log messages
Pass in the `fullMessage` to `internalShowAndLog` so that stack traces
aren't truncated.
2023-05-16 14:48:19 -07:00
Andrew Eisenberg
91c58f3618 Update changelog
For #2422.
2023-05-16 12:32:29 -07:00
Robert
1ceccc8b4d Avoid double-declaring fields that are inherited from TreeItem 2023-05-16 16:57:02 +01:00
Robert
b0371b5075 Simplify types on TreeDataProvider methods 2023-05-16 16:55:52 +01:00
Shati Patel
9ce95a3554 Queries panel: Expand/collapse child nodes (#2419) 2023-05-16 15:45:59 +00:00
Andrew Eisenberg
1dc83c5628 Merge pull request #2422 from github/aeisenberg/compare-view-quick-eval
Allow compare view to work with quick-eval
2023-05-16 08:41:12 -07:00
Koen Vlaswinkel
d00624cc85 Merge pull request #2420 from github/koesie10/cancel-monitor-on-404
Cancel monitoring variant analysis on 404 response
2023-05-16 11:57:26 +02:00
Andrew Eisenberg
4c33c06d55 Allow compare view to work with quick-eval
The compare view typically works by matching the results sets of
queries. It only allows the results sets of queries with identical
names to be compared.

Manually run queries use `#select` as the default result set. However,
quick eval queries use a different, generated, name. Therefore, these
two kinds of queries cannot be compared.

This commit changes the heuristics so that if there are no identical;y
named results sets, the first result set of each query that is prefixed
with `#` is used (this is the default result set).

It also makes a slightly nicer error message if there are no comparable
results sets.
2023-05-15 15:51:48 -07:00
Koen Vlaswinkel
2d2a1fb2d1 Add tests for variant analysis monitor 2023-05-15 15:41:15 +02:00
Koen Vlaswinkel
5b9ed39f4f Restart variant analysis monitor when reauthenticating 2023-05-15 15:08:32 +02:00
Koen Vlaswinkel
9e74ae0bbf Cancel monitoring variant analysis on 404 2023-05-15 15:08:32 +02:00
Koen Vlaswinkel
927a0f0691 Track currently monitoring variant analyses 2023-05-15 14:50:13 +02:00
Shati Patel
e9552df395 Create a basic tree view for the queries panel (#2418) 2023-05-15 11:10:51 +00:00
Alexander Eyers-Taylor
3e6372d6fa Better error handling for unexpected query server termination. (#2404)
* Log stdout when servers are terminated with errors.

This logs the last stdout chunk (probabaly the last line) if things
went wrong. This can sometimes be useful for debugging.

It also prints the signal when killed by a signal
(rather than printing null)

* Restart/Abort the queryserver if the process dies.

This cancels any running tasks and gives a limited number of restarts.

* Update extensions/ql-vscode/src/codeql-cli/cli.ts

Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>

* Update extensions/ql-vscode/src/query-server/query-server-client.ts

Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>

---------

Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
2023-05-11 12:39:31 +01:00
Shati Patel
d0ca885e80 Move Discovery class into common folder (#2414) 2023-05-10 16:58:26 +00:00
Shati Patel
7fd984a7d0 Add a new blank "queries" panel (#2412) 2023-05-10 13:23:43 +01:00
Koen Vlaswinkel
00f4bc1fda Merge pull request #2411 from github/koesie10/remove-deprecated-url-parse
Remove deprecated use of `url.parse`
2023-05-10 11:09:06 +02:00
Koen Vlaswinkel
7dfa6f0f58 Merge pull request #2408 from github/koesie10/replace-deprecated-storage-path
Replace deprecated `storagePath` by `storageUri`
2023-05-10 11:08:52 +02:00
Koen Vlaswinkel
8a75399cb7 Merge branch 'main' into koesie10/remove-deprecated-url-parse 2023-05-10 09:30:57 +02:00
Koen Vlaswinkel
6e5188fbbe Replace Uri.parse by Uri.file 2023-05-10 09:30:53 +02:00
Koen Vlaswinkel
ddbe3cdc2b Add test cases for containsPath 2023-05-09 14:20:15 +02:00
Koen Vlaswinkel
9290f57b62 Use normalized path for checking inclusion 2023-05-09 14:20:15 +02:00
Koen Vlaswinkel
a414213804 Replace deprecated storagePath by storageUri
This replaces access to the deprecated `storagePath` and
`globalStoragePath` to use `storageUri` and `globalStorageUri` instead.
2023-05-09 14:20:15 +02:00
Andrew Eisenberg
3ad006de92 Merge pull request #2401 from github/github-action/bump-cli
Bump CLI Version to v2.13.1 for integration tests
2023-05-09 03:58:53 -07:00
Shati Patel
e722bf3e0b Merge branch 'main' into github-action/bump-cli 2023-05-09 11:19:48 +01:00
Koen Vlaswinkel
9e7678de7a Remove deprecated use of url.parse
`url.parse` is deprecated and should be replaced by the WHATWG URL API,
so this makes that change. The `protocol` and `host` properties are
unchanged, so no other changes are needed.
2023-05-09 10:15:58 +02:00
Nora
a4f1f49506 Merge pull request #2409 from github/nora/split-codeql-goto-commands
Split codeQL.goto and codeQL.previewQueryHelp command
2023-05-08 17:00:21 +02:00
Nora
6deb04bd26 Split codeQL.previewQueryHelp command 2023-05-08 12:27:12 +00:00
Nora
b6df591329 Split codeQL.goto command 2023-05-08 12:15:07 +00:00
Andrew Eisenberg
5084b32152 Merge branch 'main' into github-action/bump-cli 2023-05-05 16:07:33 -07:00
Robert
bf9eb2469b Merge pull request #2370 from github/robertbrignull/undefined_codeflows
Avoid crashing when SARIF file contains invalid thread flow locations
2023-05-05 17:43:58 +01:00