提交 34b0cede 编写于 作者: J João Moreno

fixes #108073

上级 ef5a9128
......@@ -1063,12 +1063,14 @@ class ViewModel {
}
focus() {
for (const repository of this.scmViewService.visibleRepositories) {
const widget = this.inputRenderer.getRenderedInputWidget(repository.input);
if (this.tree.getFocus().length === 0) {
for (const repository of this.scmViewService.visibleRepositories) {
const widget = this.inputRenderer.getRenderedInputWidget(repository.input);
if (widget) {
widget.focus();
return;
if (widget) {
widget.focus();
return;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册