@finos/legend-application-studio 23.1.7 → 23.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/lib/application/LegendStudio.d.ts.map +1 -1
  2. package/lib/application/LegendStudio.js +3 -14
  3. package/lib/application/LegendStudio.js.map +1 -1
  4. package/lib/application/LegendStudioDocumentation.d.ts +5 -0
  5. package/lib/application/LegendStudioDocumentation.d.ts.map +1 -1
  6. package/lib/application/LegendStudioDocumentation.js +5 -0
  7. package/lib/application/LegendStudioDocumentation.js.map +1 -1
  8. package/lib/components/editor/edit-panel/EditPanel.d.ts.map +1 -1
  9. package/lib/components/editor/edit-panel/EditPanel.js +1 -1
  10. package/lib/components/editor/edit-panel/EditPanel.js.map +1 -1
  11. package/lib/components/editor/edit-panel/FileGenerationViewer.js +2 -2
  12. package/lib/components/editor/edit-panel/FileGenerationViewer.js.map +1 -1
  13. package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
  14. package/lib/components/editor/edit-panel/GrammarTextEditor.js +12 -11
  15. package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
  16. package/lib/components/editor/edit-panel/ModelImporter.js +5 -4
  17. package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
  18. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js +3 -2
  19. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js.map +1 -1
  20. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +3 -2
  21. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
  22. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +5 -3
  23. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
  24. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
  25. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +3 -2
  26. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
  27. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
  28. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js +3 -2
  29. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js.map +1 -1
  30. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
  31. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js +12 -11
  32. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js.map +1 -1
  33. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js +2 -2
  34. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js.map +1 -1
  35. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js +5 -4
  36. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js.map +1 -1
  37. package/lib/components/editor/edit-panel/element-generation-editor/FileSystemViewer.d.ts.map +1 -1
  38. package/lib/components/editor/edit-panel/element-generation-editor/FileSystemViewer.js +3 -2
  39. package/lib/components/editor/edit-panel/element-generation-editor/FileSystemViewer.js.map +1 -1
  40. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
  41. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +4 -3
  42. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
  43. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts.map +1 -1
  44. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js +3 -2
  45. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
  46. package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js +3 -3
  47. package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js.map +1 -1
  48. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts +2 -2
  49. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
  50. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +10 -8
  51. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
  52. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts +6 -6
  53. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
  54. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +8 -7
  55. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
  56. package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.d.ts +4 -4
  57. package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.d.ts.map +1 -1
  58. package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js.map +1 -1
  59. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
  60. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +3 -2
  61. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
  62. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js +3 -2
  63. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js.map +1 -1
  64. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +6 -5
  65. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  66. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +3 -2
  67. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
  68. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
  69. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js +3 -2
  70. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js.map +1 -1
  71. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +3 -2
  72. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
  73. package/lib/components/editor/side-bar/Explorer.js +7 -6
  74. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  75. package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
  76. package/lib/components/editor/side-bar/WorkflowManager.js +3 -2
  77. package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
  78. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
  79. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +4 -3
  80. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
  81. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts +2 -1
  82. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
  83. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +14 -1
  84. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js.map +1 -1
  85. package/lib/components/shared/DiffView.d.ts +2 -2
  86. package/lib/components/shared/DiffView.d.ts.map +1 -1
  87. package/lib/components/shared/DiffView.js +8 -7
  88. package/lib/components/shared/DiffView.js.map +1 -1
  89. package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
  90. package/lib/components/workspace-setup/CreateProjectModal.js +2 -1
  91. package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
  92. package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
  93. package/lib/components/workspace-setup/CreateWorkspaceModal.js +2 -1
  94. package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
  95. package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
  96. package/lib/components/workspace-setup/WorkspaceSetup.js +2 -1
  97. package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
  98. package/lib/index.css +2 -2
  99. package/lib/index.css.map +1 -1
  100. package/lib/index.d.ts +1 -1
  101. package/lib/index.d.ts.map +1 -1
  102. package/lib/index.js +1 -1
  103. package/lib/index.js.map +1 -1
  104. package/lib/package.json +8 -11
  105. package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
  106. package/lib/stores/editor/EditorGraphState.js +1 -1
  107. package/lib/stores/editor/EditorGraphState.js.map +1 -1
  108. package/lib/stores/editor/EditorTabManagerState.d.ts +1 -1
  109. package/lib/stores/editor/EditorTabManagerState.d.ts.map +1 -1
  110. package/lib/stores/editor/EditorTabManagerState.js +1 -1
  111. package/lib/stores/editor/EditorTabManagerState.js.map +1 -1
  112. package/lib/stores/editor/GraphEditFormModeState.d.ts.map +1 -1
  113. package/lib/stores/editor/GraphEditFormModeState.js.map +1 -1
  114. package/lib/stores/editor/editor-state/EditorState.d.ts +1 -1
  115. package/lib/stores/editor/editor-state/EditorState.d.ts.map +1 -1
  116. package/lib/stores/editor/editor-state/EditorState.js +1 -1
  117. package/lib/stores/editor/editor-state/EditorState.js.map +1 -1
  118. package/lib/stores/editor/editor-state/FileGenerationViewerState.d.ts +2 -2
  119. package/lib/stores/editor/editor-state/FileGenerationViewerState.d.ts.map +1 -1
  120. package/lib/stores/editor/editor-state/FileGenerationViewerState.js +7 -7
  121. package/lib/stores/editor/editor-state/FileGenerationViewerState.js.map +1 -1
  122. package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts +3 -3
  123. package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts.map +1 -1
  124. package/lib/stores/editor/editor-state/GrammarTextEditorState.js.map +1 -1
  125. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +2 -2
  126. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
  127. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js +14 -13
  128. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
  129. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts +1 -2
  130. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
  131. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js +2 -2
  132. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
  133. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.d.ts +1 -1
  134. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.d.ts.map +1 -1
  135. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.js +1 -1
  136. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.js.map +1 -1
  137. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.d.ts +2 -3
  138. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.d.ts.map +1 -1
  139. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.js +3 -3
  140. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
  141. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts +1 -2
  142. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
  143. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js +2 -2
  144. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
  145. package/package.json +17 -20
  146. package/src/application/LegendStudio.tsx +0 -18
  147. package/src/application/LegendStudioDocumentation.ts +5 -0
  148. package/src/components/editor/edit-panel/EditPanel.tsx +4 -1
  149. package/src/components/editor/edit-panel/FileGenerationViewer.tsx +2 -2
  150. package/src/components/editor/edit-panel/GrammarTextEditor.tsx +55 -50
  151. package/src/components/editor/edit-panel/ModelImporter.tsx +5 -5
  152. package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +4 -4
  153. package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +6 -6
  154. package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +4 -4
  155. package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +3 -2
  156. package/src/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.tsx +4 -3
  157. package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +22 -20
  158. package/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx +2 -2
  159. package/src/components/editor/edit-panel/element-generation-editor/ElementNativeView.tsx +5 -5
  160. package/src/components/editor/edit-panel/element-generation-editor/FileSystemViewer.tsx +3 -5
  161. package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +5 -4
  162. package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +4 -3
  163. package/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx +3 -3
  164. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +18 -16
  165. package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +19 -19
  166. package/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx +4 -4
  167. package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +5 -4
  168. package/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +2 -2
  169. package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +9 -9
  170. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +2 -2
  171. package/src/components/editor/edit-panel/testable/TestAssertionEditor.tsx +4 -3
  172. package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +2 -2
  173. package/src/components/editor/side-bar/Explorer.tsx +8 -8
  174. package/src/components/editor/side-bar/WorkflowManager.tsx +4 -4
  175. package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +7 -6
  176. package/src/components/extensions/Core_LegendStudioApplicationPlugin.tsx +21 -0
  177. package/src/components/shared/DiffView.tsx +14 -14
  178. package/src/components/workspace-setup/CreateProjectModal.tsx +2 -4
  179. package/src/components/workspace-setup/CreateWorkspaceModal.tsx +2 -4
  180. package/src/components/workspace-setup/WorkspaceSetup.tsx +1 -1
  181. package/src/index.ts +1 -1
  182. package/src/stores/editor/EditorGraphState.ts +2 -4
  183. package/src/stores/editor/EditorTabManagerState.ts +1 -1
  184. package/src/stores/editor/GraphEditFormModeState.ts +1 -1
  185. package/src/stores/editor/editor-state/EditorState.ts +1 -1
  186. package/src/stores/editor/editor-state/FileGenerationViewerState.ts +8 -8
  187. package/src/stores/editor/editor-state/GrammarTextEditorState.ts +3 -3
  188. package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +16 -15
  189. package/src/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -1
  190. package/src/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.ts +1 -1
  191. package/src/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.ts +3 -2
  192. package/src/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.ts +1 -1
@@ -23,27 +23,29 @@ import {
23
23
  } from 'monaco-editor';
24
24
  import {
25
25
  ContextMenu,
26
- disposeEditor,
27
- getBaseTextEditorOptions,
28
- resetLineNumberGutterWidth,
29
26
  clsx,
30
27
  WordWrapIcon,
31
- getEditorValue,
32
- normalizeLineEnding,
33
28
  MoreHorizontalIcon,
34
29
  PanelContent,
35
30
  useResizeDetector,
31
+ MenuContent,
32
+ MenuContentItem,
33
+ } from '@finos/legend-art';
34
+ import {
35
+ disposeCodeEditor,
36
+ getBaseCodeEditorOptions,
37
+ resetLineNumberGutterWidth,
38
+ getCodeEditorValue,
39
+ normalizeLineEnding,
36
40
  setWarningMarkers,
37
41
  clearMarkers,
38
42
  setErrorMarkers,
39
43
  moveCursorToPosition,
40
- MenuContent,
41
- MenuContentItem,
42
- } from '@finos/legend-art';
44
+ } from '@finos/legend-lego/code-editor';
43
45
  import {
44
46
  TAB_SIZE,
45
- EDITOR_THEME,
46
- EDITOR_LANGUAGE,
47
+ CODE_EDITOR_THEME,
48
+ CODE_EDITOR_LANGUAGE,
47
49
  useApplicationStore,
48
50
  useApplicationNavigationContext,
49
51
  getInlineSnippetSuggestions,
@@ -722,13 +724,13 @@ export const GrammarTextEditor = observer(() => {
722
724
  if (!editor && textEditorRef.current) {
723
725
  const element = textEditorRef.current;
724
726
  const _editor = monacoEditorAPI.create(element, {
725
- ...getBaseTextEditorOptions(),
726
- language: EDITOR_LANGUAGE.PURE,
727
- theme: EDITOR_THEME.LEGEND,
727
+ ...getBaseCodeEditorOptions(),
728
+ language: CODE_EDITOR_LANGUAGE.PURE,
729
+ theme: CODE_EDITOR_THEME.LEGEND,
728
730
  renderValidationDecorations: 'on',
729
731
  });
730
732
  _editor.onDidChangeModelContent(() => {
731
- grammarTextEditorState.setGraphGrammarText(getEditorValue(_editor));
733
+ grammarTextEditorState.setGraphGrammarText(getCodeEditorValue(_editor));
732
734
  clearMarkers();
733
735
  // NOTE: we can technically can reset the current element label regex string here
734
736
  // but if we do that on first load, the cursor will not jump to the current element
@@ -788,7 +790,7 @@ export const GrammarTextEditor = observer(() => {
788
790
 
789
791
  if (editor) {
790
792
  // Set the value of the editor
791
- const currentValue = getEditorValue(editor);
793
+ const currentValue = getCodeEditorValue(editor);
792
794
  if (currentValue !== value) {
793
795
  editor.setValue(value);
794
796
  }
@@ -844,7 +846,7 @@ export const GrammarTextEditor = observer(() => {
844
846
  // hover
845
847
  hoverProviderDisposer.current?.dispose();
846
848
  hoverProviderDisposer.current = monacoLanguagesAPI.registerHoverProvider(
847
- EDITOR_LANGUAGE.PURE,
849
+ CODE_EDITOR_LANGUAGE.PURE,
848
850
  {
849
851
  provideHover: (model, position) => {
850
852
  const currentWord = model.getWordAtPosition(position);
@@ -944,42 +946,45 @@ export const GrammarTextEditor = observer(() => {
944
946
  // suggestion
945
947
  suggestionProviderDisposer.current?.dispose();
946
948
  suggestionProviderDisposer.current =
947
- monacoLanguagesAPI.registerCompletionItemProvider(EDITOR_LANGUAGE.PURE, {
948
- // NOTE: we need to specify this to show suggestions for section
949
- // because by default, only alphanumeric characters trigger completion item provider
950
- // See https://microsoft.github.io/monaco-editor/api/interfaces/monaco.languages.CompletionContext.html#triggerCharacter
951
- // See https://github.com/microsoft/monaco-editor/issues/2530#issuecomment-861757198
952
- triggerCharacters: ['#'],
953
- provideCompletionItems: (model, position) => {
954
- let suggestions: monacoLanguagesAPI.CompletionItem[] = [];
949
+ monacoLanguagesAPI.registerCompletionItemProvider(
950
+ CODE_EDITOR_LANGUAGE.PURE,
951
+ {
952
+ // NOTE: we need to specify this to show suggestions for section
953
+ // because by default, only alphanumeric characters trigger completion item provider
954
+ // See https://microsoft.github.io/monaco-editor/api/interfaces/monaco.languages.CompletionContext.html#triggerCharacter
955
+ // See https://github.com/microsoft/monaco-editor/issues/2530#issuecomment-861757198
956
+ triggerCharacters: ['#'],
957
+ provideCompletionItems: (model, position) => {
958
+ let suggestions: monacoLanguagesAPI.CompletionItem[] = [];
955
959
 
956
- // suggestions for parser keyword
957
- suggestions = suggestions.concat(
958
- getParserKeywordSuggestions(
959
- position,
960
- model,
961
- collectParserKeywordSuggestions(editorStore),
962
- ),
963
- );
960
+ // suggestions for parser keyword
961
+ suggestions = suggestions.concat(
962
+ getParserKeywordSuggestions(
963
+ position,
964
+ model,
965
+ collectParserKeywordSuggestions(editorStore),
966
+ ),
967
+ );
964
968
 
965
- // suggestions for parser element snippets
966
- suggestions = suggestions.concat(
967
- getParserElementSnippetSuggestions(
968
- position,
969
- model,
970
- (parserName: string) =>
971
- collectParserElementSnippetSuggestions(editorStore, parserName),
972
- ),
973
- );
969
+ // suggestions for parser element snippets
970
+ suggestions = suggestions.concat(
971
+ getParserElementSnippetSuggestions(
972
+ position,
973
+ model,
974
+ (parserName: string) =>
975
+ collectParserElementSnippetSuggestions(editorStore, parserName),
976
+ ),
977
+ );
974
978
 
975
- // inline code snippet suggestions
976
- suggestions = suggestions.concat(
977
- getInlineSnippetSuggestions(position, model),
978
- );
979
+ // inline code snippet suggestions
980
+ suggestions = suggestions.concat(
981
+ getInlineSnippetSuggestions(position, model),
982
+ );
979
983
 
980
- return { suggestions };
984
+ return { suggestions };
985
+ },
981
986
  },
982
- });
987
+ );
983
988
 
984
989
  useEffect(() => {
985
990
  if (editor && forcedCursorPosition) {
@@ -1025,7 +1030,7 @@ export const GrammarTextEditor = observer(() => {
1025
1030
  useEffect(
1026
1031
  () => (): void => {
1027
1032
  if (editor) {
1028
- disposeEditor(editor);
1033
+ disposeCodeEditor(editor);
1029
1034
  }
1030
1035
  // NOTE: make sure the call the disposer again after leaving this editor
1031
1036
  // else we would end up with duplicated suggestions and hover infos
@@ -1080,8 +1085,8 @@ export const GrammarTextEditor = observer(() => {
1080
1085
  </div>
1081
1086
  </div>
1082
1087
  <PanelContent className="edit-panel__content">
1083
- <div ref={ref} className="text-editor__container">
1084
- <div className="text-editor__body" ref={textEditorRef} />
1088
+ <div ref={ref} className="code-editor__container">
1089
+ <div className="code-editor__body" ref={textEditorRef} />
1085
1090
  </div>
1086
1091
  </PanelContent>
1087
1092
  </div>
@@ -40,15 +40,15 @@ import { flowResult } from 'mobx';
40
40
  import { useEditorStore } from '../EditorStoreProvider.js';
41
41
  import {
42
42
  useApplicationStore,
43
- EDITOR_LANGUAGE,
43
+ CODE_EDITOR_LANGUAGE,
44
44
  useApplicationNavigationContext,
45
- TextInputEditor,
46
45
  } from '@finos/legend-application';
47
46
  import type { ModelImporterExtensionConfiguration } from '../../../stores/LegendStudioApplicationPlugin.js';
48
47
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../application/LegendStudioApplicationNavigationContext.js';
49
48
  import { SCHEMA_SET_TAB_TYPE } from '../../../stores/editor/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js';
50
49
  import { SchemaSetModelGenerationEditor } from './external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js';
51
50
  import { SchemaSetGeneralEditor } from './external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js';
51
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
52
52
 
53
53
  const ExternalFormatModelImporterEditor = observer(
54
54
  (props: { externalFormatState: ExternalFormatModelImporterState }) => {
@@ -189,12 +189,12 @@ export const ModelImporter = observer(() => {
189
189
  modelImportEditorState.setModelText(val);
190
190
  return (
191
191
  <div className="panel__content model-loader__editor">
192
- <TextInputEditor
192
+ <CodeEditor
193
193
  language={
194
194
  modelImportEditorState.nativeType ===
195
195
  MODEL_IMPORT_NATIVE_INPUT_TYPE.PURE_GRAMMAR
196
- ? EDITOR_LANGUAGE.PURE
197
- : EDITOR_LANGUAGE.JSON
196
+ ? CODE_EDITOR_LANGUAGE.PURE
197
+ : CODE_EDITOR_LANGUAGE.JSON
198
198
  }
199
199
  inputValue={modelImportEditorState.modelText}
200
200
  updateInput={updateModel}
@@ -45,8 +45,7 @@ import {
45
45
  } from '../../../../stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js';
46
46
  import { capitalize } from '@finos/legend-shared';
47
47
  import {
48
- EDITOR_LANGUAGE,
49
- TextInputEditor,
48
+ CODE_EDITOR_LANGUAGE,
50
49
  useApplicationStore,
51
50
  useConditionedApplicationNavigationContext,
52
51
  } from '@finos/legend-application';
@@ -56,6 +55,7 @@ import {
56
55
  } from './DatabaseEditorHelper.js';
57
56
  import { flowResult } from 'mobx';
58
57
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
58
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
59
59
 
60
60
  const getNodeIcon = (node: DatabaseBuilderTreeNodeData): React.ReactNode => {
61
61
  if (node instanceof SchemaDatabaseBuilderTreeNodeData) {
@@ -344,8 +344,8 @@ export const DatabaseBuilder = observer(
344
344
  </div>
345
345
  </div>
346
346
  <PanelContent>
347
- <TextInputEditor
348
- language={EDITOR_LANGUAGE.PURE}
347
+ <CodeEditor
348
+ language={CODE_EDITOR_LANGUAGE.PURE}
349
349
  inputValue={databaseBuilderState.databaseGrammarCode}
350
350
  isReadOnly={true}
351
351
  />
@@ -89,10 +89,9 @@ import type { STO_Relational_LegendStudioApplicationPlugin_Extension } from '../
89
89
  import { DatabaseBuilder } from './DatabaseBuilder.js';
90
90
  import { useEditorStore } from '../../EditorStoreProvider.js';
91
91
  import {
92
- EDITOR_LANGUAGE,
92
+ CODE_EDITOR_LANGUAGE,
93
93
  buildElementOption,
94
94
  type PackageableElementOption,
95
- TextInputEditor,
96
95
  } from '@finos/legend-application';
97
96
  import { connection_setStore } from '../../../../stores/editor/shared/modifier/DSL_Mapping_GraphModifierHelper.js';
98
97
  import {
@@ -165,6 +164,7 @@ import {
165
164
  import { MapperPostProcessorEditor } from './post-processor-editor/MapperPostProcessorEditor.js';
166
165
  import { UnsupportedEditorPanel } from '../UnsupportedElementEditor.js';
167
166
  import type { MapperPostProcessorEditorState } from '../../../../stores/editor/editor-state/element-editor-state/connection/PostProcessorEditorState.js';
167
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
168
168
 
169
169
  const LocalH2DatasourceSpecificationEditor = observer(
170
170
  (props: {
@@ -186,7 +186,7 @@ const LocalH2DatasourceSpecificationEditor = observer(
186
186
  <Modal darkMode={true} className="editor-modal">
187
187
  <ModalHeader title="test data setup SQL" />
188
188
  <ModalBody className="modal__body__large">
189
- <TextInputEditor
189
+ <CodeEditor
190
190
  inputValue={SQLValue}
191
191
  updateInput={(value: string | undefined): void =>
192
192
  localH2DatasourceSpecification_setTestDataSetupSqls(
@@ -195,7 +195,7 @@ const LocalH2DatasourceSpecificationEditor = observer(
195
195
  )
196
196
  }
197
197
  isReadOnly={isReadOnly}
198
- language={EDITOR_LANGUAGE.SQL}
198
+ language={CODE_EDITOR_LANGUAGE.SQL}
199
199
  />
200
200
  </ModalBody>
201
201
  <ModalFooter>
@@ -218,7 +218,7 @@ const LocalH2DatasourceSpecificationEditor = observer(
218
218
  </Button>
219
219
  </div>
220
220
  <div className="panel__content__form__section__text-editor">
221
- <TextInputEditor
221
+ <CodeEditor
222
222
  inputValue={SQLValue}
223
223
  updateInput={(value: string | undefined): void =>
224
224
  localH2DatasourceSpecification_setTestDataSetupSqls(
@@ -227,7 +227,7 @@ const LocalH2DatasourceSpecificationEditor = observer(
227
227
  )
228
228
  }
229
229
  isReadOnly={isReadOnly}
230
- language={EDITOR_LANGUAGE.SQL}
230
+ language={CODE_EDITOR_LANGUAGE.SQL}
231
231
  />
232
232
  </div>
233
233
  </div>
@@ -72,12 +72,12 @@ import { getEditorLanguageForFormat } from '../../../../stores/editor/editor-sta
72
72
  import type { ExternalFormatDataState } from '../../../../stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js';
73
73
  import { renderEmbeddedDataEditor } from './EmbeddedDataEditor.js';
74
74
  import {
75
- LEGEND_APPLICATION_DOCUMENTATION_KEY,
76
- TextInputEditor,
77
75
  useApplicationNavigationContext,
78
76
  useApplicationStore,
79
77
  } from '@finos/legend-application';
80
78
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
79
+ import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../../application/LegendStudioDocumentation.js';
80
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
81
81
 
82
82
  export const ExternalFormatDataEditor = observer(
83
83
  (props: {
@@ -154,7 +154,7 @@ export const ExternalFormatDataEditor = observer(
154
154
  </div>
155
155
  <div className={clsx('external-format-data-editor__content')}>
156
156
  <div className="external-format-data-editor__content__input">
157
- <TextInputEditor
157
+ <CodeEditor
158
158
  language={language}
159
159
  inputValue={externalFormatDataState.embeddedData.data}
160
160
  updateInput={changeData}
@@ -269,7 +269,7 @@ export const DataElementEditor = observer(() => {
269
269
  );
270
270
  const seeDocumentation = (): void =>
271
271
  applicationStore.assistantService.openDocumentationEntry(
272
- LEGEND_APPLICATION_DOCUMENTATION_KEY.QUESTION_HOW_TO_CREATE_A_DATA_ELEMENT,
272
+ LEGEND_STUDIO_DOCUMENTATION_KEY.QUESTION_HOW_TO_CREATE_A_DATA_ELEMENT,
273
273
  );
274
274
 
275
275
  useApplicationNavigationContext(
@@ -45,8 +45,9 @@ import {
45
45
  RelationalCSVDataState,
46
46
  } from '../../../../stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js';
47
47
  import type { DataElement } from '@finos/legend-graph';
48
- import { buildElementOption, TextInputEditor } from '@finos/legend-application';
48
+ import { buildElementOption } from '@finos/legend-application';
49
49
  import { RelationalCSVDataEditor } from './RelationalCSVDataEditor.js';
50
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
50
51
 
51
52
  export const ExternalFormatDataEditor = observer(
52
53
  (props: {
@@ -134,7 +135,7 @@ export const ExternalFormatDataEditor = observer(
134
135
  </div>
135
136
  <div className={clsx('external-format-data-editor__content')}>
136
137
  <div className="external-format-data-editor__content__input">
137
- <TextInputEditor
138
+ <CodeEditor
138
139
  language={language}
139
140
  inputValue={externalFormatDataState.embeddedData.data}
140
141
  updateInput={changeData}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { EDITOR_LANGUAGE, TextInputEditor } from '@finos/legend-application';
17
+ import { CODE_EDITOR_LANGUAGE } from '@finos/legend-application';
18
18
  import {
19
19
  BlankPanelPlaceholder,
20
20
  clsx,
@@ -32,6 +32,7 @@ import type { RelationalCSVDataTable } from '@finos/legend-graph';
32
32
  import { observer } from 'mobx-react-lite';
33
33
  import { forwardRef, useState } from 'react';
34
34
  import type { RelationalCSVDataState } from '../../../../stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js';
35
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
35
36
 
36
37
  const RelationalTableIdentifierModal = observer(
37
38
  (props: { dataState: RelationalCSVDataState; isReadOnly: boolean }) => {
@@ -225,11 +226,11 @@ export const RelationalCSVDataEditor = observer(
225
226
  <div className="relational-data-editor__content">
226
227
  {currentTableState && (
227
228
  <div className="relational-data-editor__values">
228
- <TextInputEditor
229
+ <CodeEditor
229
230
  inputValue={currentTableState.table.values}
230
231
  updateInput={updateTableValues}
231
232
  isReadOnly={isReadOnly}
232
- language={EDITOR_LANGUAGE.TEXT}
233
+ language={CODE_EDITOR_LANGUAGE.TEXT}
233
234
  />
234
235
  </div>
235
236
  )}
@@ -24,8 +24,8 @@ import {
24
24
  } from 'monaco-editor';
25
25
  import {
26
26
  TAB_SIZE,
27
- EDITOR_THEME,
28
- EDITOR_LANGUAGE,
27
+ CODE_EDITOR_THEME,
28
+ CODE_EDITOR_LANGUAGE,
29
29
  useApplicationStore,
30
30
  } from '@finos/legend-application';
31
31
  import {
@@ -44,19 +44,21 @@ import {
44
44
  import {
45
45
  clsx,
46
46
  CustomSelectorInput,
47
- disposeEditor,
48
- getBaseTextEditorOptions,
49
- moveCursorToPosition,
50
- setErrorMarkers,
51
- resetLineNumberGutterWidth,
52
- getEditorValue,
53
- normalizeLineEnding,
54
47
  CompareIcon,
55
48
  ArrowDownIcon,
56
49
  ArrowUpIcon,
57
50
  useResizeDetector,
58
- clearMarkers,
59
51
  } from '@finos/legend-art';
52
+ import {
53
+ disposeCodeEditor,
54
+ getBaseCodeEditorOptions,
55
+ moveCursorToPosition,
56
+ setErrorMarkers,
57
+ resetLineNumberGutterWidth,
58
+ getCodeEditorValue,
59
+ normalizeLineEnding,
60
+ clearMarkers,
61
+ } from '@finos/legend-lego/code-editor';
60
62
  import { TextDiffView } from '../../../shared/DiffView.js';
61
63
  import { getPrettyLabelForRevision } from '../../../../stores/editor/editor-state/entity-diff-editor-state/EntityDiffEditorState.js';
62
64
  import { flowResult } from 'mobx';
@@ -192,9 +194,9 @@ const MergeConflictEditor = observer(
192
194
  if (!editor && textInputRef.current) {
193
195
  const element = textInputRef.current;
194
196
  const _editor = monacoEditorAPI.create(element, {
195
- ...getBaseTextEditorOptions(),
196
- theme: EDITOR_THEME.LEGEND,
197
- language: EDITOR_LANGUAGE.PURE,
197
+ ...getBaseCodeEditorOptions(),
198
+ theme: CODE_EDITOR_THEME.LEGEND,
199
+ language: CODE_EDITOR_LANGUAGE.PURE,
198
200
  minimap: { enabled: false },
199
201
  formatOnType: true,
200
202
  formatOnPaste: true,
@@ -210,7 +212,7 @@ const MergeConflictEditor = observer(
210
212
  onDidChangeModelContentEventDisposer.current?.dispose();
211
213
  onDidChangeModelContentEventDisposer.current =
212
214
  editor.onDidChangeModelContent(() => {
213
- conflictEditorState.setMergedText(getEditorValue(editor));
215
+ conflictEditorState.setMergedText(getCodeEditorValue(editor));
214
216
  conflictEditorState.clearMergeEditorError();
215
217
  });
216
218
 
@@ -280,7 +282,7 @@ const MergeConflictEditor = observer(
280
282
  // CodeLens registration
281
283
  mergeConflictResolutionCodeLensDisposer.current?.dispose();
282
284
  mergeConflictResolutionCodeLensDisposer.current =
283
- monacoLanguagesAPI.registerCodeLensProvider(EDITOR_LANGUAGE.PURE, {
285
+ monacoLanguagesAPI.registerCodeLensProvider(CODE_EDITOR_LANGUAGE.PURE, {
284
286
  provideCodeLenses: (model, token) => ({
285
287
  lenses: conflictEditorState.mergeConflicts.flatMap((conflict) =>
286
288
  [
@@ -522,7 +524,7 @@ const MergeConflictEditor = observer(
522
524
  useEffect(() => {
523
525
  if (editor) {
524
526
  const editorModel = editor.getModel();
525
- const currentValue = getEditorValue(editor);
527
+ const currentValue = getCodeEditorValue(editor);
526
528
  if (editorModel && currentValue !== value) {
527
529
  if (!hasInitializedTextValue) {
528
530
  editor.setValue(value);
@@ -576,7 +578,7 @@ const MergeConflictEditor = observer(
576
578
  useEffect(
577
579
  () => (): void => {
578
580
  if (editor) {
579
- disposeEditor(editor);
581
+ disposeCodeEditor(editor);
580
582
  }
581
583
  onDidChangeModelContentEventDisposer.current?.dispose();
582
584
  onDidChangeCursorPositionEventDisposer.current?.dispose();
@@ -588,8 +590,8 @@ const MergeConflictEditor = observer(
588
590
  ); // dispose editor
589
591
 
590
592
  return (
591
- <div ref={ref} className="text-editor__container">
592
- <div className="text-editor__body" ref={textInputRef} />
593
+ <div ref={ref} className="code-editor__container">
594
+ <div className="code-editor__body" ref={textInputRef} />
593
595
  </div>
594
596
  );
595
597
  },
@@ -764,7 +766,7 @@ export const EntityChangeConflictEditor = observer(
764
766
  {currentMode !==
765
767
  ENTITY_CHANGE_CONFLICT_EDITOR_VIEW_MODE.MERGE_VIEW && (
766
768
  <TextDiffView
767
- language={EDITOR_LANGUAGE.PURE}
769
+ language={CODE_EDITOR_LANGUAGE.PURE}
768
770
  from={currentModeComparisonViewInfo.fromGrammarText ?? ''}
769
771
  to={currentModeComparisonViewInfo.toGrammarText ?? ''}
770
772
  />
@@ -28,7 +28,7 @@ import { type EntityDiff, EntityChangeType } from '@finos/legend-server-sdlc';
28
28
  import { useEditorStore } from '../../EditorStoreProvider.js';
29
29
  import {
30
30
  useApplicationStore,
31
- EDITOR_LANGUAGE,
31
+ CODE_EDITOR_LANGUAGE,
32
32
  } from '@finos/legend-application';
33
33
  import { sortObjectKeys } from '@finos/legend-shared';
34
34
 
@@ -153,7 +153,7 @@ export const EntityDiffView = observer(
153
153
  <div className="entity-diff-view__content">
154
154
  {diffEditorState.diffMode === DIFF_VIEW_MODE.GRAMMAR && (
155
155
  <TextDiffView
156
- language={EDITOR_LANGUAGE.PURE}
156
+ language={CODE_EDITOR_LANGUAGE.PURE}
157
157
  from={fromGrammarText}
158
158
  to={toGrammarText}
159
159
  />
@@ -21,9 +21,9 @@ import { ELEMENT_NATIVE_VIEW_MODE } from '../../../../stores/editor/EditorConfig
21
21
  import { flowResult } from 'mobx';
22
22
  import {
23
23
  useApplicationStore,
24
- EDITOR_LANGUAGE,
25
- TextInputEditor,
24
+ CODE_EDITOR_LANGUAGE,
26
25
  } from '@finos/legend-application';
26
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
27
27
 
28
28
  export const ElementNativeView = observer(
29
29
  (props: { currentElementState: ElementEditorState }) => {
@@ -32,8 +32,8 @@ export const ElementNativeView = observer(
32
32
  const generatedText = currentElementState.textContent;
33
33
  const editorLanguage =
34
34
  currentElementState.editMode === ELEMENT_NATIVE_VIEW_MODE.GRAMMAR
35
- ? EDITOR_LANGUAGE.PURE
36
- : EDITOR_LANGUAGE.JSON;
35
+ ? CODE_EDITOR_LANGUAGE.PURE
36
+ : CODE_EDITOR_LANGUAGE.JSON;
37
37
 
38
38
  useEffect(() => {
39
39
  switch (currentElementState.editMode) {
@@ -51,7 +51,7 @@ export const ElementNativeView = observer(
51
51
  }, [applicationStore, currentElementState, currentElementState.editMode]);
52
52
 
53
53
  return (
54
- <TextInputEditor
54
+ <CodeEditor
55
55
  inputValue={generatedText}
56
56
  language={editorLanguage}
57
57
  isReadOnly={true}
@@ -49,11 +49,9 @@ import {
49
49
  FileSystem_File,
50
50
  getFileSystemChildNodes,
51
51
  } from '../../../../stores/editor/shared/FileSystemTreeUtils.js';
52
- import {
53
- TextInputEditor,
54
- useApplicationStore,
55
- } from '@finos/legend-application';
52
+ import { useApplicationStore } from '@finos/legend-application';
56
53
  import type { DSL_Generation_LegendStudioApplicationPlugin_Extension } from '../../../../stores/extensions/DSL_Generation_LegendStudioApplicationPlugin_Extension.js';
54
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
57
55
 
58
56
  export const FileSystemTreeNodeContainer: React.FC<
59
57
  TreeNodeContainerProps<
@@ -278,7 +276,7 @@ export const FileSystemViewer = observer(
278
276
  </div>
279
277
  <PanelContent>
280
278
  {fileNode instanceof FileSystem_File && (
281
- <TextInputEditor
279
+ <CodeEditor
282
280
  inputValue={getTextContent(fileNode.content, fileNode.format)}
283
281
  isReadOnly={true}
284
282
  language={getEditorLanguageForFormat(fileNode.format)}
@@ -44,7 +44,7 @@ import {
44
44
  type InnerSchemaSetEditorState,
45
45
  SCHEMA_SET_TAB_TYPE,
46
46
  } from '../../../../stores/editor/editor-state/element-editor-state/external-format/DSL_ExternalFormat_SchemaSetEditorState.js';
47
- import { EDITOR_LANGUAGE, TextInputEditor } from '@finos/legend-application';
47
+ import { CODE_EDITOR_LANGUAGE } from '@finos/legend-application';
48
48
  import { getEditorLanguageForFormat } from '../../../../stores/editor/editor-state/FileGenerationViewerState.js';
49
49
  import { guaranteeNonNullable, prettyCONSTName } from '@finos/legend-shared';
50
50
  import { useEditorStore } from '../../EditorStoreProvider.js';
@@ -56,6 +56,7 @@ import {
56
56
  externalFormat_schema_setLocation,
57
57
  } from '../../../../stores/editor/shared/modifier/DSL_ExternalFormat_GraphModifierHelper.js';
58
58
  import { SchemaSetModelGenerationEditor } from './DSL_ExternalFormat_SchemaSetModelGenerationEditor.js';
59
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
59
60
 
60
61
  const SchemaLoader = observer(
61
62
  (props: {
@@ -147,7 +148,7 @@ const SchemaLoader = observer(
147
148
  const SchemaBasicEditor = observer(
148
149
  (props: {
149
150
  schema: Schema;
150
- language: EDITOR_LANGUAGE;
151
+ language: CODE_EDITOR_LANGUAGE;
151
152
  isReadOnly: boolean;
152
153
  }) => {
153
154
  const { schema, isReadOnly, language } = props;
@@ -176,7 +177,7 @@ const SchemaBasicEditor = observer(
176
177
  />
177
178
  <div className={clsx('schema-editor__content')}>
178
179
  <div className="schema-editor__content__input">
179
- <TextInputEditor
180
+ <CodeEditor
180
181
  inputValue={schema.content}
181
182
  language={language}
182
183
  updateInput={(val: string): void => {
@@ -207,7 +208,7 @@ export const SchemaSetGeneralEditor = observer(
207
208
  // TEMPROARY engine api should return `fileformat`.
208
209
  const language = description
209
210
  ? getEditorLanguageForFormat(description.name)
210
- : EDITOR_LANGUAGE.TEXT;
211
+ : CODE_EDITOR_LANGUAGE.TEXT;
211
212
  const changeState =
212
213
  (schema: Schema): (() => void) =>
213
214
  (): void => {
@@ -31,7 +31,8 @@ import {
31
31
  ResizablePanelSplitterLine,
32
32
  } from '@finos/legend-art';
33
33
  import { GenerationPropertyEditor } from '../element-generation-editor/FileGenerationEditor.js';
34
- import { EDITOR_LANGUAGE, TextInputEditor } from '@finos/legend-application';
34
+ import { CODE_EDITOR_LANGUAGE } from '@finos/legend-application';
35
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
35
36
 
36
37
  enum HIDDEN_CONFIGURATION_PROPERTIES {
37
38
  FORMAT = 'format',
@@ -212,10 +213,10 @@ export const SchemaSetModelGenerationEditor = observer(
212
213
  .isInProgress
213
214
  }
214
215
  />
215
- <TextInputEditor
216
+ <CodeEditor
216
217
  inputValue={modelGenerationState.generationValue}
217
218
  isReadOnly={true}
218
- language={EDITOR_LANGUAGE.PURE}
219
+ language={CODE_EDITOR_LANGUAGE.PURE}
219
220
  />
220
221
  </PanelContent>
221
222
  </div>
@@ -50,7 +50,7 @@ import {
50
50
  import { MappingElementState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingElementState.js';
51
51
  import { MappingExplorer } from './MappingExplorer.js';
52
52
  import { MappingTestEditor } from './MappingTestEditor.js';
53
- import { DEPRECATED_MappingTestState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingTestState.js';
53
+ import { DEPRECATED__MappingTestState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingTestState.js';
54
54
  import { MappingTestsExplorer } from './MappingTestsExplorer.js';
55
55
  import { LEGEND_STUDIO_TEST_ID } from '../../../../application/LegendStudioTesting.js';
56
56
  import { MappingExecutionState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js';
@@ -151,7 +151,7 @@ export const MappingEditor = observer(() => {
151
151
  const isReadOnly = mappingEditorState.isReadOnly;
152
152
  const currentTabState = mappingEditorState.currentTabState;
153
153
  const renderActiveMappingElementTab = (): React.ReactNode => {
154
- if (currentTabState instanceof DEPRECATED_MappingTestState) {
154
+ if (currentTabState instanceof DEPRECATED__MappingTestState) {
155
155
  return (
156
156
  <MappingTestEditor
157
157
  key={currentTabState.uuid}
@@ -256,7 +256,7 @@ export const MappingEditor = observer(() => {
256
256
  />
257
257
  }
258
258
  >
259
- {tabState instanceof DEPRECATED_MappingTestState && (
259
+ {tabState instanceof DEPRECATED__MappingTestState && (
260
260
  <>
261
261
  <FlaskIcon className="mapping-editor__header__tab__icon--test" />
262
262
  <button