Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/vs/workbench/common/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ export interface IViewDescriptorService {
getDefaultViewContainer(location: ViewContainerLocation): ViewContainer | undefined;
getViewContainerById(id: string): ViewContainer | null;
isViewContainerRemovedPermanently(id: string): boolean;
isGeneratedContainerId(id: string): boolean;
getDefaultViewContainerLocation(viewContainer: ViewContainer): ViewContainerLocation | null;
getViewContainerLocation(viewContainer: ViewContainer): ViewContainerLocation | null;
getViewContainersByLocation(location: ViewContainerLocation): ViewContainer[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class ViewDescriptorService extends Disposable implements IViewDescriptor
});
}

private isGeneratedContainerId(id: string): boolean {
isGeneratedContainerId(id: string): boolean {
return id.startsWith(ViewDescriptorService.COMMON_CONTAINER_ID_PREFIX);
}

Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/services/views/browser/viewsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class ViewsService extends Disposable implements IViewsService {
for (const viewDescriptor of views) {
const disposables = new DisposableStore();
disposables.add(this.registerOpenViewAction(viewDescriptor));
disposables.add(this.registerFocusViewAction(viewDescriptor, container.title));
disposables.add(this.registerFocusViewAction(viewDescriptor, this.viewDescriptorService.isGeneratedContainerId(container.id) ? undefined : container.title));
disposables.add(this.registerResetViewLocationAction(viewDescriptor));
this.viewDisposable.set(viewDescriptor, disposables);
}
Expand Down