@@ -105,7 +105,7 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
105105 etagSubscription : this . container . subscription . etag ,
106106 } ;
107107
108- if ( this . host . isHost ( 'view' ) ) {
108+ if ( this . host . is ( 'view' ) ) {
109109 this . host . description = proBadge ;
110110 }
111111 }
@@ -165,15 +165,15 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
165165 uri = arg . uri ;
166166 } else if ( isSerializedState < State > ( arg ) ) {
167167 this . _context . config = { ...this . _context . config , ...arg . state . config } ;
168- if ( this . host . isHost ( 'editor' ) ) {
168+ if ( this . host . is ( 'editor' ) ) {
169169 uri = arg . state . uri != null ? Uri . parse ( arg . state . uri ) : undefined ;
170170 }
171171 }
172172 }
173173
174174 uri ??= await ensureWorkingUri ( this . container , this . activeTabUri ) ;
175175 await this . updateUri ( uri , true ) ;
176- if ( this . host . isHost ( 'editor' ) ) {
176+ if ( this . host . is ( 'editor' ) ) {
177177 this . fireFileSelected ( ) ;
178178 }
179179
@@ -193,7 +193,7 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
193193 registerCommands ( ) : Disposable [ ] {
194194 const commands : Disposable [ ] = [ ] ;
195195
196- if ( this . host . isHost ( 'view' ) ) {
196+ if ( this . host . is ( 'view' ) ) {
197197 commands . push (
198198 registerCommand ( `${ this . host . id } .refresh` , ( ) => this . host . refresh ( true ) , this ) ,
199199 registerCommand (
@@ -213,7 +213,7 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
213213 }
214214
215215 onActiveChanged ( active : boolean ) : void {
216- if ( active && this . host . isHost ( 'editor' ) ) {
216+ if ( active && this . host . is ( 'editor' ) ) {
217217 this . fireFileSelected ( ) ;
218218 }
219219 }
@@ -228,7 +228,7 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
228228
229229 this . _repositorySubscription ?. resume ( ) ;
230230
231- if ( this . host . isHost ( 'editor' ) ) {
231+ if ( this . host . is ( 'editor' ) ) {
232232 this . _disposable = Disposable . from (
233233 this . container . subscription . onDidChange ( this . onSubscriptionChanged , this ) ,
234234 ) ;
@@ -493,7 +493,7 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
493493 const repository : State [ 'repository' ] =
494494 repo != null ? { id : repo . id , uri : repo . uri . toString ( ) , name : repo . name , ref : ref } : undefined ;
495495
496- if ( this . host . isHost ( 'editor' ) ) {
496+ if ( this . host . is ( 'editor' ) ) {
497497 this . host . title = `Visual ${ itemType === 'folder' ? 'Folder' : 'File' } History${ title ? `: ${ title } ` : '' } ` ;
498498 } else {
499499 this . host . description = title || proBadge ;
@@ -653,7 +653,7 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
653653 preview : true ,
654654 // Since the multi-diff editor doesn't support choosing the view column, we need to do it manually so passing in our view column
655655 sourceViewColumn : this . host . viewColumn ,
656- viewColumn : this . host . isHost ( 'view' ) ? undefined : ViewColumn . Beside ,
656+ viewColumn : this . host . is ( 'view' ) ? undefined : ViewColumn . Beside ,
657657 title : `Folder Changes in ${ shortenRevision ( commit . sha , {
658658 strings : { working : 'Working Tree' } ,
659659 } ) } `,
@@ -670,7 +670,7 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
670670 preview : true ,
671671 // Since the multi-diff editor doesn't support choosing the view column, we need to do it manually so passing in our view column
672672 sourceViewColumn : this . host . viewColumn ,
673- viewColumn : this . host . isHost ( 'view' ) ? undefined : ViewColumn . Beside ,
673+ viewColumn : this . host . is ( 'view' ) ? undefined : ViewColumn . Beside ,
674674 title : `Folder Changes in ${ shortenRevision ( commit . sha , {
675675 strings : { working : 'Working Tree' } ,
676676 } ) } `,
@@ -690,7 +690,7 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
690690 void openTextEditor ( uri , {
691691 preserveFocus : true ,
692692 preview : true ,
693- viewColumn : this . host . isHost ( 'view' ) ? undefined : ViewColumn . Beside ,
693+ viewColumn : this . host . is ( 'view' ) ? undefined : ViewColumn . Beside ,
694694 } ) ;
695695
696696 break ;
@@ -700,13 +700,13 @@ export class TimelineWebviewProvider implements WebviewProvider<State, State, Ti
700700 await openChanges ( uri , commit , {
701701 preserveFocus : true ,
702702 preview : true ,
703- viewColumn : this . host . isHost ( 'view' ) ? undefined : ViewColumn . Beside ,
703+ viewColumn : this . host . is ( 'view' ) ? undefined : ViewColumn . Beside ,
704704 } ) ;
705705 } else {
706706 await openChangesWithWorking ( uri , commit , {
707707 preserveFocus : true ,
708708 preview : true ,
709- viewColumn : this . host . isHost ( 'view' ) ? undefined : ViewColumn . Beside ,
709+ viewColumn : this . host . is ( 'view' ) ? undefined : ViewColumn . Beside ,
710710 } ) ;
711711 }
712712
0 commit comments