Custom autocompleter and periods (.)

后端 未结 3 763
天命终不由人
天命终不由人 2021-01-02 18:10

I can\'t seem to make getCompletions function to trigger in my custom completer when using custom prefix extraction regex identifierRegexps

Basica

3条回答
  •  生来不讨喜
    2021-01-02 18:31

    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]/;
    

提交回复
热议问题