Merge pull request #10391 from Microsoft/SetIsNewIdentifierLocationToTrueForJS
Set isNewIdentifierLocation to true for JavaScript files
This commit is contained in:
commit
7a9f8c8798
1 changed files with 1 additions and 1 deletions
|
@ -4248,7 +4248,7 @@ namespace ts {
|
|||
addRange(entries, keywordCompletions);
|
||||
}
|
||||
|
||||
return { isMemberCompletion, isNewIdentifierLocation, entries };
|
||||
return { isMemberCompletion, isNewIdentifierLocation: isNewIdentifierLocation || isSourceFileJavaScript(sourceFile), entries };
|
||||
|
||||
function getJavaScriptCompletionEntries(sourceFile: SourceFile, position: number, uniqueNames: Map<string>): CompletionEntry[] {
|
||||
const entries: CompletionEntry[] = [];
|
||||
|
|
Loading…
Reference in a new issue