-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.FixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
π Search Terms
"quick fix", "add missing property", "enum"
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
β― Playground Link
No response
π» Code
// @filename: E.ts
export enum E {
A,
B
}
// @filename: index.ts
import { E } from "./E"
type T = {
e: E
}
const t:T = {}
// apply "add missing properties" quick fix on `t` π Actual behavior
fixed to:
const t:T = {
e: "file:///E".A
}
π Expected behavior
No syntax error
Additional information about the issue
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.FixedA PR has been merged for this issueA PR has been merged for this issue