mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-21 13:36:49 +01:00
fixes #108073
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user