@@ -30,6 +30,7 @@ import { ITextModel } from '../../../editor/common/model.js';
3030import { structuralEquals } from '../../../base/common/equals.js' ;
3131import { historyItemBaseRefColor , historyItemRefColor , historyItemRemoteRefColor } from '../../contrib/scm/browser/scmHistory.js' ;
3232import { ColorIdentifier } from '../../../platform/theme/common/colorUtils.js' ;
33+ import { ILogService } from '../../../platform/log/common/log.js' ;
3334
3435function getIconFromIconDto ( iconDto ?: UriComponents | { light : UriComponents ; dark : UriComponents } | ThemeIcon ) : URI | { light : URI ; dark : URI } | ThemeIcon | undefined {
3536 if ( iconDto === undefined ) {
@@ -312,6 +313,7 @@ class MainThreadSCMProvider implements ISCMProvider {
312313 private readonly _rootUri : URI | undefined ,
313314 private readonly _iconPath : URI | { light : URI ; dark : URI } | ThemeIcon | undefined ,
314315 private readonly _inputBoxTextModel : ITextModel ,
316+ private readonly _logService : ILogService ,
315317 private readonly _quickDiffService : IQuickDiffService ,
316318 private readonly _uriIdentService : IUriIdentityService ,
317319 private readonly _workspaceContextService : IWorkspaceContextService
@@ -346,6 +348,8 @@ class MainThreadSCMProvider implements ISCMProvider {
346348 }
347349
348350 if ( typeof features . statusBarCommands !== 'undefined' ) {
351+ this . _logService . trace ( '[MainThreadSCMProvider][$updateSourceControl] rootUri: ' , this . rootUri ?. toString ( ) ) ;
352+ this . _logService . trace ( '[MainThreadSCMProvider][$updateSourceControl] statusBarCommands: ' , features . statusBarCommands ) ;
349353 this . _statusBarCommands . set ( features . statusBarCommands , undefined ) ;
350354 }
351355
@@ -552,6 +556,7 @@ export class MainThreadSCM implements MainThreadSCMShape {
552556 @ISCMService private readonly scmService : ISCMService ,
553557 @ISCMViewService private readonly scmViewService : ISCMViewService ,
554558 @ILanguageService private readonly languageService : ILanguageService ,
559+ @ILogService private readonly logService : ILogService ,
555560 @IModelService private readonly modelService : IModelService ,
556561 @ITextModelService private readonly textModelService : ITextModelService ,
557562 @IQuickDiffService private readonly quickDiffService : IQuickDiffService ,
@@ -577,7 +582,7 @@ export class MainThreadSCM implements MainThreadSCMShape {
577582 this . _repositoryBarriers . set ( handle , new Barrier ( ) ) ;
578583
579584 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 ) ;
581586 const repository = this . scmService . registerSCMProvider ( provider ) ;
582587 this . _repositories . set ( handle , repository ) ;
583588
0 commit comments