mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-25 16:07:52 -05:00
Fixed bug with toggleLineComment ends in a start line
This commit is contained in:
@@ -2077,6 +2077,11 @@ namespace ts {
|
||||
|
||||
// Push all text changes.
|
||||
for (let i = firstLine; i <= lastLine; i++) {
|
||||
// If the range is multiline and ends on a beginning of a line, don't comment/uncomment.
|
||||
if (firstLine !== lastLine && lineStarts[i] === textRange.end) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const lineTextStart = lineTextStarts.get(i.toString());
|
||||
|
||||
// If the line is not an empty line; otherwise no-op.
|
||||
|
||||
Reference in New Issue
Block a user