Fixes #41925: ERR Illegal value 0 for lineNumber

This commit is contained in:
Alex Dima
2018-01-22 12:23:50 +01:00
parent a1b0cc77c9
commit d73725c384

View File

@@ -145,7 +145,7 @@ export class TrimFinalNewLinesParticipant implements ISaveParticipantParticipant
const lineCount = model.getLineCount();
// Do not insert new line if file does not end with new line
if (!lineCount) {
if (lineCount === 1) {
return;
}