set the cursor before the function and put 2 slashes comment:
// function bla() { ... }
Expected:
EVERY LINE of the collapsed code block is commented out.
//function bla() {
// alert(0);
// }
Even if I know, that collapsing code serves merely for increasing readability - I see the closing braket on the same line with the opening braket, so visually it's a single line.
Happens:
Only [first] line gets commented. Collapsed code remains collapsed and no VISUAL reinforcement signalizes about any syntactical error.
//function bla() {
alert(0);
}
Proposition:
make two slashes in JS files before collapsed sections recognized and propagate to each line of collapsed block. And vice-versa for uncommenting.
Repro:
Expected: EVERY LINE of the collapsed code block is commented out.
Even if I know, that collapsing code serves merely for increasing readability - I see the closing braket on the same line with the opening braket, so visually it's a single line.
Happens: Only [first] line gets commented. Collapsed code remains collapsed and no VISUAL reinforcement signalizes about any syntactical error.
Proposition: make two slashes in JS files before collapsed sections recognized and propagate to each line of collapsed block. And vice-versa for uncommenting.