Skip to content

Toggle block/line comment don't handle blocks containing multiline comments correctly #29015

@tomasaschan

Description

@tomasaschan
  • VSCode Version: Code 1.13.0 (376c52b, 2017-06-08T16:43:13.058Z)
  • OS Version: Windows_NT ia32 10.0.15063
  • Extensions:
Extension Author Version
python donjayamanne 0.6.5
xml DotJoshJohnson 1.9.0
Ionide-fsharp Ionide 2.27.2
Go lukehoban 0.6.62
csharp ms-vscode 1.10.0
PowerShell ms-vscode 1.3.2
vscode-docker PeterJausovec 0.0.16
partial-diff ryu1kn 0.3.1
vsc-docker Zim 0.9.0

Steps to Reproduce:

  1. Create the following css file:
/* foo styles */
.foo {
    color: blue;
}

/* bar styles */
.bar {
    color: green;
}
  1. Select all text
  2. Use the menu options Toggle Line Comment or Toggle Block Comment from the Edit menu (or with keyboard shortcuts).

Expected behavior: all text in the file is validly commented out

Actual behavior: various kinds of syntax errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    editor-commentsEditor commenting/uncommenting commandsfeature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions