We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0302124 + 25aa7e0 commit c8e5603Copy full SHA for c8e5603
extension/server/src/providers/completionItem.ts
@@ -61,7 +61,7 @@ export default async function completionItemProvider(handler: CompletionParams):
61
let currentDef: Declaration | undefined;
62
63
for (tokenIndex; tokenIndex < tokens.length; tokenIndex++) {
64
- if ([`block`, `dot`, `newline`].includes(tokens[tokenIndex].type)) {
+ if (tokens[tokenIndex] === undefined || [`block`, `dot`, `newline`].includes(tokens[tokenIndex].type)) {
65
continue;
66
}
67
0 commit comments