window title not visible #11390

Closed
opened 2026-01-31 02:46:18 +00:00 by claunia · 4 comments
Owner

Originally created by @nExoRek on GitHub (Nov 13, 2020).

terminal is not publishing window title. as effect, when you try to debug in Visual Studio Code by attaching PID, all open sessions are indistinguishable /:
2020-11-13_12-39-25

Environment

Platform ServicePack Version VersionString


Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0

Steps to reproduce

run VSC, try using debugging by attaching to host pid

Expected behavior

have some distinguisher between processes - like e.g. window title.

Actual behavior

title is empty - only visible value is PID

Originally created by @nExoRek on GitHub (Nov 13, 2020). terminal is not publishing window title. as effect, when you try to debug in Visual Studio Code by attaching PID, all open sessions are indistinguishable /: ![2020-11-13_12-39-25](https://user-images.githubusercontent.com/22886046/99069045-e5ce3b00-25ad-11eb-8145-76bb8af77bfc.png) # Environment Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0 # Steps to reproduce run VSC, try using debugging by attaching to host pid # Expected behavior have some distinguisher between processes - like e.g. window title. # Actual behavior title is empty - only visible value is PID
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 02:46:18 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Nov 13, 2020):

Okay maybe I'm not that familiar with VsCode, but how are you getting to that dialog to debug a powershell process? Is that something that's provided through an extension?

Are only powershell instances that are hosted in Terminal tabs not displaying their titles?

Which version of the Windows Terminal are you running?

@zadjii-msft commented on GitHub (Nov 13, 2020): Okay maybe I'm not that familiar with VsCode, but how are you getting to that dialog to debug a powershell process? Is that something that's provided through an extension? Are only powershell instances that are hosted in Terminal tabs not displaying their titles? Which version of the Windows Terminal are you running?
Author
Owner

@nExoRek commented on GitHub (Nov 13, 2020):

AFAIK it's not thru extension but built in 'remote debugging' feature which
reads PS process PIDs. the one with path on the screen is a regular PS
window.
if you debug PS it will show only PIDs of PS sessions, and i'm not using
other languages to tell.
not a big deal since there is $pid variable, but this may potentially have
some wider meaning, for other scenarios.

Windows Terminal
Version: 1.3.2651.0

pt., 13 lis 2020 o 13:26 Mike Griese notifications@github.com napisał(a):

@nExoRek commented on GitHub (Nov 13, 2020): AFAIK it's not thru extension but built in 'remote debugging' feature which reads PS process PIDs. the one with path on the screen is a regular PS window. if you debug PS it will show only PIDs of PS sessions, and i'm not using other languages to tell. not a big deal since there is $pid variable, but this may potentially have some wider meaning, for other scenarios. Windows Terminal Version: 1.3.2651.0 pt., 13 lis 2020 o 13:26 Mike Griese <notifications@github.com> napisał(a):
Author
Owner

@DHowett commented on GitHub (Nov 17, 2020):

Unfortunately, Windows Terminal is a multi-process hosting environment. It cannot publish a window title for every instance of PowerShell that it is hosting.

Because the window is no longer owned by PowerShell, it will be necessary to find a workaround. Like you suggested, $PID is a good candidate.

Sorry!

@DHowett commented on GitHub (Nov 17, 2020): Unfortunately, Windows Terminal is a multi-process hosting environment. It cannot publish a window title for every instance of PowerShell that it is hosting. Because the window is no longer owned by PowerShell, it will be necessary to find a workaround. Like you suggested, `$PID` is a good candidate. Sorry!
Author
Owner

@nExoRek commented on GitHub (Nov 17, 2020):

thx for confirming.

wt., 17 lis 2020, 02:34 użytkownik Dustin L. Howett <
notifications@github.com> napisał:

@nExoRek commented on GitHub (Nov 17, 2020): thx for confirming. wt., 17 lis 2020, 02:34 użytkownik Dustin L. Howett < notifications@github.com> napisał:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11390