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. added
    Bug
    Domain: LS: Quick Fixes
    on Jan 7, 2020
  2. andrewbranch commented on Jan 9, 2020

    @andrewbranch
    Member

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

  3. added
    Duplicate
    and removed
    Bug
    Domain: LS: Quick Fixes
    on Jan 9, 2020
  4. 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

Duplicate

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions