ts1484 Quick fix will dupe comments
Author: bulebrainbrandCreated Sep 15, 2026Updated Sep 15, 2026
Search Terms
"quickfix comment" "dupe comment"
Version & Regression Information
- This changed between versions 6.0.0-dev.20260416 and 6.0.3 of vscode extensions.
⏯ Playground Link
No response
Code
index.ts:
// upper comment
/*left comment*/ import { foo } from "./foo"; // right comment
// lower comment
foo.ts:
export type foo = "foo":
and enable verbatimModuleSyntax.
then run quick fix use 'import type'.
Actual behavior
index.ts:
// upper comment
/*left comment*/ // upper comment
/*left comment*/ import type { foo } from "./foo"; // right comment
// right comment
// lower comment
upper, left and right comment is duped.
Expected behavior
// upper comment
/*left comment*/ import type { foo } from "./foo"; // right comment
// lower comment
Additional information about the issue
ts1484 error: 'foo' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
Source: microsoft/TypeScript