@@ -52,7 +52,6 @@ async function init(
52
52
liveshareApiPromise : Promise < LiveShare | undefined > ,
53
53
showPRController : ShowPullRequest ,
54
54
reposManager : RepositoriesManager ,
55
- folderManagers : FolderRepositoryManager [ ] ,
56
55
) : Promise < void > {
57
56
context . subscriptions . push ( Logger ) ;
58
57
Logger . appendLine ( 'Git repository found, initializing review manager and pr tree view.' ) ;
@@ -84,7 +83,7 @@ async function init(
84
83
return ;
85
84
}
86
85
87
- const folderManager = folderManagers . find (
86
+ const folderManager = reposManager . folderManagers . find (
88
87
manager => manager . repository . rootUri . toString ( ) === e . repository . rootUri . toString ( ) ) ;
89
88
90
89
if ( ! folderManager || folderManager . gitHubRepositories . length === 0 ) {
@@ -145,7 +144,7 @@ async function init(
145
144
146
145
const activePrViewCoordinator = new WebviewViewCoordinator ( context ) ;
147
146
context . subscriptions . push ( activePrViewCoordinator ) ;
148
- const reviewManagers = folderManagers . map (
147
+ const reviewManagers = reposManager . folderManagers . map (
149
148
folderManager => new ReviewManager ( context , folderManager . repository , folderManager , telemetry , changesTree , showPRController , activePrViewCoordinator ) ,
150
149
) ;
151
150
context . subscriptions . push ( new FileTypeDecorationProvider ( reposManager , reviewManagers ) ) ;
@@ -363,7 +362,7 @@ async function deferredActivate(context: vscode.ExtensionContext, apiImpl: GitAp
363
362
const inMemPRFileSystemProvider = getInMemPRFileSystemProvider ( { reposManager, gitAPI : apiImpl , credentialStore } ) ! ;
364
363
context . subscriptions . push ( vscode . workspace . registerFileSystemProvider ( Schemes . Pr , inMemPRFileSystemProvider , { isReadonly : true } ) ) ;
365
364
366
- await init ( context , apiImpl , credentialStore , repositories , prTree , liveshareApiPromise , showPRController , reposManager , folderManagers ) ;
365
+ await init ( context , apiImpl , credentialStore , repositories , prTree , liveshareApiPromise , showPRController , reposManager ) ;
367
366
}
368
367
369
368
export async function deactivate ( ) {
0 commit comments