Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: autocompletion eating non-identifier tokens
Andrew Bastinc26f7f5ebc01
diff --git a/helpers/editor/codemirror.ts b/helpers/editor/codemirror.tsindex b1ad665fb..4eba68538 100644--- a/helpers/editor/codemirror.ts+++ b/helpers/editor/codemirror.ts@@ -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 += 1const result = await options.completer!(text, pos)