aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/xtext/HighlightingService.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-25 01:25:40 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-25 16:44:01 +0200
commitf6de69943df6c669c81b10279bbfaf3158f1fd61 (patch)
treee19465fd9ae4dc6905ad1aa1f8dbbc92ae43ea62 /subprojects/frontend/src/xtext/HighlightingService.ts
parentrefactor(frontend): xtext update improvements (diff)
downloadrefinery-f6de69943df6c669c81b10279bbfaf3158f1fd61.tar.gz
refinery-f6de69943df6c669c81b10279bbfaf3158f1fd61.tar.zst
refinery-f6de69943df6c669c81b10279bbfaf3158f1fd61.zip
fix(frontend): UpdateService synchronization
Also bumps frontend dependencies
Diffstat (limited to 'subprojects/frontend/src/xtext/HighlightingService.ts')
-rw-r--r--subprojects/frontend/src/xtext/HighlightingService.ts12
1 files changed, 4 insertions, 8 deletions
diff --git a/subprojects/frontend/src/xtext/HighlightingService.ts b/subprojects/frontend/src/xtext/HighlightingService.ts
index cf618b96..f9ab7b7e 100644
--- a/subprojects/frontend/src/xtext/HighlightingService.ts
+++ b/subprojects/frontend/src/xtext/HighlightingService.ts
@@ -5,14 +5,10 @@ import type UpdateService from './UpdateService';
5import { highlightingResult } from './xtextServiceResults'; 5import { highlightingResult } from './xtextServiceResults';
6 6
7export default class HighlightingService { 7export default class HighlightingService {
8 private readonly store: EditorStore; 8 constructor(
9 9 private readonly store: EditorStore,
10 private readonly updateService: UpdateService; 10 private readonly updateService: UpdateService,
11 11 ) {}
12 constructor(store: EditorStore, updateService: UpdateService) {
13 this.store = store;
14 this.updateService = updateService;
15 }
16 12
17 onPush(push: unknown): void { 13 onPush(push: unknown): void {
18 const { regions } = highlightingResult.parse(push); 14 const { regions } = highlightingResult.parse(push);