@@ -30,6 +30,7 @@ import { ITextModel } from '../../../editor/common/model.js';
30
30
import { structuralEquals } from '../../../base/common/equals.js' ;
31
31
import { historyItemBaseRefColor , historyItemRefColor , historyItemRemoteRefColor } from '../../contrib/scm/browser/scmHistory.js' ;
32
32
import { ColorIdentifier } from '../../../platform/theme/common/colorUtils.js' ;
33
+ import { ILogService } from '../../../platform/log/common/log.js' ;
33
34
34
35
function getIconFromIconDto ( iconDto ?: UriComponents | { light : UriComponents ; dark : UriComponents } | ThemeIcon ) : URI | { light : URI ; dark : URI } | ThemeIcon | undefined {
35
36
if ( iconDto === undefined ) {
@@ -312,6 +313,7 @@ class MainThreadSCMProvider implements ISCMProvider {
312
313
private readonly _rootUri : URI | undefined ,
313
314
private readonly _iconPath : URI | { light : URI ; dark : URI } | ThemeIcon | undefined ,
314
315
private readonly _inputBoxTextModel : ITextModel ,
316
+ private readonly _logService : ILogService ,
315
317
private readonly _quickDiffService : IQuickDiffService ,
316
318
private readonly _uriIdentService : IUriIdentityService ,
317
319
private readonly _workspaceContextService : IWorkspaceContextService
@@ -346,6 +348,8 @@ class MainThreadSCMProvider implements ISCMProvider {
346
348
}
347
349
348
350
if ( typeof features . statusBarCommands !== 'undefined' ) {
351
+ this . _logService . trace ( '[MainThreadSCMProvider][$updateSourceControl] rootUri: ' , this . rootUri ?. toString ( ) ) ;
352
+ this . _logService . trace ( '[MainThreadSCMProvider][$updateSourceControl] statusBarCommands: ' , features . statusBarCommands ) ;
349
353
this . _statusBarCommands . set ( features . statusBarCommands , undefined ) ;
350
354
}
351
355
@@ -552,6 +556,7 @@ export class MainThreadSCM implements MainThreadSCMShape {
552
556
@ISCMService private readonly scmService : ISCMService ,
553
557
@ISCMViewService private readonly scmViewService : ISCMViewService ,
554
558
@ILanguageService private readonly languageService : ILanguageService ,
559
+ @ILogService private readonly logService : ILogService ,
555
560
@IModelService private readonly modelService : IModelService ,
556
561
@ITextModelService private readonly textModelService : ITextModelService ,
557
562
@IQuickDiffService private readonly quickDiffService : IQuickDiffService ,
@@ -577,7 +582,7 @@ export class MainThreadSCM implements MainThreadSCMShape {
577
582
this . _repositoryBarriers . set ( handle , new Barrier ( ) ) ;
578
583
579
584
const inputBoxTextModelRef = await this . textModelService . createModelReference ( URI . revive ( inputBoxDocumentUri ) ) ;
580
- const provider = new MainThreadSCMProvider ( this . _proxy , handle , parentHandle , id , label , rootUri ? URI . revive ( rootUri ) : undefined , getIconFromIconDto ( iconPath ) , inputBoxTextModelRef . object . textEditorModel , this . quickDiffService , this . _uriIdentService , this . workspaceContextService ) ;
585
+ const provider = new MainThreadSCMProvider ( this . _proxy , handle , parentHandle , id , label , rootUri ? URI . revive ( rootUri ) : undefined , getIconFromIconDto ( iconPath ) , inputBoxTextModelRef . object . textEditorModel , this . logService , this . quickDiffService , this . _uriIdentService , this . workspaceContextService ) ;
581
586
const repository = this . scmService . registerSCMProvider ( provider ) ;
582
587
this . _repositories . set ( handle , repository ) ;
583
588
0 commit comments