From 0f1ac5cff09846e88f9fc55aa03f63fddb0e7e5d Mon Sep 17 00:00:00 2001 From: Michael Charfadi Date: Mon, 2 Sep 2024 14:46:46 +0200 Subject: [PATCH] [3936] Add FormDescriptionEditor support in vs-code extension MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://github.com/eclipse-sirius/sirius-web/issues/3936 Signed-off-by: Michaƫl Charfadi --- CHANGELOG.adoc | 1 + vscode-extension/src/view/app/App.tsx | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 08b369a4791..6f0839158a0 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1149,6 +1149,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 diff --git a/vscode-extension/src/view/app/App.tsx b/vscode-extension/src/view/app/App.tsx index ef9b076e228..7a8d90fdf01 100644 --- a/vscode-extension/src/view/app/App.tsx +++ b/vscode-extension/src/view/app/App.tsx @@ -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'; @@ -123,6 +124,14 @@ export const App = ({ readOnly={false} /> ); + } else if (representationKind.startsWith('siriusComponents://representation?type=FormDescriptionEditor')) { + component = ( + + ); } else if (representationKind.startsWith('siriusComponents://representation?type=Form')) { component = (