From b47db66826126a19efc55fcd8509c90f049d9b50 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Thu, 9 Jan 2020 11:31:24 +0100 Subject: [PATCH] Focus on empty custom trees to improve sidebar indicator Part of #86686 --- src/vs/workbench/browser/parts/views/customView.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/workbench/browser/parts/views/customView.ts b/src/vs/workbench/browser/parts/views/customView.ts index 157494928b5..6d582d72c39 100644 --- a/src/vs/workbench/browser/parts/views/customView.ts +++ b/src/vs/workbench/browser/parts/views/customView.ts @@ -357,6 +357,8 @@ export class CustomTreeView extends Disposable implements ITreeView { // Pass Focus to Viewer this.tree.domFocus(); + } else if (this.tree) { + this.tree.domFocus(); } else { this.domNode.focus(); } -- GitLab