Set terminal title in ctor for custom pty terminals

Fixes #125729
This commit is contained in:
Daniel Imms
2021-06-08 05:21:52 -07:00
parent bdd429183e
commit e6efb0b4a9
@@ -281,6 +281,12 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
this._terminalProfileResolverService.resolveIcon(this._shellLaunchConfig, OS);
}
// When a custom pty is used set the name immediately so it gets passed over to the exthost
// and is available when Pseudoterminal.open fires.
if (this.shellLaunchConfig.customPtyImplementation) {
this.setTitle(this._shellLaunchConfig.name, TitleEventSource.Api);
}
this._initDimensions();
this._createProcessManager();