Skip to content

Extra * characters inserted around decorator in fenced code block in JSDoc #48976

Open
@rbuckton

Description

@rbuckton

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.67.0-insider (commit: f050b17)
  • OS Version: Windows 11

Steps to Reproduce:

  1. Open a TypeScript file in VSCode
  2. Create a variable or type and add a JSDoc comment
  3. Inside the JSDoc comment, add a fenced code block for the TypeScript language (i.e., ```ts)
  4. Inside the fenced code block add @decorator class C {}
  5. Bring up the quick info/hover for the documented element.
  6. Observe that in the documentation, the decorator is rendered as *@decorator*.

image

NOTE: This occurs regardless as to whether the @example tag is used, as the problem always occurs when using a fenced code block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Quick Infoe.g. hover text, tool-tips, and tooltips.Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions