Skip to content

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

@RedCMD

Description

@RedCMD

Extension Version

0.20251214.1

VS Code Version

1.107.0

Operating system Version

Windows 11

Steps to reproduce

  1. open a javascript or typescript file
  2. create a block comment in such a way that a space will be inserted next to it when formatting
const test/* comment */=5;
  1. select any part of the comment (except the ending /)
  2. right click => Format Selection
Image
  1. comment gets deleted ❌
Image
const test =5;

Issue

Format Selection can delete comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: EditorRelated to the LSP server, editor experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions