Skip to content

Commit

Permalink
refs #117960 (#117976)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten authored Mar 2, 2021
1 parent 62c69b3 commit 911868f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/browser/actions/layoutActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ export class MoveFocusedViewAction extends Action {
.map(viewletId => {
return {
id: viewletId,
label: this.viewDescriptorService.getViewContainerById(viewletId)!.title
label: this.viewDescriptorService.getViewContainerModel(this.viewDescriptorService.getViewContainerById(viewletId)!)!.title
};
}));

Expand All @@ -699,7 +699,7 @@ export class MoveFocusedViewAction extends Action {
.map(panel => {
return {
id: panel.id,
label: this.viewDescriptorService.getViewContainerById(panel.id)!.title
label: this.viewDescriptorService.getViewContainerModel(this.viewDescriptorService.getViewContainerById(panel.id)!)!.title
};
}));

Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/parts/views/viewsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,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, composite?.name ?? CATEGORIES.View));
disposables.add(this.registerFocusViewAction(viewDescriptor, composite?.name && composite.name !== composite.id ? composite.name : CATEGORIES.View));
disposables.add(this.registerResetViewLocationAction(viewDescriptor));
this.viewDisposable.set(viewDescriptor, disposables);
}
Expand Down

0 comments on commit 911868f

Please sign in to comment.