-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Closed
Closed
Copy link
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick Infoe.g. hover text, tool-tips, and tooltips.e.g. hover text, tool-tips, and tooltips.Effort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Help WantedYou can do thisYou can do this
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.67.2
- OS Version: Windows 11 Pro 21H2, also reproducible on macOS Monterey 12.4
Steps to Reproduce:
- Create a file that contains a list of exported, consecutive, overloaded functions, with a single
@deprecatedtag at the top of the first one.
api.d.ts
/**
* @deprecated Use the new method instead.
*/
export function getArrayLength(arr: string[]): number;
export function getArrayLength(arr: number[]): number;
export function getArrayLength(arr: boolean[]): number;- Create a file that imports the overloaded function
test.ts
import { getArrayLength } from "./api";
getArrayLength(["1"])
getArrayLength([1])
getArrayLength([true])- Only the first function is striked-through, the other two overloaded functions aren't, even though they are all marked as
@deprecatedwhen hovering over them.




Either the bottom two overloaded functions shouldn't be marked as @deprecated when hovering over, or all three functions should be striked-through.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick Infoe.g. hover text, tool-tips, and tooltips.e.g. hover text, tool-tips, and tooltips.Effort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Help WantedYou can do thisYou can do this