Skip to content

CSS: toggle line comment is not preserving #15

Closed

Description

Have a CSS block like this:

.monaco-workbench > .part > .status {
    display: none; /* Parts have to opt in to show title area */
}

Put the cursor to the body of the declaration and toggle line comment twice, you end up with this:

.monaco-workbench > .part > .status {
    /*display: none;  Parts have to opt in to show title area */
}

Activity

  1. added
    bug
    on Nov 16, 2015
  2. alexdima commented on Nov 18, 2015

    @alexdima
    Member

    The toggle line comment does the following for languages which don't support line comments:

    • if there is any block comment on the line, it gets removed
    • if there is no block comment on the line, the line gets surrounded in a block comment.
  3. removed
    bug
    on Dec 14, 2015
  4. added
    *question
    on May 27, 2016
  5. locked and limited conversation to collaborators on Nov 18, 2017
  6. added a commit that references this issue on Sep 19, 2022
    78968bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*question

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions