Skip to content

Commit 7fa2c96

Browse files
committed
Fix hierarchy view focusing: it can be located in any view-container
1 parent 7ddc363 commit 7fa2c96

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/type-hierarchy.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,7 @@ class TypeHierarchyProvider implements
317317

318318
this._onDidChangeTreeData.fire(null);
319319

320-
// This focuses the "explorer" view container which contains the
321-
// type hierarchy view.
322-
vscode.commands.executeCommand('workbench.view.explorer');
320+
vscode.commands.executeCommand('clangd.typeHierarchyView.focus');
323321

324322
// This expands and focuses the type hierarchy view.
325323
// Focus the item on which the operation was invoked, not the

0 commit comments

Comments
 (0)