Skip to content

Quick fix is wrong for type used as value #36033

Closed

Description

// ./fileA.ts
export class Foo {
}

// ./fileB.ts
import type { Foo } from "./fileA.js";

class Derived extends /**/Foo {
}

Try to apply the quick fix for the error at /**/

addImportToWrongStatementWhatEven

Activity

  1. andrewbranch commented on Jan 9, 2020

    @andrewbranch
    Member

    Duplicate of #36002 (auto import and quick fix share this logic)

  2. added
    DuplicateAn existing issue was already created
    and removed
    BugA bug in TypeScript
    Domain: LS: Quick FixesEditor-provided fixes, often called code actions.
    on Jan 9, 2020
  3. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

DuplicateAn existing issue was already created

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions