From 57c87da464e665d0658b78568836372247f93ae4 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 25 Oct 2022 13:45:22 -0500 Subject: [PATCH] editor: disable word-based suggestions This turns off the default word-based suggestions. This was useful when we didn't have proper code completion but now can be distracting. Fixes: https://github.com/pybricks/support/issues/757 --- CHANGELOG.md | 4 ++++ src/editor/Editor.tsx | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d7aa76c..7b997e9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ ### Added - Added feature to close editor tab on middle click ([support#758]). +### Removed +- Removed word-based autocompletion ([support#757]). + +[support#757]: https://github.com/pybricks/support/issues/757 [support#758]: https://github.com/pybricks/support/issues/758 ## [2.0.0-beta.8] - 2022-10-25 diff --git a/src/editor/Editor.tsx b/src/editor/Editor.tsx index 1d39a1de..b7eaa080 100644 --- a/src/editor/Editor.tsx +++ b/src/editor/Editor.tsx @@ -373,6 +373,7 @@ const Editor: React.VFC = () => { contextmenu: false, rulers: [80], lineNumbersMinChars: 4, + wordBasedSuggestions: false, }), [], );