getDirty() => isDirty()
This commit is contained in:
parent
1ae99cf1fb
commit
5e5deb9a8a
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue