@@ -79,7 +79,7 @@ class MergeOutputProvider implements vscode.FileSystemProvider {
7979 clear ( ) : void {
8080 const fileEvents : vscode . FileChangeEvent [ ] = [ ] ;
8181 for ( const file of this . _mergedFiles . keys ( ) ) {
82- fileEvents . push ( { uri : vscode . Uri . from ( { scheme : Schemes . MergeOutput , path : file } ) , type : vscode . FileChangeType . Changed } ) ;
82+ fileEvents . push ( { uri : vscode . Uri . from ( { scheme : this . _conflictResolutionModel . mergeScheme , path : file } ) , type : vscode . FileChangeType . Changed } ) ;
8383 this . updateFile ( file , buffer . Buffer . from ( ORIGINAL_FILE ) ) ;
8484 }
8585 this . _onDidChangeFile . fire ( fileEvents ) ;
@@ -124,7 +124,7 @@ export class ConflictResolutionCoordinator {
124124
125125 private register ( ) : void {
126126 this . _disposables . push ( vscode . workspace . registerFileSystemProvider ( Schemes . GithubPr , new GitHubContentProvider ( this . _githubRepositories ) , { isReadonly : true } ) ) ;
127- this . _disposables . push ( vscode . workspace . registerFileSystemProvider ( Schemes . MergeOutput , this . _mergeOutputProvider ) ) ;
127+ this . _disposables . push ( vscode . workspace . registerFileSystemProvider ( this . _conflictResolutionModel . mergeScheme , this . _mergeOutputProvider ) ) ;
128128 this . _disposables . push ( vscode . commands . registerCommand ( 'pr.resolveConflict' , ( conflict : Conflict ) => {
129129 return this . openConflict ( conflict ) ;
130130 } ) ) ;
@@ -184,7 +184,7 @@ export class ConflictResolutionCoordinator {
184184 const tabsToClose : vscode . Tab [ ] = [ ] ;
185185 for ( const group of vscode . window . tabGroups . all ) {
186186 for ( const tab of group . tabs ) {
187- if ( ( tab . input instanceof vscode . TabInputTextMerge ) && ( tab . input . result . scheme === Schemes . MergeOutput ) ) {
187+ if ( ( tab . input instanceof vscode . TabInputTextMerge ) && ( tab . input . result . scheme === this . _conflictResolutionModel . mergeScheme ) ) {
188188 tabsToClose . push ( tab ) ;
189189 }
190190 }
0 commit comments