Skip to content

Commit

Permalink
[3936] Add FormDescriptionEditor support in vs-code extension
Browse files Browse the repository at this point in the history
Bug: #3936
Signed-off-by: Michaël Charfadi <[email protected]>
  • Loading branch information
mcharfadi committed Sep 2, 2024
1 parent b2b50cc commit 4cda6ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,7 @@ An error message is now displayed if the _Shape_ is not set.
- https://github.com/eclipse-sirius/sirius-web/issues/2429[#2429] [sirius-web] Ensure that view models can be successfully uploaded by loading the default color palettes
- https://github.com/eclipse-sirius/sirius-web/issues/2433[#2433] [form] Fix an issue where the readonly property of FlexboxContainerPropertySection was not correctly dispatched to children.
- https://github.com/eclipse-sirius/sirius-web/issues/3943[#3943] [vs-code] Fix an issue with widget reference
- https://github.com/eclipse-sirius/sirius-web/issues/3936[#3936] [vs-code] Add FormDescriptionEditor support in vs-code extension

=== New Features

Expand Down
9 changes: 9 additions & 0 deletions vscode-extension/src/view/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
SelectionContextProvider,
} from '@eclipse-sirius/sirius-components-core';
import { DiagramRepresentation } from '@eclipse-sirius/sirius-components-diagrams';
import { FormDescriptionEditorRepresentation } from '@eclipse-sirius/sirius-components-formdescriptioneditors';
import { FormRepresentation } from '@eclipse-sirius/sirius-components-forms';
import { DetailsView } from '@eclipse-sirius/sirius-web-application';
import { Theme, ThemeProvider } from '@mui/material';
Expand Down Expand Up @@ -123,6 +124,14 @@ export const App = ({
readOnly={false}
/>
);
} else if (representationKind.startsWith('siriusComponents://representation?type=FormDescriptionEditor')) {
component = (
<FormDescriptionEditorRepresentation
editingContextId={state.editingContextId}
representationId={state.representationId}
readOnly={false}
/>
);
} else if (representationKind.startsWith('siriusComponents://representation?type=Form')) {
component = (
<FormRepresentation
Expand Down

0 comments on commit 4cda6ad

Please sign in to comment.