From 5e5deb9a8a04df1b7b4285c135a3e33e724ab550 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Mon, 15 Aug 2016 08:25:11 +0200 Subject: [PATCH] getDirty() => isDirty() --- src/vs/workbench/parts/files/common/textFileServices.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/parts/files/common/textFileServices.ts b/src/vs/workbench/parts/files/common/textFileServices.ts index da59a13e4c0..4b7099d40d7 100644 --- a/src/vs/workbench/parts/files/common/textFileServices.ts +++ b/src/vs/workbench/parts/files/common/textFileServices.ts @@ -82,13 +82,13 @@ export abstract class TextFileService implements ITextFileService { } private onWindowFocusLost(): void { - if (this.configuredAutoSaveOnWindowChange && this.getDirty().length) { + if (this.configuredAutoSaveOnWindowChange && this.isDirty()) { this.saveAll().done(null, errors.onUnexpectedError); // save dirty files when we change focus in the editor area } } private onEditorFocusChanged(): void { - if (this.configuredAutoSaveOnFocusChange && this.getDirty().length) { + if (this.configuredAutoSaveOnFocusChange && this.isDirty()) { this.saveAll().done(null, errors.onUnexpectedError); // save dirty files when we change focus in the editor area } }