Skip to content

Commit 149dcf1

Browse files
authored
Merge pull request #11191 from Microsoft/JSCompletionCommitOnEnterFix
JS completion commit on enter fix
2 parents 60ab007 + b2199d3 commit 149dcf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/completions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace ts.Completions {
5656
addRange(entries, keywordCompletions);
5757
}
5858

59-
return { isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation || isSourceFileJavaScript(sourceFile), entries };
59+
return { isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation, entries };
6060

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

0 commit comments

Comments
 (0)