提交 5e5deb9a 编写于 作者: B Benjamin Pasero

getDirty() => isDirty()

上级 1ae99cf1
......@@ -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
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册