Skip to content

[bug] JS/TS Format Selection can delete comments #57741

@RedCMD

Description

@RedCMD

open a javascript or typescript file
create a block comment in such a way that a space will be inserted next to it when formatting

example:

const test/* comment */=5

select any part of the comment (except the ending /)
right click => Format Selection
the comment gets deleted ❌
const test =5

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions