Skip to content

Quick fix is wrong for type used as value #36033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DanielRosenwasser opened this issue Jan 6, 2020 · 1 comment
Closed

Quick fix is wrong for type used as value #36033

DanielRosenwasser opened this issue Jan 6, 2020 · 1 comment
Assignees
Labels
Duplicate An existing issue was already created

Comments

@DanielRosenwasser
Copy link
Member

// ./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

@DanielRosenwasser DanielRosenwasser added this to the TypeScript 3.8.1 milestone Jan 7, 2020
@DanielRosenwasser DanielRosenwasser added Bug A bug in TypeScript Domain: Quick Fixes Editor-provided fixes, often called code actions. labels Jan 7, 2020
@andrewbranch
Copy link
Member

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

@andrewbranch andrewbranch added Duplicate An existing issue was already created and removed Bug A bug in TypeScript Domain: Quick Fixes Editor-provided fixes, often called code actions. labels Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants