Skip to content

Commit

Permalink
SCM - reveal resource in the source control tree (#213556)
Browse files Browse the repository at this point in the history
  • Loading branch information
lszomoru authored May 27, 2024
1 parent e010b36 commit a37e0f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/workbench/contrib/scm/browser/scmViewPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3149,6 +3149,8 @@ export class SCMViewPane extends ViewPane {

if (resource) {
await this.tree.expandTo(resource);
this.tree.reveal(resource);

this.tree.setSelection([resource]);
this.tree.setFocus([resource]);
return;
Expand Down

0 comments on commit a37e0f6

Please sign in to comment.