提交 09720aa1 编写于 作者: J Joao Moreno

fixes #53419

上级 bcdad4c7
......@@ -1285,7 +1285,8 @@ export class SCMViewlet extends PanelViewlet implements IViewModel, IViewsViewle
this.addPanels([{ panel, size: panel.minimumSize, index: index++ }]);
panel.repository.focus();
panel.onDidFocus(() => this.lastFocusedRepository = panel.repository);
if (newRepositoryPanels.length === 1 || this.lastFocusedRepository === panel.repository) {
if (this.lastFocusedRepository === panel.repository) {
panel.focus();
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册