aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/src/main/js/xtext/UpdateService.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-30 14:29:51 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-31 19:26:13 +0100
commit692cb2218b6684d1289660a0d97e644806c31cc5 (patch)
tree7a8f9565ff62dbdb7ebc328abb71ebcf9bb40877 /language-web/src/main/js/xtext/UpdateService.ts
parentchore(web): refactor xtext client (diff)
downloadrefinery-692cb2218b6684d1289660a0d97e644806c31cc5.tar.gz
refinery-692cb2218b6684d1289660a0d97e644806c31cc5.tar.zst
refinery-692cb2218b6684d1289660a0d97e644806c31cc5.zip
feat(web): server-side content assist filtering
Diffstat (limited to 'language-web/src/main/js/xtext/UpdateService.ts')
-rw-r--r--language-web/src/main/js/xtext/UpdateService.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/language-web/src/main/js/xtext/UpdateService.ts b/language-web/src/main/js/xtext/UpdateService.ts
index f8ab7438..bbe7bb62 100644
--- a/language-web/src/main/js/xtext/UpdateService.ts
+++ b/language-web/src/main/js/xtext/UpdateService.ts
@@ -53,6 +53,11 @@ export class UpdateService {
53 this.webSocketClient = webSocketClient; 53 this.webSocketClient = webSocketClient;
54 } 54 }
55 55
56 onConnect(): Promise<void> {
57 this.xtextStateId = null;
58 return this.updateFullText();
59 }
60
56 onTransaction(transaction: Transaction): void { 61 onTransaction(transaction: Transaction): void {
57 const { changes } = transaction; 62 const { changes } = transaction;
58 if (!changes.empty) { 63 if (!changes.empty) {