Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Toggle Block Comment doesn't work if the open/close delimiters are the same #3057

@peterflynn

Description

@peterflynn
  1. Add this line to the CoffeeScript section of languages.json: "blockComment": ["###", "###"],
  2. Open a .coffee file with these contents:
foo = 42
bar = true
baz = "hello"
number = -42 if bar
square = (x) -> x * x
  1. Select the middle 3 lines and Toggle Block Comment
  2. Immediately Toggle Block Comment again
  3. Undo back to clean state
  4. Repeat step 3
  5. Select all the lines, including the ### lines, then Toggle Block Comment again
  6. Undo back to a clean state
  7. Select just one line (without including newlines) and Toggle Block Comment
  8. Either (a) immediately toggle again, or (b) re-select the whole line to include delimiters and then toggle

Result:
4 - closing delimiter isn't removed
7 - comment is wrapped in a second pair of ### lines
10 - one "#" is removed from the opening ###, but nothing else changes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions