aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/xtext/ContentAssistService.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-09-05 01:29:11 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-09-06 01:05:24 +0200
commiteb94326bb64552dbd7df62ae201ccca37f368467 (patch)
treeb810f0230ace058cac8a6343455ca60113925221 /subprojects/frontend/src/xtext/ContentAssistService.ts
parentrefactor(frontend): more readable indentation (diff)
downloadrefinery-eb94326bb64552dbd7df62ae201ccca37f368467.tar.gz
refinery-eb94326bb64552dbd7df62ae201ccca37f368467.tar.zst
refinery-eb94326bb64552dbd7df62ae201ccca37f368467.zip
feat(frontend): show connection status
Diffstat (limited to 'subprojects/frontend/src/xtext/ContentAssistService.ts')
-rw-r--r--subprojects/frontend/src/xtext/ContentAssistService.ts7
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 {