Skip to content

Commit e8c3ff3

Browse files
committed
Log ext host terminal process requests
1 parent d42e916 commit e8c3ff3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/vs/workbench/api/browser/mainThreadTerminalService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
1515
import { TerminalDataBufferer } from 'vs/workbench/contrib/terminal/common/terminalDataBuffering';
1616
import { IEnvironmentVariableService, ISerializableEnvironmentVariableCollection } from 'vs/workbench/contrib/terminal/common/environmentVariable';
1717
import { deserializeEnvironmentVariableCollection, serializeEnvironmentVariableCollection } from 'vs/workbench/contrib/terminal/common/environmentVariableShared';
18+
import { ILogService } from 'vs/platform/log/common/log';
1819

1920
@extHostNamedCustomer(MainContext.MainThreadTerminalService)
2021
export class MainThreadTerminalService implements MainThreadTerminalServiceShape {
@@ -40,6 +41,7 @@ export class MainThreadTerminalService implements MainThreadTerminalServiceShape
4041
@IRemoteAgentService private readonly _remoteAgentService: IRemoteAgentService,
4142
@IInstantiationService private readonly _instantiationService: IInstantiationService,
4243
@IEnvironmentVariableService private readonly _environmentVariableService: IEnvironmentVariableService,
44+
@ILogService private readonly _logService: ILogService,
4345
) {
4446
this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostTerminalService);
4547
this._remoteAuthority = extHostContext.remoteAuthority;
@@ -259,6 +261,7 @@ export class MainThreadTerminalService implements MainThreadTerminalServiceShape
259261
env: request.shellLaunchConfig.env
260262
};
261263

264+
this._logService.trace('Spawning ext host process', { terminalId: proxy.terminalId, shellLaunchConfigDto, request });
262265
this._proxy.$spawnExtHostProcess(
263266
proxy.terminalId,
264267
shellLaunchConfigDto,

src/vs/workbench/api/node/extHostTerminalService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class ExtHostTerminalService extends BaseExtHostTerminalService {
200200

201201
this._proxy.$sendResolvedLaunchConfig(id, shellLaunchConfig);
202202
// Fork the process and listen for messages
203-
this._logService.debug(`Terminal process launching on ext host`, shellLaunchConfig, initialCwd, cols, rows, env);
203+
this._logService.debug(`Terminal process launching on ext host`, { shellLaunchConfig, initialCwd, cols, rows, env });
204204
// TODO: Support conpty on remote, it doesn't seem to work for some reason?
205205
// TODO: When conpty is enabled, only enable it when accessibilityMode is off
206206
const enableConpty = false; //terminalConfig.get('windowsEnableConpty') as boolean;

0 commit comments

Comments
 (0)