I can\'t seem to make getCompletions function to trigger in my custom completer when using custom prefix extraction regex identifierRegexps
Basica
Modifying the language_tools.js
file is not a good solution, you can adjust the regex pattern by calling the method getCompletionRegex
:
editor.getCompletionRegex = () => /[a-zA-Z_0-9.\$\-\u00A2-\uFFFF]/;
In the ext-language-tools.js file,
Replace
var ID_REGEX = /[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;
to
var ID_REGEX = /[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/;
With the above ID_REGEX the autocomplete will now trigger on periods (.)
Managed to solve it by modifying the ID_REGEX var in language_tools.js.