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.
1 parent a66b38a commit 44476f1Copy full SHA for 44476f1
src/services/services.ts
@@ -4247,7 +4247,7 @@ namespace ts {
4247
addRange(entries, keywordCompletions);
4248
}
4249
4250
- return { isMemberCompletion, isNewIdentifierLocation: isSourceFileJavaScript(sourceFile) ? true : isNewIdentifierLocation, entries };
+ return { isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation || isSourceFileJavaScript(sourceFile), entries };
4251
4252
function getJavaScriptCompletionEntries(sourceFile: SourceFile, position: number, uniqueNames: Map<string>): CompletionEntry[] {
4253
const entries: CompletionEntry[] = [];
0 commit comments