Skip to content

Commit 7f832cc

Browse files
committed
Clean up
1 parent 45a7031 commit 7f832cc

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

src/vs/platform/terminal/common/terminal.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ export enum TerminalIpcChannels {
207207
* Communicates between the shared process and the pty host process.
208208
*/
209209
PtyHost = 'ptyHost',
210-
210+
/**
211+
* Communicates between the renderer process and the pty host process.
212+
*/
211213
PtyHostWindow = 'ptyHostWindow',
212214
/**
213215
* Deals with logging from the pty host process.

src/vs/platform/terminal/node/ptyHostService.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ let lastPtyId = 0;
3636
export class PtyHostService extends Disposable implements IPtyService {
3737
declare readonly _serviceBrand: undefined;
3838

39-
// TODO: Avoid ! ?
40-
private _connection!: IPtyHostConnection;
39+
private _connection: IPtyHostConnection;
4140
// ProxyChannel is not used here because events get lost when forwarding across multiple proxies
42-
private _proxy!: IPtyService;
41+
private _proxy: IPtyService;
4342

4443
private readonly _shellEnv: Promise<typeof process.env>;
4544
private readonly _resolveVariablesRequestStore: RequestStore<string[], { workspaceId: string; originalText: string[] }>;

src/vs/workbench/contrib/terminal/electron-sandbox/localTerminalBackend.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class LocalTerminalBackend extends BaseTerminalBackend implements ITerminalBacke
6565
@IShellEnvironmentService private readonly _shellEnvironmentService: IShellEnvironmentService,
6666
@IStorageService private readonly _storageService: IStorageService,
6767
@IConfigurationResolverService private readonly _configurationResolverService: IConfigurationResolverService,
68-
@IConfigurationService configurationService: IConfigurationService,
6968
@IConfigurationService private readonly _configurationService: IConfigurationService,
7069
@IProductService private readonly _productService: IProductService,
7170
@IHistoryService private readonly _historyService: IHistoryService,
@@ -93,12 +92,6 @@ class LocalTerminalBackend extends BaseTerminalBackend implements ITerminalBacke
9392
const client = new MessagePortClient(port, `window:${this._environmentService.window.id}`);
9493
this._ptyHostDirectProxy = ProxyChannel.toService<IPtyService>(client.getChannel(TerminalIpcChannels.PtyHostWindow));
9594

96-
// Testing
97-
// this._logService.info('latency: ', this._ptyHostDirectProxy.getLatency(0));
98-
// this._ptyHostDirectProxy.onProcessData(e => {
99-
// this._logService.info('message port process data: ' + e.event);
100-
// });
101-
10295
// Attach process listeners
10396
this._ptyHostDirectProxy!.onProcessData(e => this._ptys.get(e.id)?.handleData(e.event));
10497
this._ptyHostDirectProxy!.onDidChangeProperty(e => this._ptys.get(e.id)?.handleDidChangeProperty(e.property));

0 commit comments

Comments
 (0)