Skip to content

Commit 3794e04

Browse files
committed
Import statement completions can return none
1 parent 16e40e2 commit 3794e04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/completions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,7 @@ namespace ts.Completions {
15941594

15951595
function tryGetImportCompletionSymbols(): GlobalsSearch {
15961596
if (!importCompletionNode) return GlobalsSearch.Continue;
1597+
isNewIdentifierLocation = true;
15971598
collectAutoImports(/*resolveModuleSpecifiers*/ true);
15981599
return GlobalsSearch.Success;
15991600
}

0 commit comments

Comments
 (0)