Read the correct setting for notebook TrimFinalNewLinesParticipant (#194419)

oof. correct the setting read
This commit is contained in:
Michael Lively
2023-09-28 18:08:51 +01:00
committed by GitHub
parent 096a6e425a
commit 4ceb99adc5
@@ -177,7 +177,7 @@ class TrimFinalNewLinesParticipant implements IStoredFileWorkingCopySaveParticip
) { }
async participate(workingCopy: IStoredFileWorkingCopy<IStoredFileWorkingCopyModel>, context: { reason: SaveReason }, progress: IProgress<IProgressStep>, _token: CancellationToken): Promise<void> {
if (this.configurationService.getValue<boolean>('files.trimTrailingWhitespace')) {
if (this.configurationService.getValue<boolean>('files.trimFinalNewlines')) {
this.doTrimFinalNewLines(workingCopy, context.reason === SaveReason.AUTO, progress);
}
}