File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/files/common Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments