Backlog
Backlog
Copy link
Description
Comment
TypeScript Version
The tested TypeScript version is 7.1.0-beta and 7.1.0-dev.20261125.1.
Editor: VS Code 1.147.0
User Goal
The user saw broken @default values in VS Code hovers after moving to TypeScript 7, and asked me to check whether it's a TypeScript bug and draft a report.
Setup and Action
interface Options {
/**
* The tag to look for
* @default '<script>'
*/
tagName?: string;
/**
* How to retry failed requests
* @default {
* retries: 3,
* delayMs: 1000,
* }
*/
retry?: { retries: number; delayMs: number };
}Hover over tagName, then over retry.
Expected and Actual Behavior
What actually happened: The text of @default is shown as Markdown:
tagNameshows@default — '':<script>is dropped as an HTML tag.retryshows@default — { retries: 3, delayMs: 1000, }: all lines are joined into one.
What I expected: The text of @default in a code block, the way VS Code shows it with TypeScript 6, and the way TypeScript 7 already shows @example. microsoft/typescript-go#2313 was the same problem for @example.
Agent Info
Claude Code (desktop app) + Claude Opus 5.5 + Skill Version 1.0
Metadata
Metadata
Assignees
Labels
No labels
Activity