Robert
1993db5122
Merge pull request #2952 from github/robertbrignull/save_multiple_modeled_methods
...
Implement editing / saving multiple modeled methods from the model editor
2023-10-12 09:19:16 +01:00
Anders Starcke Henriksen
53df2bcd87
Merge pull request #2956 from github/v1.9.2
...
Release / Release (push) Has been cancelled
Release / Publish to VS Code Marketplace (push) Has been cancelled
Release / Publish to Open VSX Registry (push) Has been cancelled
Release v1.9.2
v1.9.2
2023-10-12 10:18:15 +02:00
Koen Vlaswinkel
0835b140e7
Merge pull request #2948 from github/koesie10/sort-usages-panel
...
Sort methods in usages panel according to model editor sort order
2023-10-12 09:55:00 +02:00
Anders Starcke Henriksen
0e62d2635c
v1.9.2
2023-10-12 09:50:13 +02:00
Koen Vlaswinkel
78284cbc7a
Merge remote-tracking branch 'origin/main' into koesie10/sort-usages-panel
2023-10-12 09:39:11 +02:00
Koen Vlaswinkel
0d7002273a
Merge pull request #2949 from github/koesie10/single-model-editor-per-db
...
Only allow a single model editor per database
2023-10-12 09:37:56 +02:00
Charis Kyriakou
7041dd7698
Rename 'open database' button and only show if source available ( #2945 )
2023-10-12 08:09:05 +01:00
Robert
539ce245fc
Add more tests covering MethodRow
2023-10-11 16:29:59 +01:00
Koen Vlaswinkel
a3d41a2afe
Merge pull request #2924 from github/koesie10/modeling-panel-multiple-models-add-remove
...
Add ability to add/remove modelings to method modeling panel
2023-10-11 16:20:39 +02:00
Robert
b881a38703
Fix expected value in tests
2023-10-11 15:03:11 +01:00
Koen Vlaswinkel
0cbdadb271
Add newline for readability
...
Co-authored-by: Robert <robertbrignull@github.com >
2023-10-11 15:59:56 +02:00
Robert
6db59a84a2
Use 'type: "none"' instead of undefined
2023-10-11 14:12:58 +01:00
Robert
eaf81efd64
Extract nested ternary to method
2023-10-11 14:12:10 +01:00
Henry Mercer
5105187dbd
Merge pull request #2951 from github/github-action/bump-cli
...
Bump CLI Version to v2.15.0 for integration tests
2023-10-11 14:03:49 +01:00
Robert
9da3dc9a25
Allow editing multiple models in model editor
2023-10-11 13:41:45 +01:00
Robert
c7451fc4c2
Remove need for forEachModeledMethod method
2023-10-11 13:41:42 +01:00
Koen Vlaswinkel
918362f39e
Merge pull request #2950 from github/koesie10/variant-analysis-save-before-start
...
Use `saveBeforeStart` setting when running a variant analysis
2023-10-11 14:34:08 +02:00
github-actions[bot]
0b5d2d86cf
Bump CLI version from v2.14.6 to v2.15.0 for integration tests
2023-10-11 12:30:29 +00:00
Koen Vlaswinkel
3a035708c5
Merge pull request #2947 from github/koesie10/update-set-selected-method-message
...
Convert `SetSelectedMethodMessage` to include multiple modeled methods
2023-10-11 13:59:48 +02:00
Koen Vlaswinkel
84211c63bb
Merge remote-tracking branch 'origin/main' into koesie10/update-set-selected-method-message
2023-10-11 13:40:27 +02:00
Koen Vlaswinkel
11218522e7
Update CHANGELOG
2023-10-11 13:35:11 +02:00
Koen Vlaswinkel
0bdd441767
Use saveBeforeStart setting when running a variant analysis
...
This will respect the user's `saveBeforeStart` setting when running a
variant analysis. This re-uses the existing `saveBeforeStart` function
that is used when running local queries. The default behavior if the
setting is not set is to save all open named files.
2023-10-11 13:33:24 +02:00
Koen Vlaswinkel
667bf19f46
Add methodSignature to SetMultipleModeledMethodsMessage
2023-10-11 13:07:18 +02:00
Robert
c459d0ff65
Merge pull request #2942 from github/robertbrignull/SetModeledMethodsMessage
...
Convert SetModeledMethodsMessage to include multiple modeled methods
2023-10-11 11:45:57 +01:00
Koen Vlaswinkel
039b28235d
Only allow 1 view in the view tracker
...
This will change the model editor view tracker to only store 1 view per
database item instead of an array of views per database item.
2023-10-11 11:54:47 +02:00
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
Koen Vlaswinkel
0e1afcee64
Sort methods in usages panel according to model editor sort order
...
This sorts the methods in the methods usages panel the same as in the
model editor. Since this is dependent on the mode, we need to keep track
of the mode in the modeling store, so this also adds a mode field to the
db state.
2023-10-11 11:42:10 +02:00
Robert
62c9e51c25
Avoid unnnecessarily renaming field read from props
2023-10-11 10:41:48 +01:00
Charis Kyriakou
2b47d3d192
Ensure modeled methods are not undefined in usages panel ( #2946 )
2023-10-11 08:29:39 +00:00
Koen Vlaswinkel
4a62d05af6
Convert SetSelectedMethodMessage to include multiple modeled methods
2023-10-11 10:14:58 +02: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
c6a9f23e7e
Delete convertToLegacyModeledMethods
2023-10-10 15:50:02 +01:00
Robert
d531bc642d
Convert SetModeledMethodsMessage to include multiple modeled methods
2023-10-10 15:50:02 +01: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