Skip to content

Commit 4ceb99a

Browse files
authored
Read the correct setting for notebook TrimFinalNewLinesParticipant (microsoft#194419)
oof. correct the setting read
1 parent 096a6e4 commit 4ceb99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class TrimFinalNewLinesParticipant implements IStoredFileWorkingCopySaveParticip
177177
) { }
178178

179179
async participate(workingCopy: IStoredFileWorkingCopy<IStoredFileWorkingCopyModel>, context: { reason: SaveReason }, progress: IProgress<IProgressStep>, _token: CancellationToken): Promise<void> {
180-
if (this.configurationService.getValue<boolean>('files.trimTrailingWhitespace')) {
180+
if (this.configurationService.getValue<boolean>('files.trimFinalNewlines')) {
181181
this.doTrimFinalNewLines(workingCopy, context.reason === SaveReason.AUTO, progress);
182182
}
183183
}

0 commit comments

Comments
 (0)