From 4ceb99adc5655aebc18cdeff64e1a7ea77df14d3 Mon Sep 17 00:00:00 2001 From: Michael Lively Date: Thu, 28 Sep 2023 10:08:51 -0700 Subject: [PATCH] Read the correct setting for notebook `TrimFinalNewLinesParticipant` (#194419) oof. correct the setting read --- .../browser/contrib/saveParticipants/saveParticipants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.ts b/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.ts index dc42987bbce..2934e031ddb 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.ts @@ -177,7 +177,7 @@ class TrimFinalNewLinesParticipant implements IStoredFileWorkingCopySaveParticip ) { } async participate(workingCopy: IStoredFileWorkingCopy, context: { reason: SaveReason }, progress: IProgress, _token: CancellationToken): Promise { - if (this.configurationService.getValue('files.trimTrailingWhitespace')) { + if (this.configurationService.getValue('files.trimFinalNewlines')) { this.doTrimFinalNewLines(workingCopy, context.reason === SaveReason.AUTO, progress); } }