@@ -14,7 +14,7 @@ import { CommitOptions, ForcePushMode, Git, Stash } from './git';
1414import { Model } from './model' ;
1515import { Repository , Resource , ResourceGroupType } from './repository' ;
1616import { applyLineChanges , getModifiedRange , intersectDiffWithRange , invertLineChange , toLineRanges } from './staging' ;
17- import { fromGitUri , toGitFSUri } from './uri' ;
17+ import { fromGitUri , toGitUri } from './uri' ;
1818import { grep , isDescendant , pathEquals } from './util' ;
1919
2020const localize = nls . loadMessageBundle ( ) ;
@@ -291,7 +291,7 @@ export class CommandCenter {
291291 const repository = this . model . getRepositoryForSubmodule ( resource . resourceUri ) ;
292292
293293 if ( repository ) {
294- right = toGitFSUri ( resource . resourceUri , resource . resourceGroupType === ResourceGroupType . Index ? 'index' : 'wt' , { submoduleOf : repository . root } ) ;
294+ right = toGitUri ( resource . resourceUri , resource . resourceGroupType === ResourceGroupType . Index ? 'index' : 'wt' , { submoduleOf : repository . root } ) ;
295295 }
296296 } else {
297297 if ( resource . type !== Status . DELETED_BY_THEM ) {
@@ -334,7 +334,7 @@ export class CommandCenter {
334334 const repository = this . model . getRepository ( uri ) ;
335335
336336 if ( ! repository ) {
337- return toGitFSUri ( uri , ref ) ;
337+ return toGitUri ( uri , ref ) ;
338338 }
339339
340340 try {
@@ -350,7 +350,7 @@ export class CommandCenter {
350350 const { mimetype } = await repository . detectObjectType ( object ) ;
351351
352352 if ( mimetype === 'text/plain' ) {
353- return toGitFSUri ( uri , ref ) ;
353+ return toGitUri ( uri , ref ) ;
354354 }
355355
356356 if ( size > 1000000 ) { // 1 MB
@@ -365,7 +365,7 @@ export class CommandCenter {
365365 return Uri . parse ( `data:;label:${ path . basename ( uri . fsPath ) } ;description:${ gitRef } ,` ) ;
366366
367367 } catch ( err ) {
368- return toGitFSUri ( uri , ref ) ;
368+ return toGitUri ( uri , ref ) ;
369369 }
370370 }
371371
@@ -1012,7 +1012,7 @@ export class CommandCenter {
10121012 return ;
10131013 }
10141014
1015- const originalUri = toGitFSUri ( modifiedUri , '~' ) ;
1015+ const originalUri = toGitUri ( modifiedUri , '~' ) ;
10161016 const originalDocument = await workspace . openTextDocument ( originalUri ) ;
10171017 const result = applyLineChanges ( originalDocument , modifiedDocument , changes ) ;
10181018
@@ -1060,7 +1060,7 @@ export class CommandCenter {
10601060 return ;
10611061 }
10621062
1063- const originalUri = toGitFSUri ( modifiedUri , '~' ) ;
1063+ const originalUri = toGitUri ( modifiedUri , '~' ) ;
10641064 const originalDocument = await workspace . openTextDocument ( originalUri ) ;
10651065 const selectionsBeforeRevert = textEditor . selections ;
10661066 const visibleRangesBeforeRevert = textEditor . visibleRanges ;
@@ -1127,7 +1127,7 @@ export class CommandCenter {
11271127 return ;
11281128 }
11291129
1130- const originalUri = toGitFSUri ( modifiedUri , 'HEAD' ) ;
1130+ const originalUri = toGitUri ( modifiedUri , 'HEAD' ) ;
11311131 const originalDocument = await workspace . openTextDocument ( originalUri ) ;
11321132 const selectedLines = toLineRanges ( textEditor . selections , modifiedDocument ) ;
11331133 const selectedDiffs = diffs
0 commit comments