@@ -152,7 +152,7 @@ export class Model implements IBranchProtectionProviderRegistry, IRemoteSourcePu
152
152
private _onDidChangePostCommitCommandsProviders = new EventEmitter < void > ( ) ;
153
153
readonly onDidChangePostCommitCommandsProviders = this . _onDidChangePostCommitCommandsProviders . event ;
154
154
155
- private branchProtectionProviders = new Map < Uri , Set < BranchProtectionProvider > > ( ) ;
155
+ private branchProtectionProviders = new Map < string , Set < BranchProtectionProvider > > ( ) ;
156
156
157
157
private _onDidChangeBranchProtectionProviders = new EventEmitter < Uri > ( ) ;
158
158
readonly onDidChangeBranchProtectionProviders = this . _onDidChangeBranchProtectionProviders . event ;
@@ -769,17 +769,17 @@ export class Model implements IBranchProtectionProviderRegistry, IRemoteSourcePu
769
769
registerBranchProtectionProvider ( root : Uri , provider : BranchProtectionProvider ) : Disposable {
770
770
const providerDisposables : Disposable [ ] = [ ] ;
771
771
772
- this . branchProtectionProviders . set ( root , ( this . branchProtectionProviders . get ( root ) ?? new Set ( ) ) . add ( provider ) ) ;
772
+ this . branchProtectionProviders . set ( root . toString ( ) , ( this . branchProtectionProviders . get ( root . toString ( ) ) ?? new Set ( ) ) . add ( provider ) ) ;
773
773
providerDisposables . push ( provider . onDidChangeBranchProtection ( uri => this . _onDidChangeBranchProtectionProviders . fire ( uri ) ) ) ;
774
774
775
775
this . _onDidChangeBranchProtectionProviders . fire ( root ) ;
776
776
777
777
return toDisposable ( ( ) => {
778
- const providers = this . branchProtectionProviders . get ( root ) ;
778
+ const providers = this . branchProtectionProviders . get ( root . toString ( ) ) ;
779
779
780
780
if ( providers && providers . has ( provider ) ) {
781
781
providers . delete ( provider ) ;
782
- this . branchProtectionProviders . set ( root , providers ) ;
782
+ this . branchProtectionProviders . set ( root . toString ( ) , providers ) ;
783
783
this . _onDidChangeBranchProtectionProviders . fire ( root ) ;
784
784
}
785
785
@@ -788,7 +788,7 @@ export class Model implements IBranchProtectionProviderRegistry, IRemoteSourcePu
788
788
}
789
789
790
790
getBranchProtectionProviders ( root : Uri ) : BranchProtectionProvider [ ] {
791
- return [ ...( this . branchProtectionProviders . get ( root ) ?? new Set ( ) ) . values ( ) ] ;
791
+ return [ ...( this . branchProtectionProviders . get ( root . toString ( ) ) ?? new Set ( ) ) . values ( ) ] ;
792
792
}
793
793
794
794
registerPostCommitCommandsProvider ( provider : PostCommitCommandsProvider ) : Disposable {
0 commit comments