Skip to content

Commit 3936786

Browse files
committed
Register ptyhost logger channel immediately
Fixes microsoft#185391
1 parent 2cf2110 commit 3936786

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,7 @@ export class PtyHostService extends Disposable implements IPtyService {
175175
this._register(proxy.onProcessOrphanQuestion(e => this._onProcessOrphanQuestion.fire(e)));
176176
this._register(proxy.onDidRequestDetach(e => this._onDidRequestDetach.fire(e)));
177177

178-
// HACK: When RemoteLoggerChannelClient is not delayed, the Pty Host log file won't show up
179-
// in the Output view of the first window?
180-
Event.once(Event.any(proxy.onProcessReady, proxy.onProcessReplay))(() => {
181-
this._register(new RemoteLoggerChannelClient(this._loggerService, client.getChannel(TerminalIpcChannels.Logger)));
182-
});
178+
this._register(new RemoteLoggerChannelClient(this._loggerService, client.getChannel(TerminalIpcChannels.Logger)));
183179

184180
this.__connection = connection;
185181
this.__proxy = proxy;

0 commit comments

Comments
 (0)