diff options
author | 2022-08-25 01:25:40 +0200 | |
---|---|---|
committer | 2022-08-25 16:44:01 +0200 | |
commit | f6de69943df6c669c81b10279bbfaf3158f1fd61 (patch) | |
tree | e19465fd9ae4dc6905ad1aa1f8dbbc92ae43ea62 /subprojects/frontend/src/xtext/ValidationService.ts | |
parent | refactor(frontend): xtext update improvements (diff) | |
download | refinery-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/ValidationService.ts')
-rw-r--r-- | subprojects/frontend/src/xtext/ValidationService.ts | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/subprojects/frontend/src/xtext/ValidationService.ts b/subprojects/frontend/src/xtext/ValidationService.ts index a0b27251..e78318f7 100644 --- a/subprojects/frontend/src/xtext/ValidationService.ts +++ b/subprojects/frontend/src/xtext/ValidationService.ts | |||
@@ -6,14 +6,10 @@ import type UpdateService from './UpdateService'; | |||
6 | import { ValidationResult } from './xtextServiceResults'; | 6 | import { ValidationResult } from './xtextServiceResults'; |
7 | 7 | ||
8 | export default class ValidationService { | 8 | export default class ValidationService { |
9 | private readonly store: EditorStore; | 9 | constructor( |
10 | 10 | private readonly store: EditorStore, | |
11 | private readonly updateService: UpdateService; | 11 | private readonly updateService: UpdateService, |
12 | 12 | ) {} | |
13 | constructor(store: EditorStore, updateService: UpdateService) { | ||
14 | this.store = store; | ||
15 | this.updateService = updateService; | ||
16 | } | ||
17 | 13 | ||
18 | onPush(push: unknown): void { | 14 | onPush(push: unknown): void { |
19 | const { issues } = ValidationResult.parse(push); | 15 | const { issues } = ValidationResult.parse(push); |