CodeMirror 6 plugin API: Multiple plugins can't register autocompletion sources without enabling CodeMirror's built-in autocomplete #9964
Labels
beta-editor
About the desktop beta editor
desktop
All desktop platforms
enhancement
Feature requests and code enhancements
plugins
Anything related to Joplin's plugin system
Operating system
Linux
Joplin version
≥2.14.6
Current behaviour
See https://discuss.codemirror.net/t/autocompletion-merging-override-in-config/7853/2.
At present, CodeMirror 6 content scripts can register custom completions as follows:
The above, however, enables CodeMirror's built-in autocompletions (e.g. autocompleting
function
in JavaScript code blocks or HTML tags in markdown), which may not be desired.An alternative is something similar to this:
However, this fails if more than one plugin tries to register completions this way.
Expected behavior
Multiple plugins should be able to add autocompletion sources without enabling CodeMirror's built-in autocomplete.
The text was updated successfully, but these errors were encountered: