fix: autocompletion eating non-identifier tokens
This commit is contained in:
parent
631b2d869e
commit
c26f7f5ebc
1 changed files with 3 additions and 0 deletions
|
|
@ -97,6 +97,9 @@ export function useCodemirror(
|
|||
const text = editor.getValue()
|
||||
|
||||
const token = editor.getTokenAt(pos)
|
||||
// It's not a word token, so, just increment to skip to next
|
||||
if (token.string.toUpperCase() === token.string.toLowerCase())
|
||||
token.start += 1
|
||||
|
||||
const result = await options.completer!(text, pos)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue