Skip to content

Commit 5e6379f

Browse files
authored
Merge pull request #125741 from microsoft/tyriar/r157_125729
Set terminal title in ctor for custom pty terminals
2 parents c7119ae + 098c99e commit 5e6379f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vs/workbench/contrib/terminal/browser/terminalInstance.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
281281
this._terminalProfileResolverService.resolveIcon(this._shellLaunchConfig, OS);
282282
}
283283

284+
// When a custom pty is used set the name immediately so it gets passed over to the exthost
285+
// and is available when Pseudoterminal.open fires.
286+
if (this.shellLaunchConfig.customPtyImplementation) {
287+
this.setTitle(this._shellLaunchConfig.name, TitleEventSource.Api);
288+
}
289+
284290
this._initDimensions();
285291
this._createProcessManager();
286292

0 commit comments

Comments
 (0)