Skip to content

Commit 2d71ad3

Browse files
author
Benjamin Pasero
committed
fix indicator when auto save is turned on
1 parent 21c0931 commit 2d71ad3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/workbench/contrib/files/common/dirtyFilesIndicator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ export class DirtyFilesIndicator extends Disposable implements IWorkbenchContrib
4242
}
4343

4444
private onWorkingCopyDidChangeDirty(copy: IWorkingCopy): void {
45-
if (!!(copy.capabilities & WorkingCopyCapabilities.AutoSave) && this.autoSaveConfigurationService.getAutoSaveMode() === AutoSaveMode.AFTER_SHORT_DELAY) {
46-
return; // do not indicate changes to working copies that are auto saved after short delay
45+
const gotDirty = copy.isDirty();
46+
if (gotDirty && !!(copy.capabilities & WorkingCopyCapabilities.AutoSave) && this.autoSaveConfigurationService.getAutoSaveMode() === AutoSaveMode.AFTER_SHORT_DELAY) {
47+
return; // do not indicate dirty of working copies that are auto saved after short delay
4748
}
4849

49-
const gotDirty = copy.isDirty();
5050
if (gotDirty || this.hasDirtyCount) {
5151
this.updateActivityBadge();
5252
}

0 commit comments

Comments
 (0)