Skip to content

ts1484 Quick fix will dupe commentsΒ #64272

Description

πŸ”Ž 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions