提交 8763d841 编写于 作者: D Daniel Imms

Fix Terminal.processId when setProcessId has not yet been called

Part of #12770
上级 a6d6ea86
......@@ -40,9 +40,11 @@ export class ExtHostTerminal implements vscode.Terminal {
if (this._processId) {
return Promise.resolve<number>(this._processId);
}
setTimeout(() => {
return this.processId;
}, 200);
return new Promise<number>((resolve) => {
setTimeout(() => {
this.processId.then(resolve);
}, 200);
});
}
public sendText(text: string, addNewLine: boolean = true): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册