Open therealozp opened 20 hours ago
Just my two cents.
Anything in profile?
Or something related to shell integration: https://code.visualstudio.com/docs/terminal/shell-integration
Maybe a try disabling it:
"terminal.integrated.shellIntegration.enabled": false
Nothing was originally in the PS profile.
I updated the profile with those found in the link provided above if ($env:TERM_PROGRAM -eq "vscode") { . "$(code --locate-shell-integration-path pwsh)" }
, but it still had the same issue.
I cleared the profile and disabled shellIntegration
, but the issue still occurs.
PowerShell seems to be doing fine in Windows Terminal, only in VSCode does this issue happen. Thanks for the help!
Here I cannot reproduce it and I have almost the same setup (diff Windows 24H2).
When you start Powershell, you should see as first line
PowerShell 7.4.5
And, please, check this:
Ctrl + Shift + P
Terminal: Select Default Profile
Do you see the correct path for Powershell profile?
The path for my PowerShell executable is correct. This is what I have right now:
As you said, when opening the terminal, it does briefly show the line Powershell 7.4.5
for a quick second, and then it just gets completely obliterated by the entering lines that follow it.
I don't have anything in my $PROFILE
right now as the [#221686] thread might suggest, but I have gathered some logs with trace anyway. Please let me know if this helps:
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
pwsh
(I assume this is the default for PowerShell 7Some notes: