diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-08-25 01:25:40 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-08-25 16:44:01 +0200 |
commit | f6de69943df6c669c81b10279bbfaf3158f1fd61 (patch) | |
tree | e19465fd9ae4dc6905ad1aa1f8dbbc92ae43ea62 /subprojects/frontend/src/xtext/ContentAssistService.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/ContentAssistService.ts')
-rw-r--r-- | subprojects/frontend/src/xtext/ContentAssistService.ts | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/subprojects/frontend/src/xtext/ContentAssistService.ts b/subprojects/frontend/src/xtext/ContentAssistService.ts index 39042812..9e41f57b 100644 --- a/subprojects/frontend/src/xtext/ContentAssistService.ts +++ b/subprojects/frontend/src/xtext/ContentAssistService.ts | |||
@@ -104,13 +104,9 @@ function createCompletion(entry: ContentAssistEntry): Completion { | |||
104 | } | 104 | } |
105 | 105 | ||
106 | export default class ContentAssistService { | 106 | export default class ContentAssistService { |
107 | private readonly updateService: UpdateService; | ||
108 | |||
109 | private lastCompletion: CompletionResult | undefined; | 107 | private lastCompletion: CompletionResult | undefined; |
110 | 108 | ||
111 | constructor(updateService: UpdateService) { | 109 | constructor(private readonly updateService: UpdateService) {} |
112 | this.updateService = updateService; | ||
113 | } | ||
114 | 110 | ||
115 | onTransaction(transaction: Transaction): void { | 111 | onTransaction(transaction: Transaction): void { |
116 | if (this.shouldInvalidateCachedCompletion(transaction)) { | 112 | if (this.shouldInvalidateCachedCompletion(transaction)) { |
@@ -159,8 +155,6 @@ export default class ContentAssistService { | |||
159 | this.lastCompletion = undefined; | 155 | this.lastCompletion = undefined; |
160 | const entries = await this.updateService.fetchContentAssist( | 156 | const entries = await this.updateService.fetchContentAssist( |
161 | { | 157 | { |
162 | resource: this.updateService.resourceName, | ||
163 | serviceType: 'assist', | ||
164 | caretOffset: context.pos, | 158 | caretOffset: context.pos, |
165 | proposalsLimit: PROPOSALS_LIMIT, | 159 | proposalsLimit: PROPOSALS_LIMIT, |
166 | }, | 160 | }, |