@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
@@ -65,12 +65,10 @@ import {
65
65
  MappingExecutionRelationalInputDataState,
66
66
  } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js';
67
67
  import {
68
- EDITOR_LANGUAGE,
68
+ CODE_EDITOR_LANGUAGE,
69
69
  ActionAlertActionType,
70
70
  ActionAlertType,
71
71
  useApplicationStore,
72
- ExecutionPlanViewer,
73
- TextInputEditor,
74
72
  } from '@finos/legend-application';
75
73
  import { useEditorStore } from '../../EditorStoreProvider.js';
76
74
  import {
@@ -89,7 +87,11 @@ import {
89
87
  relationalInputData_setInputType,
90
88
  } from '../../../../stores/editor/shared/modifier/STO_Relational_GraphModifierHelper.js';
91
89
  import { MappingExecutionQueryBuilderState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js';
92
- import type { QueryBuilderState } from '@finos/legend-query-builder';
90
+ import {
91
+ ExecutionPlanViewer,
92
+ type QueryBuilderState,
93
+ } from '@finos/legend-query-builder';
94
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
93
95
 
94
96
  interface ClassMappingSelectOption {
95
97
  label: string;
@@ -167,12 +169,12 @@ export const ClassMappingSelectorModal = observer(
167
169
 
168
170
  export const getRelationalInputTestDataEditorLanguage = (
169
171
  type: RelationalInputType,
170
- ): EDITOR_LANGUAGE => {
172
+ ): CODE_EDITOR_LANGUAGE => {
171
173
  switch (type) {
172
174
  case RelationalInputType.SQL:
173
- return EDITOR_LANGUAGE.SQL;
175
+ return CODE_EDITOR_LANGUAGE.SQL;
174
176
  default:
175
- return EDITOR_LANGUAGE.TEXT;
177
+ return CODE_EDITOR_LANGUAGE.TEXT;
176
178
  }
177
179
  };
178
180
 
@@ -385,10 +387,10 @@ const MappingExecutionQueryEditor = observer(
385
387
  {!isStubbed_RawLambda(queryState.query) && (
386
388
  <PanelContent>
387
389
  <div className="mapping-execution-builder__query-panel__query">
388
- <TextInputEditor
390
+ <CodeEditor
389
391
  inputValue={queryState.lambdaString}
390
392
  isReadOnly={true}
391
- language={EDITOR_LANGUAGE.PURE}
393
+ language={CODE_EDITOR_LANGUAGE.PURE}
392
394
  showMiniMap={false}
393
395
  />
394
396
  </div>
@@ -434,8 +436,8 @@ export const MappingExecutionObjectInputDataBuilder = observer(
434
436
 
435
437
  return (
436
438
  <div className="panel__content mapping-execution-builder__input-data-panel__content">
437
- <TextInputEditor
438
- language={EDITOR_LANGUAGE.JSON}
439
+ <CodeEditor
440
+ language={CODE_EDITOR_LANGUAGE.JSON}
439
441
  inputValue={inputDataState.inputData.data}
440
442
  updateInput={updateInput}
441
443
  />
@@ -454,8 +456,8 @@ export const MappingExecutionFlatDataInputDataBuilder = observer(
454
456
 
455
457
  return (
456
458
  <div className="panel__content mapping-execution-builder__input-data-panel__content">
457
- <TextInputEditor
458
- language={EDITOR_LANGUAGE.TEXT}
459
+ <CodeEditor
460
+ language={CODE_EDITOR_LANGUAGE.TEXT}
459
461
  inputValue={inputDataState.inputData.data}
460
462
  updateInput={updateInput}
461
463
  />
@@ -477,7 +479,7 @@ export const MappingExecutionRelationalInputDataBuilder = observer(
477
479
 
478
480
  return (
479
481
  <div className="panel__content mapping-execution-builder__input-data-panel__content">
480
- <TextInputEditor
482
+ <CodeEditor
481
483
  language={getRelationalInputTestDataEditorLanguage(
482
484
  inputDataState.inputData.inputType,
483
485
  )}
@@ -853,10 +855,10 @@ export const MappingExecutionBuilder = observer(
853
855
  </div>
854
856
  </div>
855
857
  <div className="panel__content mapping-execution-builder__result-panel__content">
856
- <TextInputEditor
858
+ <CodeEditor
857
859
  inputValue={executionResultText ?? ''}
858
860
  isReadOnly={true}
859
- language={EDITOR_LANGUAGE.JSON}
861
+ language={CODE_EDITOR_LANGUAGE.JSON}
860
862
  />
861
863
  </div>
862
864
  </div>
@@ -17,7 +17,7 @@
17
17
  import { useState, useEffect, useCallback } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import {
20
- type DEPRECATED_MappingTestState,
20
+ type DEPRECATED__MappingTestState as DEPRECATED__MappingTestState,
21
21
  MAPPING_TEST_EDITOR_TAB_TYPE,
22
22
  TEST_RESULT,
23
23
  MappingTestObjectInputDataState,
@@ -59,12 +59,10 @@ import {
59
59
  assertErrorThrown,
60
60
  } from '@finos/legend-shared';
61
61
  import {
62
- EDITOR_LANGUAGE,
62
+ CODE_EDITOR_LANGUAGE,
63
63
  useApplicationStore,
64
64
  ActionAlertActionType,
65
65
  ActionAlertType,
66
- ExecutionPlanViewer,
67
- TextInputEditor,
68
66
  } from '@finos/legend-application';
69
67
  import {
70
68
  ClassMappingSelectorModal,
@@ -94,11 +92,13 @@ import {
94
92
  import {
95
93
  type QueryBuilderState,
96
94
  QueryBuilderTextEditorMode,
95
+ ExecutionPlanViewer,
97
96
  } from '@finos/legend-query-builder';
98
97
  import { MappingExecutionQueryBuilderState } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js';
98
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
99
99
 
100
100
  const MappingTestQueryEditor = observer(
101
- (props: { testState: DEPRECATED_MappingTestState; isReadOnly: boolean }) => {
101
+ (props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
102
102
  const { testState, isReadOnly } = props;
103
103
  const queryState = testState.queryState;
104
104
  const editorStore = useEditorStore();
@@ -309,10 +309,10 @@ const MappingTestQueryEditor = observer(
309
309
  editWithQueryBuilder()();
310
310
  }}
311
311
  >
312
- <TextInputEditor
312
+ <CodeEditor
313
313
  inputValue={queryState.lambdaString}
314
314
  isReadOnly={true}
315
- language={EDITOR_LANGUAGE.PURE}
315
+ language={CODE_EDITOR_LANGUAGE.PURE}
316
316
  showMiniMap={false}
317
317
  />
318
318
  </div>
@@ -361,8 +361,8 @@ export const MappingTestObjectInputDataBuilder = observer(
361
361
 
362
362
  return (
363
363
  <div className="panel__content mapping-test-editor__input-data-panel__content">
364
- <TextInputEditor
365
- language={EDITOR_LANGUAGE.JSON}
364
+ <CodeEditor
365
+ language={CODE_EDITOR_LANGUAGE.JSON}
366
366
  inputValue={inputDataState.data}
367
367
  isReadOnly={isReadOnly}
368
368
  updateInput={updateInput}
@@ -385,8 +385,8 @@ export const MappingTestFlatDataInputDataBuilder = observer(
385
385
 
386
386
  return (
387
387
  <div className="panel__content mapping-test-editor__input-data-panel__content">
388
- <TextInputEditor
389
- language={EDITOR_LANGUAGE.TEXT}
388
+ <CodeEditor
389
+ language={CODE_EDITOR_LANGUAGE.TEXT}
390
390
  inputValue={inputDataState.inputData.data}
391
391
  isReadOnly={isReadOnly}
392
392
  updateInput={updateInput}
@@ -412,7 +412,7 @@ export const MappingTestRelationalInputDataBuilder = observer(
412
412
 
413
413
  return (
414
414
  <div className="panel__content mapping-test-editor__input-data-panel__content">
415
- <TextInputEditor
415
+ <CodeEditor
416
416
  language={getRelationalInputTestDataEditorLanguage(
417
417
  inputDataState.inputData.inputType,
418
418
  )}
@@ -468,7 +468,7 @@ const RelationalMappingTestInputDataTypeSelector = observer(
468
468
  );
469
469
 
470
470
  export const MappingTestInputDataBuilder = observer(
471
- (props: { testState: DEPRECATED_MappingTestState; isReadOnly: boolean }) => {
471
+ (props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
472
472
  const { testState, isReadOnly } = props;
473
473
  const inputDataState = testState.inputDataState;
474
474
  const editorStore = useEditorStore();
@@ -573,7 +573,7 @@ export const MappingTestInputDataBuilder = observer(
573
573
 
574
574
  export const MappingTestExpectedOutputAssertionBuilder = observer(
575
575
  (props: {
576
- testState: DEPRECATED_MappingTestState;
576
+ testState: DEPRECATED__MappingTestState;
577
577
  assertionState: MappingTestExpectedOutputAssertionState;
578
578
  isReadOnly: boolean;
579
579
  }) => {
@@ -638,11 +638,11 @@ export const MappingTestExpectedOutputAssertionBuilder = observer(
638
638
  <ErrorIcon />
639
639
  </div>
640
640
  )}
641
- <TextInputEditor
641
+ <CodeEditor
642
642
  inputValue={assertionState.expectedResult}
643
643
  updateInput={updateExpectedResult}
644
644
  isReadOnly={isReadOnly}
645
- language={EDITOR_LANGUAGE.JSON}
645
+ language={CODE_EDITOR_LANGUAGE.JSON}
646
646
  />
647
647
  </div>
648
648
  </div>
@@ -651,7 +651,7 @@ export const MappingTestExpectedOutputAssertionBuilder = observer(
651
651
  );
652
652
 
653
653
  export const MappingTestAssertionBuilder = observer(
654
- (props: { testState: DEPRECATED_MappingTestState; isReadOnly: boolean }) => {
654
+ (props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
655
655
  const { testState, isReadOnly } = props;
656
656
  const assertionState = testState.assertionState;
657
657
 
@@ -669,7 +669,7 @@ export const MappingTestAssertionBuilder = observer(
669
669
  );
670
670
 
671
671
  export const MappingTestBuilder = observer(
672
- (props: { testState: DEPRECATED_MappingTestState; isReadOnly: boolean }) => {
672
+ (props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
673
673
  const { testState, isReadOnly } = props;
674
674
  const applicationStore = useApplicationStore();
675
675
 
@@ -720,7 +720,7 @@ export const MappingTestBuilder = observer(
720
720
  );
721
721
 
722
722
  export const MappingTestEditor = observer(
723
- (props: { testState: DEPRECATED_MappingTestState; isReadOnly: boolean }) => {
723
+ (props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
724
724
  const { testState, isReadOnly } = props;
725
725
  const applicationStore = useApplicationStore();
726
726
  const selectedTab = testState.selectedTab;
@@ -18,7 +18,7 @@ import { useState, useCallback, forwardRef } from 'react';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import { useDrop } from 'react-dnd';
20
20
  import {
21
- type DEPRECATED_MappingTestState,
21
+ type DEPRECATED__MappingTestState,
22
22
  MAPPING_TEST_EDITOR_TAB_TYPE,
23
23
  TEST_RESULT,
24
24
  } from '../../../../stores/editor/editor-state/element-editor-state/mapping/MappingTestState.js';
@@ -61,7 +61,7 @@ export const MappingTestExplorerContextMenu = observer(
61
61
  forwardRef<
62
62
  HTMLDivElement,
63
63
  {
64
- mappingTestState?: DEPRECATED_MappingTestState;
64
+ mappingTestState?: DEPRECATED__MappingTestState;
65
65
  showCreateNewTestModal?: () => void;
66
66
  isReadOnly: boolean;
67
67
  }
@@ -132,7 +132,7 @@ export const MappingTestExplorerContextMenu = observer(
132
132
  );
133
133
 
134
134
  export const MappingTestStatusIndicator: React.FC<{
135
- testState: DEPRECATED_MappingTestState;
135
+ testState: DEPRECATED__MappingTestState;
136
136
  }> = (props) => {
137
137
  const { testState } = props;
138
138
  if (testState.isSkipped) {
@@ -194,7 +194,7 @@ export const MappingTestStatusIndicator: React.FC<{
194
194
  };
195
195
 
196
196
  export const MappingTestExplorer = observer(
197
- (props: { testState: DEPRECATED_MappingTestState; isReadOnly: boolean }) => {
197
+ (props: { testState: DEPRECATED__MappingTestState; isReadOnly: boolean }) => {
198
198
  const { isReadOnly, testState } = props;
199
199
  const editorStore = useEditorStore();
200
200
  const applicationStore = useApplicationStore();
@@ -45,15 +45,16 @@ import { useEditorStore } from '../../EditorStoreProvider.js';
45
45
  import {
46
46
  ActionAlertActionType,
47
47
  ActionAlertType,
48
- DocumentationLink,
49
- DocumentationPreview,
50
- LEGEND_APPLICATION_DOCUMENTATION_KEY,
51
48
  shouldDisplayVirtualAssistantDocumentationEntry,
52
49
  useApplicationStore,
53
50
  } from '@finos/legend-application';
54
51
  import { ProjectDependencyEditor } from './ProjectDependencyEditor.js';
55
52
  import type { ProjectData } from '@finos/legend-server-depot';
56
53
  import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../../application/LegendStudioDocumentation.js';
54
+ import {
55
+ DocumentationLink,
56
+ DocumentationPreview,
57
+ } from '@finos/legend-application/components';
57
58
 
58
59
  const ProjectStructureEditor = observer(
59
60
  (props: { projectConfig: ProjectConfiguration; isReadOnly: boolean }) => {
@@ -309,7 +310,7 @@ const ProjectPlatformVersionEditor = observer(
309
310
  artifacts; in this case, you can freeze the platform dependencies'
310
311
  versions"
311
312
  documentationKey={
312
- LEGEND_APPLICATION_DOCUMENTATION_KEY.QUESTION_WHEN_TO_CONFIGURE_PLATFORM_VERSIONS
313
+ LEGEND_STUDIO_DOCUMENTATION_KEY.QUESTION_WHEN_TO_CONFIGURE_PLATFORM_VERSIONS
313
314
  }
314
315
  />
315
316
  <div className="platform-configurations-editor__dependencies">
@@ -48,7 +48,6 @@ import {
48
48
  service_updateOwner,
49
49
  } from '../../../../stores/editor/shared/modifier/DSL_Service_GraphModifierHelper.js';
50
50
  import {
51
- LEGEND_APPLICATION_DOCUMENTATION_KEY,
52
51
  useApplicationNavigationContext,
53
52
  useApplicationStore,
54
53
  } from '@finos/legend-application';
@@ -56,6 +55,7 @@ import { validate_ServicePattern } from '@finos/legend-graph';
56
55
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
57
56
  import { ServiceTestableEditor } from './testable/ServiceTestableEditor.js';
58
57
  import { flowResult } from 'mobx';
58
+ import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../../application/LegendStudioDocumentation.js';
59
59
 
60
60
  type UserOption = { label: string; value: string };
61
61
 
@@ -481,7 +481,7 @@ export const ServiceEditor = observer(() => {
481
481
  );
482
482
  const seeDocumentation = (): void =>
483
483
  applicationStore.assistantService.openDocumentationEntry(
484
- LEGEND_APPLICATION_DOCUMENTATION_KEY.QUESTION_HOW_TO_WRITE_A_SERVICE_TEST,
484
+ LEGEND_STUDIO_DOCUMENTATION_KEY.QUESTION_HOW_TO_WRITE_A_SERVICE_TEST,
485
485
  );
486
486
 
487
487
  useApplicationNavigationContext(
@@ -49,9 +49,7 @@ import {
49
49
  import { flowResult } from 'mobx';
50
50
  import { useEditorStore } from '../../EditorStoreProvider.js';
51
51
  import {
52
- EDITOR_LANGUAGE,
53
- ExecutionPlanViewer,
54
- TextInputEditor,
52
+ CODE_EDITOR_LANGUAGE,
55
53
  useApplicationStore,
56
54
  } from '@finos/legend-application';
57
55
  import {
@@ -65,12 +63,14 @@ import {
65
63
  ServiceQueryBuilderState,
66
64
  LambdaParameterValuesEditor,
67
65
  QueryBuilderTextEditorMode,
66
+ ExecutionPlanViewer,
68
67
  } from '@finos/legend-query-builder';
69
68
  import { ProjectViewerEditorMode } from '../../../../stores/project-view/ProjectViewerEditorMode.js';
70
69
  import { useLegendStudioApplicationStore } from '../../../LegendStudioBaseStoreProvider.js';
71
70
  import { WorkspaceType } from '@finos/legend-server-sdlc';
72
71
  import { SNAPSHOT_VERSION_ALIAS } from '@finos/legend-server-depot';
73
72
  import type { ProjectGAVCoordinates } from '@finos/legend-storage';
73
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
74
74
 
75
75
  const ServiceExecutionResultViewer = observer(
76
76
  (props: { executionState: ServicePureExecutionState }) => {
@@ -93,10 +93,10 @@ const ServiceExecutionResultViewer = observer(
93
93
  <Modal darkMode={true} className="editor-modal">
94
94
  <ModalHeader title="Execution Result" />
95
95
  <ModalBody>
96
- <TextInputEditor
96
+ <CodeEditor
97
97
  inputValue={executionResultText ?? ''}
98
98
  isReadOnly={true}
99
- language={EDITOR_LANGUAGE.JSON}
99
+ language={CODE_EDITOR_LANGUAGE.JSON}
100
100
  showMiniMap={true}
101
101
  />
102
102
  </ModalBody>
@@ -222,10 +222,10 @@ const ServiceExecutionQueryImporter = observer(
222
222
  isLoading={queryState.loadQueryInfoState.isInProgress}
223
223
  />
224
224
  {queryState.selectedQueryInfo && (
225
- <TextInputEditor
225
+ <CodeEditor
226
226
  inputValue={queryState.selectedQueryInfo.content}
227
227
  isReadOnly={true}
228
- language={EDITOR_LANGUAGE.PURE}
228
+ language={CODE_EDITOR_LANGUAGE.PURE}
229
229
  showMiniMap={false}
230
230
  hideGutter={true}
231
231
  />
@@ -601,10 +601,10 @@ export const ServiceExecutionQueryEditor = observer(
601
601
  editWithQueryBuilder()();
602
602
  }}
603
603
  >
604
- <TextInputEditor
604
+ <CodeEditor
605
605
  inputValue={queryState.lambdaString}
606
606
  isReadOnly={true}
607
- language={EDITOR_LANGUAGE.PURE}
607
+ language={CODE_EDITOR_LANGUAGE.PURE}
608
608
  showMiniMap={true}
609
609
  />
610
610
  </div>
@@ -55,12 +55,12 @@ import {
55
55
  ActionAlertActionType,
56
56
  ActionAlertType,
57
57
  buildElementOption,
58
- LEGEND_APPLICATION_DOCUMENTATION_KEY,
59
58
  useApplicationStore,
60
59
  } from '@finos/legend-application';
61
60
  import { prettyCONSTName } from '@finos/legend-shared';
62
61
  import type { DSL_Data_LegendStudioApplicationPlugin_Extension } from '../../../../../stores/extensions/DSL_Data_LegendStudioApplicationPlugin_Extension.js';
63
62
  import { useEditorStore } from '../../../EditorStoreProvider.js';
63
+ import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../../../application/LegendStudioDocumentation.js';
64
64
 
65
65
  export const ConnectionTestDataEditor = observer(
66
66
  (props: { connectionTestDataState: ConnectionTestDataState }) => {
@@ -431,7 +431,7 @@ export const ServiceTestDataEditor = observer(
431
431
  };
432
432
  const seeDocumentation = (): void =>
433
433
  applicationStore.assistantService.openDocumentationEntry(
434
- LEGEND_APPLICATION_DOCUMENTATION_KEY.QUESTION_HOW_TO_WRITE_SERVICE_CONNECTION_TEST_DATA,
434
+ LEGEND_STUDIO_DOCUMENTATION_KEY.QUESTION_HOW_TO_WRITE_SERVICE_CONNECTION_TEST_DATA,
435
435
  );
436
436
  return (
437
437
  <div className="service-test-data-editor panel">
@@ -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
  clsx,
20
20
  CompareIcon,
@@ -49,6 +49,7 @@ import { externalFormatData_setData } from '../../../../stores/editor/shared/mod
49
49
  import { TESTABLE_RESULT } from '../../../../stores/editor/sidebar-state/testable/GlobalTestRunnerState.js';
50
50
  import { JsonDiffView } from '../../../shared/DiffView.js';
51
51
  import { UnsupportedEditorPanel } from '../UnsupportedElementEditor.js';
52
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
52
53
 
53
54
  const EqualToJsonAsssertionEditor = observer(
54
55
  (props: {
@@ -84,9 +85,9 @@ const EqualToJsonAsssertionEditor = observer(
84
85
  </div>
85
86
  <div className="equal-to-json-editor__content panel__content">
86
87
  <div className="equal-to-json-editor__content__data">
87
- <TextInputEditor
88
+ <CodeEditor
88
89
  inputValue={assertion.expected.data}
89
- language={EDITOR_LANGUAGE.JSON}
90
+ language={CODE_EDITOR_LANGUAGE.JSON}
90
91
  updateInput={(val: string): void => {
91
92
  equalToJsonAssertionState.setExpectedValue(val);
92
93
  }}
@@ -93,9 +93,9 @@ import {
93
93
  buildElementOption,
94
94
  useApplicationNavigationContext,
95
95
  type PackageableElementOption,
96
- LEGEND_APPLICATION_DOCUMENTATION_KEY,
97
96
  } from '@finos/legend-application';
98
97
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../application/LegendStudioApplicationNavigationContext.js';
98
+ import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../../application/LegendStudioDocumentation.js';
99
99
 
100
100
  const AssociationPropertyBasicEditor = observer(
101
101
  (props: {
@@ -212,7 +212,7 @@ const AssociationPropertyBasicEditor = observer(
212
212
  };
213
213
  const seeErrorDocumentation = (): void =>
214
214
  editorStore.applicationStore.assistantService.openDocumentationEntry(
215
- LEGEND_APPLICATION_DOCUMENTATION_KEY.QUESTION_WHY_DO_I_SEE_ERROR_WITH_ASSOCIATION_PROPERTY_TYPE,
215
+ LEGEND_STUDIO_DOCUMENTATION_KEY.QUESTION_WHY_DO_I_SEE_ERROR_WITH_ASSOCIATION_PROPERTY_TYPE,
216
216
  );
217
217
 
218
218
  return (
@@ -106,10 +106,9 @@ import {
106
106
  getElementRootPackage,
107
107
  } from '@finos/legend-graph';
108
108
  import {
109
- EDITOR_LANGUAGE,
109
+ CODE_EDITOR_LANGUAGE,
110
110
  getPackageableElementOptionFormatter,
111
111
  type PackageableElementOption,
112
- TextInputEditor,
113
112
  useApplicationStore,
114
113
  } from '@finos/legend-application';
115
114
  import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/editor/shared/ModelClassifierUtils.js';
@@ -124,6 +123,7 @@ import {
124
123
  CLASS_MOCK_DATA_GENERATION_FORMAT,
125
124
  createMockDataForClassWithFormat,
126
125
  } from '../../../stores/editor/shared/MockDataUtils.js';
126
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
127
127
 
128
128
  const ElementRenamer = observer(() => {
129
129
  const editorStore = useEditorStore();
@@ -266,16 +266,16 @@ const GENERATION_DEFAULT_DEPTH = 100;
266
266
  const GENERATION_DEFAULT_FORMAT = CLASS_MOCK_DATA_GENERATION_FORMAT.JSON;
267
267
  const getMockDataEditorLanguage = (
268
268
  format: CLASS_MOCK_DATA_GENERATION_FORMAT,
269
- ): EDITOR_LANGUAGE => {
269
+ ): CODE_EDITOR_LANGUAGE => {
270
270
  switch (format) {
271
271
  case CLASS_MOCK_DATA_GENERATION_FORMAT.JSON:
272
- return EDITOR_LANGUAGE.JSON;
272
+ return CODE_EDITOR_LANGUAGE.JSON;
273
273
  case CLASS_MOCK_DATA_GENERATION_FORMAT.XML:
274
- return EDITOR_LANGUAGE.XML;
274
+ return CODE_EDITOR_LANGUAGE.XML;
275
275
  case CLASS_MOCK_DATA_GENERATION_FORMAT.YAML:
276
- return EDITOR_LANGUAGE.YAML;
276
+ return CODE_EDITOR_LANGUAGE.YAML;
277
277
  default:
278
- return EDITOR_LANGUAGE.TEXT;
278
+ return CODE_EDITOR_LANGUAGE.TEXT;
279
279
  }
280
280
  };
281
281
 
@@ -416,7 +416,7 @@ const SampleDataGenerator = observer(() => {
416
416
  />
417
417
  </div>
418
418
  <div className="sample-data-generator__result">
419
- <TextInputEditor
419
+ <CodeEditor
420
420
  inputValue={resultText}
421
421
  isReadOnly={true}
422
422
  hideGutter={true}
@@ -48,8 +48,7 @@ import { LEGEND_STUDIO_TEST_ID } from '../../../application/LegendStudioTesting.
48
48
  import { flowResult } from 'mobx';
49
49
  import { WorkflowJobStatus, WorkflowStatus } from '@finos/legend-server-sdlc';
50
50
  import {
51
- EDITOR_LANGUAGE,
52
- TextInputEditor,
51
+ CODE_EDITOR_LANGUAGE,
53
52
  useApplicationStore,
54
53
  } from '@finos/legend-application';
55
54
  import {
@@ -66,6 +65,7 @@ import {
66
65
  guaranteeType,
67
66
  isNonNullable,
68
67
  } from '@finos/legend-shared';
68
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
69
69
 
70
70
  const getWorkflowStatusIcon = (
71
71
  workflowStatus: WorkflowStatus,
@@ -238,10 +238,10 @@ const WorkflowJobLogsViewer = observer(
238
238
  </ModalHeaderActions>
239
239
  </ModalHeader>
240
240
  <ModalBody>
241
- <TextInputEditor
241
+ <CodeEditor
242
242
  inputValue={logs}
243
243
  isReadOnly={true}
244
- language={EDITOR_LANGUAGE.TEXT}
244
+ language={CODE_EDITOR_LANGUAGE.TEXT}
245
245
  showMiniMap={true}
246
246
  />
247
247
  </ModalBody>
@@ -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
  type TreeData,
20
20
  type TreeNodeContainerProps,
@@ -78,6 +78,7 @@ import { TextDiffView } from '../../../shared/DiffView.js';
78
78
  import { getElementTypeIcon } from '../../../shared/ElementIconUtils.js';
79
79
  import { UnsupportedEditorPanel } from '../../edit-panel/UnsupportedElementEditor.js';
80
80
  import { useEditorStore } from '../../EditorStoreProvider.js';
81
+ import { CodeEditor } from '@finos/legend-lego/code-editor';
81
82
 
82
83
  export const getTestableResultIcon = (
83
84
  testableResult: TESTABLE_RESULT,
@@ -189,26 +190,26 @@ const TestFailViewer = observer(
189
190
  <ModalHeader title={id} />
190
191
  <ModalBody>
191
192
  {failure instanceof TestError && (
192
- <TextInputEditor
193
+ <CodeEditor
193
194
  inputValue={failure.error}
194
195
  isReadOnly={true}
195
- language={EDITOR_LANGUAGE.TEXT}
196
+ language={CODE_EDITOR_LANGUAGE.TEXT}
196
197
  showMiniMap={true}
197
198
  />
198
199
  )}
199
200
  {failure instanceof EqualToJsonAssertFail && (
200
201
  <TextDiffView
201
- language={EDITOR_LANGUAGE.JSON}
202
+ language={CODE_EDITOR_LANGUAGE.JSON}
202
203
  from={failure.expected}
203
204
  to={failure.actual}
204
205
  />
205
206
  )}
206
207
  {failure instanceof AssertFail &&
207
208
  !(failure instanceof EqualToJsonAssertFail) && (
208
- <TextInputEditor
209
+ <CodeEditor
209
210
  inputValue={failure.message ?? ''}
210
211
  isReadOnly={true}
211
- language={EDITOR_LANGUAGE.TEXT}
212
+ language={CODE_EDITOR_LANGUAGE.TEXT}
212
213
  />
213
214
  )}
214
215
  </ModalBody>
@@ -21,6 +21,8 @@ import {
21
21
  type ContextualDocumentationEntry,
22
22
  type SettingConfigurationEntry,
23
23
  collectSettingConfigurationEntriesFromConfig,
24
+ type LegendApplicationSetup,
25
+ setupPureLanguageService,
24
26
  } from '@finos/legend-application';
25
27
  import packageJson from '../../../package.json';
26
28
  import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../application/LegendStudioApplicationNavigationContext.js';
@@ -31,6 +33,7 @@ import {
31
33
  import { LegendStudioApplicationPlugin } from '../../stores/LegendStudioApplicationPlugin.js';
32
34
  import { LEGEND_STUDIO_COMMAND_CONFIG } from '../../application/LegendStudioCommand.js';
33
35
  import { LEGEND_STUDIO_SETTING_CONFIG } from '../../application/LegendStudioSetting.js';
36
+ import type { LegendStudioApplicationStore } from '../../stores/LegendStudioBaseStore.js';
34
37
 
35
38
  export class Core_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin {
36
39
  static NAME = packageJson.extensions.applicationStudioPlugin;
@@ -39,6 +42,24 @@ export class Core_LegendStudioApplicationPlugin extends LegendStudioApplicationP
39
42
  super(Core_LegendStudioApplicationPlugin.NAME, packageJson.version);
40
43
  }
41
44
 
45
+ override getExtraApplicationSetups(): LegendApplicationSetup[] {
46
+ return [
47
+ async (applicationStore) => {
48
+ setupPureLanguageService(
49
+ // TODO: move these inside of `DSL_LegendStudioApplicationPlugin_Extension`
50
+ (applicationStore as LegendStudioApplicationStore).pluginManager
51
+ .getPureGraphManagerPlugins()
52
+ .flatMap((plugin) => plugin.getExtraPureGrammarKeywords?.() ?? []),
53
+ (applicationStore as LegendStudioApplicationStore).pluginManager
54
+ .getPureGraphManagerPlugins()
55
+ .flatMap(
56
+ (plugin) => plugin.getExtraPureGrammarParserNames?.() ?? [],
57
+ ),
58
+ );
59
+ },
60
+ ];
61
+ }
62
+
42
63
  override getExtraKeyedCommandConfigEntries(): KeyedCommandConfigEntry[] {
43
64
  return collectKeyedCommandConfigEntriesFromConfig(
44
65
  LEGEND_STUDIO_COMMAND_CONFIG,