提交 3a0d4064 编写于 作者: S Sandeep Somavarapu

Fix #59926

上级 20130d49
......@@ -546,7 +546,7 @@ export class ViewsService extends Disposable implements IViewsService {
if (viewDescriptor) {
const viewletDescriptor = this.viewletService.getViewlet(viewDescriptor.container.id);
if (viewletDescriptor) {
return this.viewletService.openViewlet(viewletDescriptor.id)
return this.viewletService.openViewlet(viewletDescriptor.id, focus)
.then((viewlet: IViewsViewlet) => {
if (viewlet && viewlet.openView) {
return viewlet.openView(id, focus);
......
......@@ -1487,7 +1487,9 @@ export class SCMViewlet extends PanelViewlet implements IViewModel, IViewsViewle
}
panel = this.panels.filter(panel => panel instanceof ViewletPanel && panel.id === id)[0];
panel.setExpanded(true);
if (focus) {
panel.focus();
}
return TPromise.as(panel);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册