diff options
Diffstat (limited to 'subprojects/frontend/src/xtext/ContentAssistService.ts')
-rw-r--r-- | subprojects/frontend/src/xtext/ContentAssistService.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/subprojects/frontend/src/xtext/ContentAssistService.ts b/subprojects/frontend/src/xtext/ContentAssistService.ts index 9e41f57b..101990af 100644 --- a/subprojects/frontend/src/xtext/ContentAssistService.ts +++ b/subprojects/frontend/src/xtext/ContentAssistService.ts | |||
@@ -115,6 +115,13 @@ export default class ContentAssistService { | |||
115 | } | 115 | } |
116 | 116 | ||
117 | async contentAssist(context: CompletionContext): Promise<CompletionResult> { | 117 | async contentAssist(context: CompletionContext): Promise<CompletionResult> { |
118 | if (!this.updateService.opened) { | ||
119 | this.lastCompletion = undefined; | ||
120 | return { | ||
121 | from: context.pos, | ||
122 | options: [], | ||
123 | }; | ||
124 | } | ||
118 | const tokenBefore = findToken(context); | 125 | const tokenBefore = findToken(context); |
119 | if (!context.explicit && !shouldCompleteImplicitly(tokenBefore, context)) { | 126 | if (!context.explicit && !shouldCompleteImplicitly(tokenBefore, context)) { |
120 | return { | 127 | return { |