@@ -20,7 +20,7 @@ import type { ViewNode } from './nodes/abstract/viewNode';
2020import { BranchesNode } from './nodes/branchesNode' ;
2121import { BranchNode } from './nodes/branchNode' ;
2222import { BranchOrTagFolderNode } from './nodes/branchOrTagFolderNode' ;
23- import type { GroupedViewContext } from './viewBase' ;
23+ import type { GroupedViewContext , RevealOptions } from './viewBase' ;
2424import { ViewBase } from './viewBase' ;
2525import type { CopyNodeCommandArgs } from './viewCommands' ;
2626import { registerViewCommand } from './viewCommands' ;
@@ -281,14 +281,7 @@ export class BranchesView extends ViewBase<'branches', BranchesViewNode, Branche
281281 }
282282
283283 @gate ( ( ) => '' )
284- async revealBranch (
285- branch : GitBranchReference ,
286- options ?: {
287- select ?: boolean ;
288- focus ?: boolean ;
289- expand ?: boolean | number ;
290- } ,
291- ) : Promise < ViewNode | undefined > {
284+ async revealBranch ( branch : GitBranchReference , options ?: RevealOptions ) : Promise < ViewNode | undefined > {
292285 return window . withProgress (
293286 {
294287 location : ProgressLocation . Notification ,
@@ -310,14 +303,7 @@ export class BranchesView extends ViewBase<'branches', BranchesViewNode, Branche
310303 }
311304
312305 @gate ( ( ) => '' )
313- async revealCommit (
314- commit : GitRevisionReference ,
315- options ?: {
316- select ?: boolean ;
317- focus ?: boolean ;
318- expand ?: boolean | number ;
319- } ,
320- ) : Promise < ViewNode | undefined > {
306+ async revealCommit ( commit : GitRevisionReference , options ?: RevealOptions ) : Promise < ViewNode | undefined > {
321307 return window . withProgress (
322308 {
323309 location : ProgressLocation . Notification ,
@@ -339,10 +325,7 @@ export class BranchesView extends ViewBase<'branches', BranchesViewNode, Branche
339325 }
340326
341327 @gate ( ( ) => '' )
342- async revealRepository (
343- repoPath : string ,
344- options ?: { select ?: boolean ; focus ?: boolean ; expand ?: boolean | number } ,
345- ) : Promise < ViewNode | undefined > {
328+ async revealRepository ( repoPath : string , options ?: RevealOptions ) : Promise < ViewNode | undefined > {
346329 const node = await this . findNode ( n => n instanceof RepositoryFolderNode && n . repoPath === repoPath , {
347330 maxDepth : 1 ,
348331 canTraverse : n => n instanceof BranchesViewNode || n instanceof RepositoryFolderNode ,
0 commit comments