aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/src/main/js/editor/EditorStore.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-30 02:26:43 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-31 19:26:13 +0100
commitcc6cc0336091f838d27d66267004675ee96e1a40 (patch)
tree00e634c0b7519416392cc558ca9ca3e8d7a43f66 /language-web/src/main/js/editor/EditorStore.ts
parentchore(web): refactor PendingTask (diff)
downloadrefinery-cc6cc0336091f838d27d66267004675ee96e1a40.tar.gz
refinery-cc6cc0336091f838d27d66267004675ee96e1a40.tar.zst
refinery-cc6cc0336091f838d27d66267004675ee96e1a40.zip
feat(web): add xtext content assist
Diffstat (limited to 'language-web/src/main/js/editor/EditorStore.ts')
-rw-r--r--language-web/src/main/js/editor/EditorStore.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/language-web/src/main/js/editor/EditorStore.ts b/language-web/src/main/js/editor/EditorStore.ts
index 32fe6fd1..dcc69fd1 100644
--- a/language-web/src/main/js/editor/EditorStore.ts
+++ b/language-web/src/main/js/editor/EditorStore.ts
@@ -79,7 +79,12 @@ export class EditorStore {
79 this.state = EditorState.create({ 79 this.state = EditorState.create({
80 doc: initialValue, 80 doc: initialValue,
81 extensions: [ 81 extensions: [
82 autocompletion(), 82 autocompletion({
83 activateOnTyping: true,
84 override: [
85 (context) => this.client.contentAssist(context),
86 ],
87 }),
83 classHighlightStyle.extension, 88 classHighlightStyle.extension,
84 closeBrackets(), 89 closeBrackets(),
85 bracketMatching(), 90 bracketMatching(),