Repository navigation
Conversation
c2ec421 to
15f2b6c
Compare
It displays sample SysML text in a syntax-highlighted editor. Bug: #2678 Signed-off-by: Guillaume Coutable <guillaume.coutable@obeo.fr>
15f2b6c to
9efd304
Compare
|
|
||
| export const TextualViewRepresentation = forwardRef<WorkbenchMainRepresentationHandle, RepresentationComponentProps>( | ||
| ( | ||
| { representationId }: RepresentationComponentProps, |
There was a problem hiding this comment.
Deleting a textual view leaves its editor tab open
Create and open a textual view on a part. In a second browser tab on the same project, delete the part. In the first tab, the view disappears from Explorer while its editor tab stays open and keeps displaying the sample text.
- Cause — The textual editor renders from the representation ID alone. It ignores
onRepresentationUnavailable, and the workbench relies on the active editor to report when its representation disappears. - Fix — Watch the representation's availability and call
onRepresentationUnavailablewhen its metadata disappears. Cover deletion of the owning element while the editor is open. - If skipped — Users can keep viewing or return to a tab for a deleted representation until they close it or reload the workbench.
There was a problem hiding this comment.
The subscription does not exist yet.
Thus, I cannot rely on the complete state of the subscription.
I will add a check on representation metadata every 5 seconds to close the editor if the representation has been deleted elsewhere.
| .descriptionId(description.getId()) | ||
| .iconURLs(List.of()) | ||
| .build(); | ||
| this.metadataPersistenceService.save(input, editingContext, metadata, createRepresentationInput.objectId()); |
There was a problem hiding this comment.
Textual views are dropped from project archives and cannot be duplicated
Enable the experiment and create a textual view on a part. Right-click the view in Explorer and choose Duplicate representation. The action returns an error. Download the project as a ZIP and import it again. The part is present, but its textual view is missing.
- Cause — Creation saves only representation metadata. Sirius Web's duplication and project export paths both require a stored representation content record.
- Fix — Persist a minimal textual representation record and register its deserializer so it survives project export and import. The editor can still render the sample text from the frontend.
- If skipped — The visible Duplicate action fails, and project archives silently omit textual views and their names.
| Imported reference spellings remain available while the model is loaded. After a reload, serialization uses the stored model. | ||
| Downstream callers can migrate from the deprecated `SysMLElementSerializer` to `SysONTextSerializer` for SysON model elements. | ||
| - https://github.com/eclipse-syson/syson/issues/2590[#2590] [diagrams] Add `Redefine a nested feature` tool in diagrams. | ||
| - https://github.com/eclipse-syson/syson/issues/2678[#2678] [textual-view] Add support for an experimental read-only textual representation displaying sample SysML text in a syntax-highlighted editor. |
There was a problem hiding this comment.
Append the textual view entry to the end of New features
Don't let your ai agent do that, or fix it yourself.
This is valid for every Pr now and in the future.
There was a problem hiding this comment.
Also don't forget to edit the release note and the documentation (in the next PR probably)
| "@lexical/rich-text": "0.42.0", | ||
| "@lexical/selection": "0.42.0", | ||
| "@lexical/utils": "0.42.0", | ||
| "@monaco-editor/react": "4.7.0", |
There was a problem hiding this comment.
List the new Monaco dependencies in the changelog
Compare the added dependencies in package.json with the v2026.12.0 Dependency update section. The package adds @monaco-editor/react 4.7.0 and monaco-editor 0.55.1, but neither appears in that section.
- Cause — The changelog describes the editor feature under New features and omits the dependency additions.
- Fix — Append one entry naming both packages and versions to the Dependency update section.
- If skipped — Downstream maintainers reviewing the changelog will miss two new frontend dependencies.
PLEASE READ ALL ITEMS AND CHECK ONLY RELEVANT CHECKBOXES BELOW
Auto review
Project management
queue:andreview-window:labels been added to the pull request? (In case of doubt, start with the labelsqueue: triageandreview-window: unscheduled)package:,type:)Changelog and release notes
CHANGELOG.adoc+doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adocbeen updated to reference the relevant issues?CHANGELOG.adoc?CHANGELOG.adoc?doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?Key highlightssection indoc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?Documentation
Tests