mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
Fix #46075
This commit is contained in:
@@ -165,7 +165,7 @@ export class TrimFinalNewLinesParticipant implements ISaveParticipantParticipant
|
||||
currentLineIsEmptyOrWhitespace = strings.lastNonWhitespaceIndex(currentLine) === -1;
|
||||
}
|
||||
|
||||
const deletionRange = new Range(currentLineNumber + 1, 1, lineCount + 1, 1);
|
||||
const deletionRange = new Range(currentLineNumber + 1, 1, lineCount, 1);
|
||||
if (!deletionRange.isEmpty()) {
|
||||
model.pushEditOperations(prevSelection, [EditOperation.delete(deletionRange)], edits => prevSelection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user