提交 61cb8d0e 编写于 作者: D Daniel Imms

Give terminal process listeners a chance to init

上级 0b772cda
......@@ -79,7 +79,11 @@ export class TerminalProcess implements ITerminalChildProcess, IDisposable {
}
private _setupTitlePolling() {
this._sendProcessTitle();
// Send initial timeout async to give event listeners a chance to init
setTimeout(() => {
this._sendProcessTitle();
}, 0);
// Setup polling
setInterval(() => {
if (this._currentTitle !== this._ptyProcess.process) {
this._sendProcessTitle();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册