Skip to content

Commit a66b38a

Browse files
committed
Set isNewIdentifierLocation to true for JavaScript files
1 parent 3f1ec7a commit a66b38a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4247,7 +4247,7 @@ namespace ts {
42474247
addRange(entries, keywordCompletions);
42484248
}
42494249

4250-
return { isMemberCompletion, isNewIdentifierLocation, entries };
4250+
return { isMemberCompletion, isNewIdentifierLocation: isSourceFileJavaScript(sourceFile) ? true : isNewIdentifierLocation, entries };
42514251

42524252
function getJavaScriptCompletionEntries(sourceFile: SourceFile, position: number, uniqueNames: Map<string>): CompletionEntry[] {
42534253
const entries: CompletionEntry[] = [];

0 commit comments

Comments
 (0)