mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Fix Terminal.processId when setProcessId has not yet been called
Part of #12770
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user