diff options
Diffstat (limited to 'subprojects/frontend/src/xtext/HighlightingService.ts')
-rw-r--r-- | subprojects/frontend/src/xtext/HighlightingService.ts | 12 |
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'; | |||
5 | import { highlightingResult } from './xtextServiceResults'; | 5 | import { highlightingResult } from './xtextServiceResults'; |
6 | 6 | ||
7 | export default class HighlightingService { | 7 | export 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); |