Koen Vlaswinkel
76db520ce7
Only allow a single model editor per database
...
This will add checks in the appropriate places to ensure that only a
single model editor is opened per database.
2023-10-11 11:51:05 +02:00
Charis Kyriakou
2b47d3d192
Ensure modeled methods are not undefined in usages panel ( #2946 )
2023-10-11 08:29:39 +00:00
Koen Vlaswinkel
e77cf28192
Merge pull request #2944 from github/dependabot/npm_and_yarn/extensions/ql-vscode/postcss-8.4.31
...
Bump postcss from 8.4.24 to 8.4.31 in /extensions/ql-vscode
2023-10-11 09:51:41 +02:00
Koen Vlaswinkel
59e23f35e2
Merge pull request #2943 from github/koesie10/state-confusion
...
Fix confusion between modeling store and view states
2023-10-11 09:45:58 +02:00
dependabot[bot]
33d55b1f0a
Bump postcss from 8.4.24 to 8.4.31 in /extensions/ql-vscode
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.4.24 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.4.24...8.4.31 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-10 15:03:37 +00:00
Koen Vlaswinkel
e7ddb4406a
Merge pull request #2937 from github/koesie10/remove-gulp-sourcemaps
...
Remove `gulp-sourcemaps` dependency
2023-10-10 17:02:00 +02:00
Koen Vlaswinkel
9a12a12065
Unexport DbModelingState
2023-10-10 16:57:19 +02:00
Koen Vlaswinkel
073440914d
Set instance variables on webview load
2023-10-10 16:55:55 +02:00
Robert
a6625334f0
Merge pull request #2940 from github/robertbrignull/CommonFromViewMessages
...
Add CommonFromViewMessages to FromModelEditorMessage
2023-10-10 15:49:04 +01:00
Koen Vlaswinkel
77bb9780ec
Fix confusion between modeling store an view states
...
This fixes three bugs related to the modeling store and view states:
- In the model editor view, when `setModeledMethods` was called, it
would do it on the active database, instead of the database that the
view was showing. This should not result in any visible bugs since the
active database is always the one that is being shown (in theory), but
I can imagine that it could cause issues if showing multiple model
editors next to each other.
- In the method modeling panel, the "reveal in editor" button would
always show the already active model editor. Therefore, if you had
multiple open and were still viewing the method of the first one, it
would always show the second one.
- In the method modeling panel, the same bug would cause the incorrect
modeled methods to be updated.
2023-10-10 16:44:40 +02:00
Koen Vlaswinkel
bb88c148aa
Merge pull request #2941 from github/koesie10/modeling-store-modeled-methods-bug
...
Fix bug when selecting method without modeled methods
2023-10-10 16:18:42 +02:00
Robert
6df7ea3ddc
Remove unused import
2023-10-10 15:15:29 +01:00
Robert
2beaf9a88c
ViewLoadedMsg is already included
2023-10-10 15:11:30 +01:00
Robert
a7dbae02e0
Use ap logger
2023-10-10 15:11:19 +01:00
Robert
28ac019929
Fix typo
2023-10-10 15:11:09 +01:00
Koen Vlaswinkel
2e2ab11e4f
Merge pull request #2939 from github/koesie10/unhandled-error-stack
...
Add stack trace to unhandled error log message
2023-10-10 16:10:01 +02:00
Robert
edf3cad6e4
Add CommonFromViewMessages to FromModelEditorMessage
2023-10-10 15:03:23 +01:00
Robert
246c347b04
Merge pull request #2938 from github/robertbrignull/legacy-conversion
...
Make use of modeled-methods-legacy.ts in the webview code
2023-10-10 15:00:52 +01:00
Koen Vlaswinkel
e332b26f29
Fix bug when selecting method without modeled methods
...
When selecting a method that has no modeled methods, the modeling state
would not contain an entry for the method signature. This would cause
the `modeledMethods` to be `undefined`, which is not allowed according
to its type.
2023-10-10 15:51:59 +02:00
Koen Vlaswinkel
22f6ac7974
Add stack trace to unhandled error log message
...
This change sets the `fullMessage` of the
`showAndLogExceptionWithTelemetry` to include the stack trace. This
makes it possible to find the source of the error rather than only
knowing that a specific error occurred. If the error does not have a
stack trace (which should be rare) the message will be the same as
before.
2023-10-10 15:45:49 +02:00
Robert
e45f4bd0d9
Merge branch 'main' into robertbrignull/legacy-conversion
2023-10-10 14:37:20 +01:00
Charis Kyriakou
f4d74c7d3f
Deal with already modeled methods in the modeling panel ( #2933 )
2023-10-10 14:35:21 +01:00
Robert
7ba58b6298
Use legacy modeled method conversions instead of custom conversions
2023-10-10 14:23:06 +01:00
Robert
2b59c041b8
Make convertFromLegacyModeledMethod handle undefined
2023-10-10 14:23:06 +01:00
Robert
a434fbffbc
Move modeled-methods-legacy.ts to /shared directory
2023-10-10 14:23:06 +01:00
Koen Vlaswinkel
649f69234e
Remove gulp-sourcemaps
2023-10-10 14:37:20 +02:00
Charis Kyriakou
4ee86c15ad
Add some spacing in modeling method empty states ( #2934 )
2023-10-10 10:52:15 +00:00
Robert
fcfd4f37a6
Merge pull request #2926 from github/robertbrignull/JumpToUsageMessage
...
Only include method signature in JumpToUsageMessage
2023-10-10 11:12:36 +01:00
Robert
6561bb0543
Merge branch 'main' into robertbrignull/JumpToUsageMessage
2023-10-10 10:50:21 +01:00
Koen Vlaswinkel
319a54c32f
Merge pull request #2906 from github/koesie10/convert-remaining-multiple-models
...
Convert remaining extension host code to handle multiple models
2023-10-10 11:43:09 +02:00
Koen Vlaswinkel
385b0e8d1a
Merge remote-tracking branch 'origin/main' into koesie10/convert-remaining-multiple-models
2023-10-10 11:22:08 +02:00
Robert
4dcfa8b679
Merge pull request #2927 from github/robertbrignull/generateMethodsFromLlm
...
Only include method signatures in generateMethodsFromLlm message
2023-10-10 10:19:20 +01:00
Robert
47509a922a
Rename jumpToUsage => jumpToMethod throughout
2023-10-10 10:14:27 +01:00
Charis Kyriakou
7eab7e4e48
Set modeling mode when initialising method modeling panel ( #2932 )
2023-10-10 10:12:01 +01:00
Charis Kyriakou
f794a19d96
Track db related to modeled method and react when it closes ( #2930 )
2023-10-10 09:51:50 +01:00
Charis Kyriakou
e98611fd21
Ensure modified methods updated after changing a method from the modeling panel ( #2929 )
2023-10-10 08:57:36 +01:00
Koen Vlaswinkel
461cf15a47
Merge remote-tracking branch 'origin/main' into koesie10/convert-remaining-multiple-models
2023-10-10 09:30:29 +02:00
Koen Vlaswinkel
54e1b29940
Add explicit return type to convertToLegacyModeledMethod
2023-10-10 09:26:27 +02:00
Dave Bartolomeo
623890adc9
Merge pull request #2922 from github/dbartol/passthru
...
Add `additionalArgs` option to `launch.json`
2023-10-09 15:04:13 -04:00
Dave Bartolomeo
e7f75ab928
Merge branch 'dbartol/passthru' of https://github.com/github/vscode-codeql into dbartol/passthru
2023-10-09 14:44:49 -04:00
Dave Bartolomeo
df02fecf3c
Fix test expectations
2023-10-09 14:44:33 -04:00
Dave Bartolomeo
a861346b10
Merge branch 'main' into dbartol/passthru
2023-10-09 14:06:14 -04:00
Philip Ginsbach
86b2157552
Merge pull request #2792 from github/ginsbach/TextMateInstantiationSyntax
...
fix syntax highlighting after imports with instantiation arguments
2023-10-09 17:17:55 +01:00
Philip Ginsbach
47fa163cb9
Update compiled grammar
2023-10-09 16:58:00 +01:00
Dave Bartolomeo
c78f01758a
Alternate fix for import highlighting with instantiations
2023-10-09 16:58:00 +01:00
Philip Ginsbach
353e22d6e8
link to the PR from the changelog entry
2023-10-09 16:58:00 +01:00
Philip Ginsbach
599d31e5ac
add changelog entry for TextMate instantiation argument syntax
2023-10-09 16:57:25 +01:00
Philip Ginsbach
64df792eda
TextMate grammar: imports can have instantiation arguments
2023-10-09 16:56:21 +01:00
Robert
feebf7c3fd
Only include method signatures in generateMethodsFromLlm
2023-10-09 16:17:46 +01:00
Robert
27c4bd8349
Merge pull request #2910 from github/robertbrignull/multiple-models-method-row
...
Add ability for MethodRow to render multiple modelings of the same method
2023-10-09 16:17:17 +01:00