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

Fix #59926

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