diff --git a/src/vs/workbench/browser/parts/views/viewPaneContainer.ts b/src/vs/workbench/browser/parts/views/viewPaneContainer.ts index ca89368869181..acd6638aec2f1 100644 --- a/src/vs/workbench/browser/parts/views/viewPaneContainer.ts +++ b/src/vs/workbench/browser/parts/views/viewPaneContainer.ts @@ -345,7 +345,7 @@ export abstract class ViewPane extends Pane implements IView { } if (this.progressIndicator === undefined) { - this.progressIndicator = this.instantiationService.createInstance(CompositeProgressIndicator, assertIsDefined(this.progressBar), this.id, this.isVisible(), { hideWhenInactive: true }); + this.progressIndicator = this.instantiationService.createInstance(CompositeProgressIndicator, assertIsDefined(this.progressBar), this.id, this.isVisible(), { exclusiveProgressBar: true }); } return this.progressIndicator; } diff --git a/src/vs/workbench/services/progress/browser/progressIndicator.ts b/src/vs/workbench/services/progress/browser/progressIndicator.ts index 91d42a15ff456..468ddae9308dd 100644 --- a/src/vs/workbench/services/progress/browser/progressIndicator.ts +++ b/src/vs/workbench/services/progress/browser/progressIndicator.ts @@ -198,7 +198,7 @@ export class CompositeProgressIndicator extends CompositeScope implements IProgr progressbar: ProgressBar, scopeId: string, isActive: boolean, - private readonly options: { hideWhenInactive?: boolean } | undefined, + private readonly options: { exclusiveProgressBar?: boolean } | undefined, @IViewletService viewletService: IViewletService, @IPanelService panelService: IPanelService, @IViewsService viewsService: IViewsService @@ -212,7 +212,7 @@ export class CompositeProgressIndicator extends CompositeScope implements IProgr onScopeDeactivated(): void { this.isActive = false; - if (this.options?.hideWhenInactive) { + if (this.options?.exclusiveProgressBar) { this.progressbar.stop().hide(); } } @@ -314,7 +314,7 @@ export class CompositeProgressIndicator extends CompositeScope implements IProgr done: () => { this.progressState = ProgressIndicatorState.Done; - if (this.isActive || this.options?.hideWhenInactive) { + if (this.isActive || this.options?.exclusiveProgressBar) { this.progressbar.stop().hide(); } } @@ -345,7 +345,7 @@ export class CompositeProgressIndicator extends CompositeScope implements IProgr // The while promise is either null or equal the promise we last hooked on this.progressState = ProgressIndicatorState.None; - if (this.isActive || this.options?.hideWhenInactive) { + if (this.isActive || this.options?.exclusiveProgressBar) { this.progressbar.stop().hide(); } }