Koen Vlaswinkel
18646ab637
Update CHANGELOG
2023-10-19 10:04:08 +02:00
Koen Vlaswinkel
046bc13fc3
Try generating evaluation log summary after failed query
...
When a local query fails (for example, if it is cancelled), it may still
have an evaluation log. We weren't generating evaluation log summaries
in these cases, so the options to view the summary text and to use the
evaluation log viewer would not be available. This fixes it by also
trying to generate the summary in the case of a failed query.
2023-10-19 10:04:08 +02:00
Koen Vlaswinkel
226274cb4e
Fix showing of raw evaluator log for cancelled items
...
This will ensure that when "Show Evaluator Log (Raw JSON)" is used on a
cancelled query history item, we will still show it if it exists. This
changes the error messages on other cases to be more specific.
2023-10-19 10:04:08 +02:00
Koen Vlaswinkel
9928c338e9
Store query output dir on history items
...
This will add the `QueryOutputDir` to the `InitialQueryInfo` and
populate it when creating a local query history item. This will allow us
to open the results directory or show the evaluator log without a
completed query.
2023-10-19 10:04:08 +02:00
Andrew Eisenberg
df55e039a1
Merge pull request #2984 from github/aeisenberg/fix-log-path
2023-10-18 15:36:10 -07:00
Andrew Eisenberg
2e2051af6d
Merge branch 'main' into aeisenberg/fix-log-path
2023-10-18 15:04:12 -07:00
Andrew Eisenberg
4ad3d962ec
Add change note
...
Also, avoid a code scanning warning.
2023-10-18 15:03:16 -07:00
Robert
ec0e74bd9a
Merge pull request #2992 from github/robertbrignull/columnCount
...
Add $ to columnCount prop used by styled component
2023-10-18 18:29:02 +01:00
dependabot[bot]
8a1da313ae
Bump @babel/traverse from 7.22.8 to 7.23.2 in /extensions/ql-vscode ( #2994 )
...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse ) from 7.22.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse )
---
updated-dependencies:
- dependency-name: "@babel/traverse"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 16:50:14 +01:00
Shati Patel
a2f85877a8
Add option to sort DB panel by language ( #2993 )
2023-10-18 14:58:39 +01:00
Koen Vlaswinkel
30b51d98c8
Merge pull request #2988 from github/koesie10/error-default-branch
...
Add custom error handler for missing default branch
2023-10-18 14:12:03 +02:00
Robert
f886cd0dc8
Add $ to props used by styled component
2023-10-18 11:52:01 +01:00
Charis Kyriakou
96fb0046c5
Style update to in-progress drop-down ( #2986 )
2023-10-18 08:45:49 +01:00
Koen Vlaswinkel
903b272952
Merge pull request #2989 from github/koesie10/usage-panel-tree-items-reference
...
Keep reference to original items in usage data provider
2023-10-18 09:23:30 +02:00
Koen Vlaswinkel
a852f16eb1
Keep reference to original items in usage data provider
...
This changes the usage data provider tree items to keep a reference to
the method and usage instead of only including their properties in the
tree item. This makes it easier to find the original method and usage
when revealing an item in the tree. It also removes the `getParent` call
in `getTreeItem`.
The main reason for this fix is to ensure
`codeQLModelEditor.jumpToMethod` gets the correct `usage` argument.
It received the tree item before, but now we can actually pass the
usage that was clicked on.
2023-10-17 16:03:57 +02:00
Koen Vlaswinkel
a7f8019bf4
Merge pull request #2987 from github/koesie10/source-map-fix
...
Fix decoding source map with VS Code internal files
2023-10-17 15:40:38 +02:00
Koen Vlaswinkel
2d5caa77bc
Remove unnecessary casting
2023-10-17 15:19:04 +02:00
Koen Vlaswinkel
82c2952059
Add custom error handler for missing default branch
...
When the GitHub API returns an error for a missing default branch, we
will now show a custom error message. This custom error message includes
a link to the page to create the branch. The error is detected using the
`errors` field on the response that is now being returned.
2023-10-17 14:57:19 +02:00
Koen Vlaswinkel
67f6f8f160
Fix decoding source map with VS Code internal files
...
This makes it possible to decode source maps containing references to
code that is not part of the extension. If it finds any such references,
it will simply not decode the source map and use the original stack
trace instead.
2023-10-17 13:34:11 +02:00
Charis Kyriakou
abde8f3fae
Make automodel batch size configurable ( #2985 )
2023-10-17 12:07:30 +01:00
Robert
8d5574e468
Merge pull request #2982 from github/robertbrignull/add-remove-models
...
Implement onClick for the add/remove model buttons in the model editor
2023-10-17 10:29:16 +01:00
Andrew Eisenberg
cc0e850c72
Ensure the `logFileLocation` is set
...
`logFileLocation` was not set after a query finishes running. I don't
know when this bug was introduced. I think it goes as far back as
the refactor to remove the old query server.
2023-10-16 16:44:49 -07:00
Robert
46e7dda6a6
Don't bother using slice when creating handlers
2023-10-16 16:29:36 +01:00
Robert
d937934737
Use the onChange handler in tests
2023-10-16 16:27:23 +01:00
Robert
0ff523a64b
Add tests for for the add/remove model buttons
2023-10-16 15:36:46 +01:00
Robert
1d0a1f56b1
Implment onClick handlers for add/remove model buttons
2023-10-16 15:07:44 +01:00
Koen Vlaswinkel
fca68edbb3
Merge pull request #2969 from github/koesie10/fix-unmodeled-unsaved
...
Fix unmodeled methods always being marked as unsaved
2023-10-16 15:07:18 +02:00
Charis Kyriakou
b9279dc64f
Simplify modeling in progress state ( #2980 )
2023-10-16 12:54:13 +00:00
Koen Vlaswinkel
00b6ccdfe0
Simplify condition in useEffect
2023-10-16 13:53:53 +02:00
Koen Vlaswinkel
688b9863da
Merge pull request #2981 from github/koesie10/fix-failing-test
...
Fix failing test
2023-10-16 13:47:01 +02:00
Koen Vlaswinkel
c80641866c
Fix failing test
2023-10-16 13:25:35 +02:00
Koen Vlaswinkel
6a7ce9f4d2
Merge pull request #2976 from github/koesie10/methods-usage-panel-parent
...
Introduce separate tree item types in the methods usage panel
2023-10-16 13:25:05 +02:00
Koen Vlaswinkel
d0e0237b9e
Merge pull request #2965 from github/koesie10/modeled-method-validation-neutral
...
Fix neutral model validation to consider kind
2023-10-16 13:23:26 +02:00
Anders Starcke Henriksen
e57f04e6b1
Merge pull request #2975 from github/starcke/remove-old-language-filter
...
Remove old language context filter.
2023-10-16 13:06:40 +02:00
Charis Kyriakou
b87dfa4471
Show in-progress state in method modeling panel ( #2979 )
2023-10-16 11:47:31 +01:00
Robert
b1a4586791
Merge pull request #2977 from github/robertbrignull/fix_jump_to_usage
...
Revert changes to codeQLModelEditor.jumpToMethod to allow jumping to usages other than the first usage
2023-10-16 11:21:18 +01:00
Robert
aa8896e553
Merge pull request #2964 from github/robertbrignull/enable-add-multiple-models
...
Enable/disable the add/remove model buttons at the right times
2023-10-16 11:04:06 +01:00
Robert
9134e0e917
Add comment explaining caveats of setSelectedMethod
2023-10-16 11:03:19 +01:00
Robert
1259a3e61d
Use 'import type' in commands.ts
2023-10-16 10:59:12 +01:00
Robert
7aa0fe32c2
Revert changes to codeQLModelEditor.jumpToMethod
2023-10-16 10:42:18 +01:00
Anders Starcke Henriksen
cc2eec78bd
Merge branch 'main' into starcke/remove-old-language-filter
2023-10-16 11:27:56 +02:00
Koen Vlaswinkel
d715ceea10
Introduce separate tree item types in the methods usage panel
...
This creates new tree item types for methods and usages such that these
can contain references to their parent and children. This allows us to
easily find the parent of a usage and to find the children of a method.
This removes an expensive `find` call in `getParent`.
2023-10-16 11:18:27 +02:00
Anders Starcke Henriksen
8b3786c621
Remove old language context filter.
2023-10-16 10:30:26 +02:00
Koen Vlaswinkel
39a9f4ce1e
Merge pull request #2974 from github/koesie10/changelog-install-workspace-packs
...
Add CHANGELOG entry for #2960
2023-10-16 10:09:48 +02:00
Koen Vlaswinkel
b2de9e94cd
Add CHANGELOG entry for #2960
2023-10-16 09:53:22 +02:00
Charis Kyriakou
23dc8f16c3
Move in-progress methods state to modeling store ( #2971 )
2023-10-16 08:51:46 +01:00
Koen Vlaswinkel
d78a4d19eb
Merge pull request #2960 from github/koesie10/install-workspace-packs
...
Do not show non-workspace packs when installing pack dependencies
2023-10-16 09:51:29 +02:00
Anders Starcke Henriksen
3cbaa5aa24
Merge pull request #2935 from github/starcke/language-selection-panel
...
Add language filter panel.
2023-10-16 09:42:35 +02:00
Anders Starcke Henriksen
e8e6c6bbc7
Update comment.
2023-10-13 16:28:14 +02:00
Anders Starcke Henriksen
d5388576b5
Apply suggestions from code review
...
Co-authored-by: Koen Vlaswinkel <koesie10@users.noreply.github.com>
2023-10-13 16:00:17 +02:00