提交 8e286cc3 编写于 作者: D Daniel Imms

Only pass conptyInheritCursor for tasks

Part of #76548
上级 f1b7e0f0
......@@ -1130,6 +1130,12 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
}
}
// HACK: Force initialText to be non-falsy for reused terminals such that the
// conptyInheritCursor flag is passed to the node-pty, this flag can cause a Window to hang
// in Windows 10 1903 so we only want to use it when something is definitely written to the
// terminal.
shell.initialText = ' ';
// Set the new shell launch config
this._shellLaunchConfig = shell; // Must be done before calling _createProcess()
......
......@@ -66,7 +66,8 @@ export class TerminalProcess extends Disposable implements ITerminalChildProcess
cols,
rows,
experimentalUseConpty: useConpty,
conptyInheritCursor: true
// This option will force conpty to not redraw the whole viewport on launch
conptyInheritCursor: useConpty && !!shellLaunchConfig.initialText
};
const cwdVerification = stat(cwd).then(async stat => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册