Skip to content

Commit 111fc44

Browse files
authored
Fix terminal data buffering from pty host
Fixes microsoft#186782
1 parent e145525 commit 111fc44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ export class PtyService extends Disposable implements IPtyService {
270270
}
271271
const id = ++this._lastPtyId;
272272
const process = new TerminalProcess(shellLaunchConfig, cwd, cols, rows, env, executableEnv, options, this._logService, this._productService);
273-
process.onProcessData(event => this._onProcessData.fire({ id, event }));
274273
const processLaunchOptions: IPersistentTerminalProcessLaunchConfig = {
275274
env,
276275
executableEnv,
@@ -282,6 +281,7 @@ export class PtyService extends Disposable implements IPtyService {
282281
this._ptys.delete(id);
283282
this._onProcessExit.fire({ id, event });
284283
});
284+
persistentProcess.onProcessData(event => this._onProcessData.fire({ id, event }));
285285
persistentProcess.onProcessReplay(event => this._onProcessReplay.fire({ id, event }));
286286
persistentProcess.onProcessReady(event => this._onProcessReady.fire({ id, event }));
287287
persistentProcess.onProcessOrphanQuestion(() => this._onProcessOrphanQuestion.fire({ id }));

0 commit comments

Comments
 (0)