aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/xtext/ContentAssistService.ts
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/xtext/ContentAssistService.ts')
-rw-r--r--subprojects/frontend/src/xtext/ContentAssistService.ts8
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
106export default class ContentAssistService { 106export 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 },