File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
workbench/contrib/terminal/electron-sandbox Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,9 @@ export enum TerminalIpcChannels {
207
207
* Communicates between the shared process and the pty host process.
208
208
*/
209
209
PtyHost = 'ptyHost' ,
210
-
210
+ /**
211
+ * Communicates between the renderer process and the pty host process.
212
+ */
211
213
PtyHostWindow = 'ptyHostWindow' ,
212
214
/**
213
215
* Deals with logging from the pty host process.
Original file line number Diff line number Diff line change @@ -36,10 +36,9 @@ let lastPtyId = 0;
36
36
export class PtyHostService extends Disposable implements IPtyService {
37
37
declare readonly _serviceBrand : undefined ;
38
38
39
- // TODO: Avoid ! ?
40
- private _connection ! : IPtyHostConnection ;
39
+ private _connection : IPtyHostConnection ;
41
40
// ProxyChannel is not used here because events get lost when forwarding across multiple proxies
42
- private _proxy ! : IPtyService ;
41
+ private _proxy : IPtyService ;
43
42
44
43
private readonly _shellEnv : Promise < typeof process . env > ;
45
44
private readonly _resolveVariablesRequestStore : RequestStore < string [ ] , { workspaceId : string ; originalText : string [ ] } > ;
Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ class LocalTerminalBackend extends BaseTerminalBackend implements ITerminalBacke
65
65
@IShellEnvironmentService private readonly _shellEnvironmentService : IShellEnvironmentService ,
66
66
@IStorageService private readonly _storageService : IStorageService ,
67
67
@IConfigurationResolverService private readonly _configurationResolverService : IConfigurationResolverService ,
68
- @IConfigurationService configurationService : IConfigurationService ,
69
68
@IConfigurationService private readonly _configurationService : IConfigurationService ,
70
69
@IProductService private readonly _productService : IProductService ,
71
70
@IHistoryService private readonly _historyService : IHistoryService ,
@@ -93,12 +92,6 @@ class LocalTerminalBackend extends BaseTerminalBackend implements ITerminalBacke
93
92
const client = new MessagePortClient ( port , `window:${ this . _environmentService . window . id } ` ) ;
94
93
this . _ptyHostDirectProxy = ProxyChannel . toService < IPtyService > ( client . getChannel ( TerminalIpcChannels . PtyHostWindow ) ) ;
95
94
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
-
102
95
// Attach process listeners
103
96
this . _ptyHostDirectProxy ! . onProcessData ( e => this . _ptys . get ( e . id ) ?. handleData ( e . event ) ) ;
104
97
this . _ptyHostDirectProxy ! . onDidChangeProperty ( e => this . _ptys . get ( e . id ) ?. handleDidChangeProperty ( e . property ) ) ;
You can’t perform that action at this time.
0 commit comments