@@ -17,7 +17,7 @@ import { sortedDiff } from 'vs/base/common/arrays';
1717import { comparePaths } from 'vs/base/common/comparers' ;
1818import * as vscode from 'vscode' ;
1919import { ISplice } from 'vs/base/common/sequence' ;
20- import { log , LogLevel } from 'vs/platform/log/common/log' ;
20+ import { ILogService } from 'vs/platform/log/common/log' ;
2121
2222type ProviderHandle = number ;
2323type GroupHandle = number ;
@@ -444,7 +444,8 @@ export class ExtHostSCM {
444444
445445 constructor (
446446 mainContext : IMainContext ,
447- private _commands : ExtHostCommands
447+ private _commands : ExtHostCommands ,
448+ @ILogService private logService : ILogService
448449 ) {
449450 this . _proxy = mainContext . get ( MainContext . MainThreadSCM ) ;
450451
@@ -487,8 +488,9 @@ export class ExtHostSCM {
487488 } ) ;
488489 }
489490
490- @log ( LogLevel . Trace , 'ExtHostSCM' , ( msg , extension , id , label , rootUri ) => `${ msg } (${ extension . id } , ${ id } , ${ label } , ${ rootUri } )` )
491491 createSourceControl ( extension : IExtensionDescription , id : string , label : string , rootUri : vscode . Uri | undefined ) : vscode . SourceControl {
492+ this . logService . trace ( 'ExtHostSCM#createSourceControl' , extension . id , id , label , rootUri ) ;
493+
492494 const handle = ExtHostSCM . _handlePool ++ ;
493495 const sourceControl = new ExtHostSourceControl ( this . _proxy , this . _commands , id , label , rootUri ) ;
494496 this . _sourceControls . set ( handle , sourceControl ) ;
@@ -501,17 +503,19 @@ export class ExtHostSCM {
501503 }
502504
503505 // Deprecated
504- @log ( LogLevel . Trace , 'ExtHostSCM' , ( msg , extension ) => `${ msg } (${ extension . id } )` )
505506 getLastInputBox ( extension : IExtensionDescription ) : ExtHostSCMInputBox {
507+ this . logService . trace ( 'ExtHostSCM#getLastInputBox' , extension . id ) ;
508+
506509 const sourceControls = this . _sourceControlsByExtension . get ( extension . id ) ;
507510 const sourceControl = sourceControls && sourceControls [ sourceControls . length - 1 ] ;
508511 const inputBox = sourceControl && sourceControl . inputBox ;
509512
510513 return inputBox ;
511514 }
512515
513- @log ( LogLevel . Trace , 'ExtHostSCM' , ( msg , handle , uri ) => `${ msg } (${ handle } , ${ uri } )` )
514516 $provideOriginalResource ( sourceControlHandle : number , uri : URI ) : TPromise < URI > {
517+ this . logService . trace ( 'ExtHostSCM#$provideOriginalResource' , sourceControlHandle , uri ) ;
518+
515519 const sourceControl = this . _sourceControls . get ( sourceControlHandle ) ;
516520
517521 if ( ! sourceControl || ! sourceControl . quickDiffProvider ) {
@@ -524,8 +528,9 @@ export class ExtHostSCM {
524528 } ) ;
525529 }
526530
527- @log ( LogLevel . Trace , 'ExtHostSCM' , ( msg , handle ) => `${ msg } (${ handle } )` )
528531 $onInputBoxValueChange ( sourceControlHandle : number , value : string ) : TPromise < void > {
532+ this . logService . trace ( 'ExtHostSCM#$onInputBoxValueChange' , sourceControlHandle ) ;
533+
529534 const sourceControl = this . _sourceControls . get ( sourceControlHandle ) ;
530535
531536 if ( ! sourceControl ) {
@@ -536,8 +541,9 @@ export class ExtHostSCM {
536541 return TPromise . as ( null ) ;
537542 }
538543
539- @log ( LogLevel . Trace , 'ExtHostSCM' , ( msg , h1 , h2 , h3 ) => `${ msg } (${ h1 } , ${ h2 } , ${ h3 } )` )
540544 async $executeResourceCommand ( sourceControlHandle : number , groupHandle : number , handle : number ) : TPromise < void > {
545+ this . logService . trace ( 'ExtHostSCM#$executeResourceCommand' , sourceControlHandle , groupHandle , handle ) ;
546+
541547 const sourceControl = this . _sourceControls . get ( sourceControlHandle ) ;
542548
543549 if ( ! sourceControl ) {
0 commit comments