Skip to content

Commit a2dbae9

Browse files
committed
Fix import adder fix
1 parent 6055f1d commit a2dbae9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/codefixes/importFixes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ function createImportAdderWorker(sourceFile: SourceFile | FutureSourceFile, prog
370370
);
371371

372372
let fix: FixAddNewImport | ImportFixWithModuleSpecifier;
373-
if (existingFix && importKind !== ImportKind.Namespace) {
373+
if (existingFix && importKind !== ImportKind.Namespace && existingFix.kind !== ImportFixKind.UseNamespace && existingFix.kind !== ImportFixKind.JsdocTypeImport) {
374374
fix = {
375375
...existingFix,
376376
addAsTypeOnly,

0 commit comments

Comments
 (0)