Koen Vlaswinkel
30daf49cb8
Rename external-api-usage-queries.ts to model-editor-queries.ts
2023-10-26 11:41:56 +02:00
Koen Vlaswinkel
ea2999fcc7
Rename model-editor-queries.ts to model-editor-queries-setup.ts
2023-10-26 11:41:32 +02:00
Koen Vlaswinkel
c548aa0ff9
Remove unnecessary nesting in external-api-usage-query.test.ts
2023-10-26 11:40:58 +02:00
Koen Vlaswinkel
e70bceb6dd
Rename runExternalApiQueries to runModelEditorQueries
2023-10-26 11:40:26 +02:00
Koen Vlaswinkel
818e93e86b
Rename prepareExternalApiQuery to prepareModelEditorQueries
2023-10-26 11:39:06 +02:00
Koen Vlaswinkel
322b376a2c
Remove unused predicates file
2023-10-26 11:34:46 +02:00
Koen Vlaswinkel
0744b25a47
Use new language definitions for the view
2023-10-26 11:33:36 +02:00
Koen Vlaswinkel
8e721a6670
Use new language definitions for reading/writing
2023-10-26 11:33:34 +02:00
Koen Vlaswinkel
df3b94c081
Add language to model editor view
2023-10-26 11:33:10 +02:00
Koen Vlaswinkel
8a77a1fba2
Introduce separate files for predicate definitions
2023-10-26 11:33:08 +02:00
Koen Vlaswinkel
c9d1a6b447
Move predicates file to languages folder
2023-10-26 11:23:51 +02:00
Charis Kyriakou
234498a33e
Enable multiple models feature ( #3019 )
2023-10-26 09:13:25 +00:00
Koen Vlaswinkel
40a77dfd4a
Merge pull request #3018 from github/koesie10/fix-empty-location
...
Fix empty message with empty SARIF path
2023-10-26 11:04:45 +02:00
Koen Vlaswinkel
06b6595980
Update CHANGELOG
2023-10-26 10:42:11 +02:00
Shati Patel
9a97b7b0be
Deselect current db when the language context changes ( #3007 )
2023-10-25 14:54:01 +01:00
Koen Vlaswinkel
6622d5e114
Fix empty message with empty SARIF path
2023-10-25 14:55:15 +02:00
Koen Vlaswinkel
f0f5538b51
Remove check for isFolderAlreadyInWorkspace
2023-10-25 14:37:11 +02:00
Nora
3f8302796f
Merge pull request #3010 from github/nora/modeling-flow-testplan
...
Add method modeling flow to test plan
2023-10-25 14:28:59 +02:00
Koen Vlaswinkel
a3fad49577
Fix creation of nested query packs
...
Before, if you had selected a folder or file within for example
`codeql-custom-queries-java` and selected `java` as the language, it
would create a nested folder within `codeql-custom-queries-java` with
the name `codeql-custom-queries-java`. This is unexpected for the user,
who would expect a new query to be created within
`codeql-custom-queries-java`. This fixes that by checking for this
specific condition. It does not fix it for all scenarios, such as where
the selected file/folder is nested multiple levels deep within the
`codeql-custom-queries-java` folder.
2023-10-25 14:28:50 +02:00
Koen Vlaswinkel
68ab2fda2d
Create new queries in selected folder of queries panel
...
This will change the behavior of the "Create new query" command to
create the new query in the same folder as the first selected item in
the queries panel. If no items are selected, the behavior is the same
as before.
I've used events to communicate the selection from the queries panel to
the local queries module. This is some more code and some extra
complexity, but it ensures that we don't have a dependency from the
local queries module to the queries panel module. This makes testing
easier.
2023-10-25 14:28:48 +02:00
Koen Vlaswinkel
f3eefc9418
Add tests for prompting for database download
2023-10-25 14:22:55 +02:00
Koen Vlaswinkel
15a8655931
Do not prompt for database download by default
...
This changes the skeleton query wizard to not prompt for database
download after creating a query by default. Instead, it will show a
message with a button to download a database which will launch the same
prompt.
2023-10-25 14:22:55 +02:00
Koen Vlaswinkel
fb33879a95
Merge pull request #3015 from github/koesie10/reveal-file-in-queries-panel
...
Reveal opened files in queries panel
2023-10-25 13:58:08 +02:00
Nora
0e5306742d
Move test cases to optional and polish
2023-10-25 08:57:34 +00:00
Koen Vlaswinkel
3a07fa9e39
Show initially open file in queries panel
2023-10-25 10:13:48 +02:00
Koen Vlaswinkel
b6f7755908
Create subscribeToTreeSelectionEvents method
2023-10-25 10:06:14 +02:00
Koen Vlaswinkel
368f9c38ef
Only change selection when tree view is visible
2023-10-25 10:04:31 +02:00
Koen Vlaswinkel
1e58e5a723
Reveal opened file in queries panel
2023-10-25 10:04:31 +02:00
Robert
2ebccd532f
Merge pull request #3014 from github/robertbrignull/hidden_methods
...
Use the same logic for hiding methods in model editor and usages panel
2023-10-25 09:04:06 +01:00
Robert
231dcc0c55
Improve tests to cover showing supported modeled methods
2023-10-24 16:49:21 +01:00
Robert
675e2ec9f2
Use the same condition for hiding methods in model editor and usages panel
2023-10-24 16:34:39 +01:00
Shati Patel
f0f13f3569
Create query: open new query in editor before downloading DB ( #3009 )
2023-10-24 13:30:01 +00:00
Robert
8d336930c8
Merge pull request #3008 from github/robertbrignull/modeled_row_styling
...
Fix styling of "already modeled" rows when showing multiple methods
2023-10-24 14:13:18 +01:00
Koen Vlaswinkel
043cdab297
Merge pull request #3013 from github/koesie10/use-selected-language
...
Use selected language when creating query
2023-10-24 15:02:05 +02:00
Charis Kyriakou
b1172d7d64
Activate method modeling panel when model editor is opened ( #3011 )
2023-10-24 12:55:19 +01:00
Koen Vlaswinkel
8b5329fe08
Use selected language when creating query
...
This will change the "Create new query" command to use the selected
language when creating a new query. If no language is selected, it will
still prompt the user to pick a language.
2023-10-24 13:41:37 +02:00
Nora
7bade3e382
Include model panels in mandatory tests
2023-10-24 10:03:54 +00:00
Robert
eb42beee23
Move method classifications to start
2023-10-24 10:12:05 +01:00
Robert
2405628bcc
Fix span size
2023-10-24 10:11:50 +01:00
Robert
0a75a0e835
Merge pull request #2983 from github/robertbrignull/remove_selected_model
...
Handle when the number of modeled methods decreases
2023-10-23 14:34:17 +01:00
Robert
07a4ffb306
Add tests that pagination is updated when a model is removed
2023-10-23 13:50:29 +01:00
Robert
1424afc7a4
Add tests that pagination is updated when add a new model
2023-10-23 13:46:10 +01:00
Koen Vlaswinkel
c62c054b95
Merge pull request #3001 from github/koesie10/validation-errors-focus
...
Add higlight on modeled method row when clicking in validation error
2023-10-23 13:17:59 +02:00
Koen Vlaswinkel
41aeb47a4e
Merge pull request #3004 from github/koesie10/redactable-error-stack
...
Show stack for redactable error in log
2023-10-23 12:04:08 +02:00
Koen Vlaswinkel
4ca14f89df
Revert "Use os.EOL for separating stack in error"
...
This reverts commit b33b5bb7c4 .
The errors module is also imported in the webview, so we can't actually
use it.
2023-10-23 11:43:15 +02:00
Koen Vlaswinkel
8011481de2
Merge pull request #2996 from github/koesie10/query-save-dir
...
Fix results directory and evaluator log for cancelled queries
2023-10-23 10:45:41 +02:00
Koen Vlaswinkel
d682c520d5
Add tests for fullMessageWithStack
2023-10-23 10:44:25 +02:00
Koen Vlaswinkel
b33b5bb7c4
Use os.EOL for separating stack in error
2023-10-23 10:37:10 +02:00
Charis Kyriakou
1ab198fe49
Move modeling events to new ModelingEvents class ( #3005 )
2023-10-23 08:57:48 +01:00
Koen Vlaswinkel
48df8de2c2
Merge pull request #3003 from github/koesie10/fix-error-no-workspace-folders
...
Show error message for no workspace folders with model editor
2023-10-20 17:31:37 +02:00