aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/editor/EditorStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/editor/EditorStore.ts')
-rw-r--r--subprojects/frontend/src/editor/EditorStore.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/subprojects/frontend/src/editor/EditorStore.ts b/subprojects/frontend/src/editor/EditorStore.ts
index d0b580ed..c5dd5728 100644
--- a/subprojects/frontend/src/editor/EditorStore.ts
+++ b/subprojects/frontend/src/editor/EditorStore.ts
@@ -36,7 +36,7 @@ import {
36} from '../utils/fileIO'; 36} from '../utils/fileIO';
37import getLogger from '../utils/getLogger'; 37import getLogger from '../utils/getLogger';
38import type XtextClient from '../xtext/XtextClient'; 38import type XtextClient from '../xtext/XtextClient';
39import type { SemanticsSuccessResult } from '../xtext/xtextServiceResults'; 39import type { SemanticsModelResult } from '../xtext/xtextServiceResults';
40 40
41import EditorErrors from './EditorErrors'; 41import EditorErrors from './EditorErrors';
42import GeneratedModelStore from './GeneratedModelStore'; 42import GeneratedModelStore from './GeneratedModelStore';
@@ -365,12 +365,11 @@ export default class EditorStore {
365 } 365 }
366 } 366 }
367 367
368 setSemanticsError(semanticsError: string) { 368 setSemanticsError(semanticsError: string | undefined) {
369 this.semanticsError = semanticsError; 369 this.semanticsError = semanticsError;
370 } 370 }
371 371
372 setSemantics(semantics: SemanticsSuccessResult) { 372 setSemantics(semantics: SemanticsModelResult) {
373 this.semanticsError = undefined;
374 this.graph.setSemantics(semantics); 373 this.graph.setSemantics(semantics);
375 } 374 }
376 375
@@ -447,7 +446,7 @@ export default class EditorStore {
447 446
448 setGeneratedModelSemantics( 447 setGeneratedModelSemantics(
449 uuid: string, 448 uuid: string,
450 semantics: SemanticsSuccessResult, 449 semantics: SemanticsModelResult,
451 ): void { 450 ): void {
452 this.generatedModels.get(uuid)?.setSemantics(semantics); 451 this.generatedModels.get(uuid)?.setSemantics(semantics);
453 } 452 }