mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
Don't await profiles for custom ptys, ensure createTerminal returns
Fixes #132519 Fixes microsoft/vscode-remote-release#5556
This commit is contained in:
@@ -140,13 +140,15 @@ export class MainThreadTerminalService implements MainThreadTerminalServiceShape
|
||||
isExtensionOwnedTerminal: launchConfig.isExtensionOwnedTerminal,
|
||||
useShellEnvironment: launchConfig.useShellEnvironment,
|
||||
};
|
||||
this._extHostTerminals.set(extHostTerminalId, new Promise(async r => {
|
||||
const terminal = new Promise<ITerminalInstance>(async r => {
|
||||
const terminal = await this._terminalService.createTerminal({
|
||||
config: shellLaunchConfig,
|
||||
location: await this._deserializeParentTerminal(launchConfig.location)
|
||||
});
|
||||
r(terminal);
|
||||
}));
|
||||
});
|
||||
this._extHostTerminals.set(extHostTerminalId, terminal);
|
||||
await terminal;
|
||||
}
|
||||
|
||||
private async _deserializeParentTerminal(location?: TerminalLocation | TerminalEditorLocationOptions | { parentTerminal: ExtHostTerminalIdentifier } | { splitActiveTerminal: boolean, location?: TerminalLocation }): Promise<TerminalLocation | TerminalEditorLocationOptions | { parentTerminal: ITerminalInstance } | { splitActiveTerminal: boolean } | undefined> {
|
||||
|
||||
Reference in New Issue
Block a user