enable setting an extension contributed profile as the default one (#129197)

This commit is contained in:
Megan Rogge
2021-07-22 21:45:43 -05:00
committed by GitHub
parent 847a6d8cd0
commit 9199916f5b
17 changed files with 265 additions and 124 deletions

View File

@@ -150,11 +150,11 @@ export class MainThreadTerminalService implements MainThreadTerminalServiceShape
if (launchConfig.isSplitTerminal) {
const activeInstance = this._terminalService.getInstanceHost(launchConfig.target).activeInstance;
if (activeInstance) {
terminal = withNullAsUndefined(this._terminalService.splitInstance(activeInstance, shellLaunchConfig));
terminal = withNullAsUndefined(await this._terminalService.splitInstance(activeInstance, shellLaunchConfig));
}
}
if (!terminal) {
terminal = this._terminalService.createTerminal({
terminal = await this._terminalService.createTerminal({
config: shellLaunchConfig,
target: launchConfig.target
});