getDirty() => isDirty()

This commit is contained in:
Benjamin Pasero 2016-08-15 08:25:11 +02:00
parent 1ae99cf1fb
commit 5e5deb9a8a

View file

@ -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
}
}