File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/workbench/services/workingCopy/electron-sandbox Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ export class NativeWorkingCopyBackupTracker extends WorkingCopyBackupTracker imp
303
303
}
304
304
305
305
private doSaveAllBeforeShutdown ( modifiedWorkingCopies : IWorkingCopy [ ] , reason : SaveReason ) : Promise < void > ;
306
- private doSaveAllBeforeShutdown ( includeUntitled : boolean , reason : SaveReason ) : Promise < void > ;
306
+ private doSaveAllBeforeShutdown ( includeAllUntitled : boolean , reason : SaveReason ) : Promise < void > ;
307
307
private doSaveAllBeforeShutdown ( arg1 : IWorkingCopy [ ] | boolean , reason : SaveReason ) : Promise < void > {
308
308
const modifiedWorkingCopies = Array . isArray ( arg1 ) ? arg1 : this . workingCopyService . modifiedWorkingCopies . filter ( workingCopy => {
309
309
if ( arg1 === false && ( workingCopy . capabilities & WorkingCopyCapabilities . Untitled ) ) {
@@ -324,7 +324,7 @@ export class NativeWorkingCopyBackupTracker extends WorkingCopyBackupTracker imp
324
324
let result : boolean | undefined = undefined ;
325
325
if ( typeof arg1 === 'boolean' || modifiedWorkingCopies . length === this . workingCopyService . modifiedCount ) {
326
326
result = ( await this . editorService . saveAll ( {
327
- includeScratchpad : true ,
327
+ includeScratchpad : typeof arg1 === 'boolean' ? arg1 : true ,
328
328
includeUntitled : typeof arg1 === 'boolean' ? arg1 : true ,
329
329
...saveOptions
330
330
} ) ) . success ;
You can’t perform that action at this time.
0 commit comments