-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Inlay HintsHelp WantedYou can do thisYou can do this
Milestone
Description
Bug Report
🔎 Search Terms
- typescript.inlayHints.parameterTypes.enabled
🕗 Version & Regression Information
4.7.0-dev.20220315
Not a regression
💻 Code
In VS Code, enable typescript.inlayHints.parameterTypes.enabled
interface IFoo {
bar(x?: boolean): void;
}
const a: IFoo = {
bar: function (x?): void {
throw new Error("Function not implemented.");
}
}
🙁 Actual behavior
The parameter type inlay hints are shown between x
and ?
🙂 Expected behavior
The inlay hint should come after the ?
: x? : boolean | undefined
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Inlay HintsHelp WantedYou can do thisYou can do this