You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Display the command that is running in the PowerShell console on the same line #3786
changed the title [-]Do not display the command that is running in the PowerShell console[/-][+]Display the command that is running in the PowerShell console on the same line[/+]on Jan 25, 2022
Thanks for raising! It is a change in behavior and can be jarring to users so I think it's a valid ask. There's a couple other related issues e.g. debug doesn't issue newline after prompt
I'm looking at this, but I'm not sure how addressable it is. Technically when running a script via F5 or arbitrary selected code via F8, we cancel the current prompt and just run the code...so it is explicitly not running on that prompt but entirely separately. Note that if you add anything to that prompt but don't hit enter, and then hit F8, everything at the prompt is thrown away instead. So what it's currently displaying is more accurate. That said, I think we could re-render the prompt in front of the command we're about to run.
That sounds good. Btw I have a lot of issues around the display (clear-host helping partially) where the text goes over text, and even new lines stop working under debugging. Should I create separate issues or update it here?
Activity
[-]Do not display the command that is running in the PowerShell console[/-][+]Display the command that is running in the PowerShell console on the same line[/+]JustinGrote commentedon Jan 25, 2022
Thanks for raising! It is a change in behavior and can be jarring to users so I think it's a valid ask. There's a couple other related issues e.g. debug doesn't issue newline after prompt
andyleejordan commentedon Jan 25, 2022
Yeah there's a lot of work around redisplaying the prompt properly that we need to do! This is definitely valid and thank you for reporting.
andyleejordan commentedon Feb 1, 2022
I'm looking at this, but I'm not sure how addressable it is. Technically when running a script via F5 or arbitrary selected code via F8, we cancel the current prompt and just run the code...so it is explicitly not running on that prompt but entirely separately. Note that if you add anything to that prompt but don't hit enter, and then hit F8, everything at the prompt is thrown away instead. So what it's currently displaying is more accurate. That said, I think we could re-render the prompt in front of the command we're about to run.
PrzemyslawKlys commentedon Feb 1, 2022
That sounds good. Btw I have a lot of issues around the display (clear-host helping partially) where the text goes over text, and even new lines stop working under debugging. Should I create separate issues or update it here?
andyleejordan commentedon Feb 1, 2022
Let's see how much PowerShell/PowerShellEditorServices#1690 and PowerShell/PowerShellEditorServices#1691 help out with that. I'll get a new Preview out soon, and then for any more problems yes please new issues!