@@ -107,14 +107,14 @@ export class GutterChangesAnnotationProvider extends AnnotationProviderBase<Chan
107107
108108 let commit : GitCommit | undefined ;
109109
110- const commitsProvider = this . container . git . commits ( this . trackedDocument . uri . repoPath ! ) ;
110+ const svc = this . container . git . getRepositoryService ( this . trackedDocument . uri . repoPath ! ) ;
111111
112112 let localChanges = rev1 == null && rev2 == null ;
113113 if ( localChanges ) {
114- let rev = await commitsProvider . getOldestUnpushedShaForPath ( this . trackedDocument . uri ) ;
114+ let rev = await svc . commits . getOldestUnpushedShaForPath ( this . trackedDocument . uri ) ;
115115 if ( rev != null ) {
116116 rev = `${ rev } ^` ;
117- commit = await commitsProvider . getCommitForFile ( this . trackedDocument . uri , rev ) ;
117+ commit = await svc . commits . getCommitForFile ( this . trackedDocument . uri , rev ) ;
118118 if ( commit != null ) {
119119 if ( rev2 != null ) {
120120 rev2 = rev ;
@@ -126,15 +126,10 @@ export class GutterChangesAnnotationProvider extends AnnotationProviderBase<Chan
126126 localChanges = false ;
127127 }
128128 } else {
129- const status = await this . container . git
130- . status ( this . trackedDocument . uri . repoPath ! )
131- . getStatusForFile ?.( this . trackedDocument . uri ) ;
132- const commits = status ?. getPseudoCommits (
133- this . container ,
134- await this . container . git . config ( this . trackedDocument . uri . repoPath ! ) . getCurrentUser ( ) ,
135- ) ;
129+ const status = await svc . status . getStatusForFile ?.( this . trackedDocument . uri ) ;
130+ const commits = status ?. getPseudoCommits ( this . container , await svc . config . getCurrentUser ( ) ) ;
136131 if ( commits ?. length ) {
137- commit = await commitsProvider . getCommitForFile ( this . trackedDocument . uri ) ;
132+ commit = await svc . commits . getCommitForFile ( this . trackedDocument . uri ) ;
138133 rev1 = 'HEAD' ;
139134 } else if ( this . trackedDocument . dirty ) {
140135 rev1 = 'HEAD' ;
@@ -145,7 +140,7 @@ export class GutterChangesAnnotationProvider extends AnnotationProviderBase<Chan
145140 }
146141
147142 if ( ! localChanges ) {
148- commit = await commitsProvider . getCommitForFile ( this . trackedDocument . uri , rev2 ?? rev1 ) ;
143+ commit = await svc . commits . getCommitForFile ( this . trackedDocument . uri , rev2 ?? rev1 ) ;
149144
150145 if ( commit != null ) {
151146 if ( rev2 != null ) {
0 commit comments