diff --git a/src/vs/workbench/contrib/files/browser/views/emptyView.ts b/src/vs/workbench/contrib/files/browser/views/emptyView.ts index d1b2af81a5fb8..d5d9984613c00 100644 --- a/src/vs/workbench/contrib/files/browser/views/emptyView.ts +++ b/src/vs/workbench/contrib/files/browser/views/emptyView.ts @@ -135,12 +135,7 @@ export class EmptyView extends ViewletPane { } focus(): void { - this.focusBody(); + this.button.element.focus(); } - focusBody(): void { - if (this.button) { - this.button.element.focus(); - } - } }