8000 Remove builder from import clauses. · icssjs/TypeScript@4906f41 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 4906f41

Browse files
Remove builder from import clauses.
1 parent 5258167 commit 4906f41

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/services/services.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3236,9 +3236,10 @@ namespace ts {
32363236
function tryGetImportClauseCompletionSymbols(importClause: ImportClause): boolean {
32373237
// cursor is in import clause
32383238
// try to show exported member for imported module
3239-
isMemberCompletion = true;
3240-
isNewIdentifierLocation = true;
32413239
if (shouldShowCompletionsInImportsClause(contextToken)) {
3240+
isMemberCompletion = true;
3241+
isNewIdentifierLocation = false;
3242+
32423243
let importDeclaration = <ImportDeclaration>getAncestor(contextToken, SyntaxKind.ImportDeclaration);
32433244
Debug.assert(importDeclaration !== undefined);
32443245

@@ -3253,6 +3254,11 @@ namespace ts {
32533254
//let exports = typeInfoResolver.getExportsOfImportDeclaration(importDeclaration);
32543255
symbols = exports ? filterModuleExports(exports, importDeclaration) : emptyArray;
32553256
}
3257+
else {
3258+
isMemberCompletion = false;
3259+
isNewIdentifierLocation = true;
3260+
}
3261+
32563262
return true;
32573263
}
32583264

0 commit comments

Comments
 (0)
0