@@ -206,6 +206,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
206
206
private _userHome ?: string ;
207
207
private _hasScrollBar ?: boolean ;
208
208
private _target ?: TerminalLocation | undefined ;
209
+ private _disableShellIntegrationReporting : boolean | undefined ;
209
210
210
211
readonly capabilities = new TerminalCapabilityStoreMultiplexer ( ) ;
211
212
readonly statusList : ITerminalStatusList ;
@@ -220,7 +221,12 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
220
221
}
221
222
this . _target = value ;
222
223
}
223
-
224
+ get disableShellIntegrationReporting ( ) : boolean {
225
+ if ( this . _disableShellIntegrationReporting === undefined ) {
226
+ this . _disableShellIntegrationReporting = this . shellLaunchConfig . isFeatureTerminal || this . shellLaunchConfig . hideFromUser || this . shellLaunchConfig . executable === undefined ;
227
+ }
228
+ return this . _disableShellIntegrationReporting ;
229
+ }
224
230
get instanceId ( ) : number { return this . _instanceId ; }
225
231
get resource ( ) : URI { return this . _resource ; }
226
232
get cols ( ) : number {
@@ -658,8 +664,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
658
664
throw new ErrorNoTelemetry ( 'Terminal disposed of during xterm.js creation' ) ;
659
665
}
660
666
661
- const disableShellIntegrationTelemetry = this . shellLaunchConfig . isFeatureTerminal || this . shellLaunchConfig . hideFromUser || this . shellLaunchConfig . executable === undefined ;
662
- const xterm = this . _instantiationService . createInstance ( XtermTerminal , Terminal , this . _configHelper , this . _cols , this . _rows , this . target || TerminalLocation . Panel , this . capabilities , disableShellIntegrationTelemetry ) ;
667
+ const xterm = this . _instantiationService . createInstance ( XtermTerminal , Terminal , this . _configHelper , this . _cols , this . _rows , this . target || TerminalLocation . Panel , this . capabilities , this . disableShellIntegrationReporting ) ;
663
668
this . xterm = xterm ;
664
669
const lineDataEventAddon = new LineDataEventAddon ( ) ;
665
670
this . xterm . raw . loadAddon ( lineDataEventAddon ) ;
0 commit comments