aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/xtext/XtextClient.ts
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/xtext/XtextClient.ts')
-rw-r--r--subprojects/frontend/src/xtext/XtextClient.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/subprojects/frontend/src/xtext/XtextClient.ts b/subprojects/frontend/src/xtext/XtextClient.ts
index d145cd30..87778084 100644
--- a/subprojects/frontend/src/xtext/XtextClient.ts
+++ b/subprojects/frontend/src/xtext/XtextClient.ts
@@ -17,6 +17,7 @@ import getLogger from '../utils/getLogger';
17import ContentAssistService from './ContentAssistService'; 17import ContentAssistService from './ContentAssistService';
18import HighlightingService from './HighlightingService'; 18import HighlightingService from './HighlightingService';
19import OccurrencesService from './OccurrencesService'; 19import OccurrencesService from './OccurrencesService';
20import SemanticsService from './SemanticsService';
20import UpdateService from './UpdateService'; 21import UpdateService from './UpdateService';
21import ValidationService from './ValidationService'; 22import ValidationService from './ValidationService';
22import XtextWebSocketClient from './XtextWebSocketClient'; 23import XtextWebSocketClient from './XtextWebSocketClient';
@@ -37,6 +38,8 @@ export default class XtextClient {
37 38
38 private readonly occurrencesService: OccurrencesService; 39 private readonly occurrencesService: OccurrencesService;
39 40
41 private readonly semanticsService: SemanticsService;
42
40 constructor( 43 constructor(
41 private readonly store: EditorStore, 44 private readonly store: EditorStore,
42 private readonly pwaStore: PWAStore, 45 private readonly pwaStore: PWAStore,
@@ -54,6 +57,7 @@ export default class XtextClient {
54 ); 57 );
55 this.validationService = new ValidationService(store, this.updateService); 58 this.validationService = new ValidationService(store, this.updateService);
56 this.occurrencesService = new OccurrencesService(store, this.updateService); 59 this.occurrencesService = new OccurrencesService(store, this.updateService);
60 this.semanticsService = new SemanticsService(store, this.validationService);
57 } 61 }
58 62
59 start(): void { 63 start(): void {
@@ -67,6 +71,7 @@ export default class XtextClient {
67 } 71 }
68 72
69 private onDisconnect(): void { 73 private onDisconnect(): void {
74 this.store.analysisCompleted(true);
70 this.highlightingService.onDisconnect(); 75 this.highlightingService.onDisconnect();
71 this.validationService.onDisconnect(); 76 this.validationService.onDisconnect();
72 this.occurrencesService.onDisconnect(); 77 this.occurrencesService.onDisconnect();
@@ -115,7 +120,7 @@ export default class XtextClient {
115 this.validationService.onPush(push); 120 this.validationService.onPush(push);
116 return; 121 return;
117 case 'semantics': 122 case 'semantics':
118 this.store.setSemantics(push); 123 this.semanticsService.onPush(push);
119 return; 124 return;
120 default: 125 default:
121 throw new Error('Unknown service'); 126 throw new Error('Unknown service');