mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-27 04:07:13 +01:00
Read the correct setting for notebook TrimFinalNewLinesParticipant (#194419)
oof. correct the setting read
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user