-
-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode shell integration disables posh-git prompt #931
Comments
Try swapping Looks like there are custom escape sequences, which could either be customized or built into posh-git. |
I have the same problem. Even when import posh-git after loading of the terminal, there is no posh-git prompt available in terminal. Thanks for the workaround. It works! |
thanks for the workaround :) |
This might be unrelated to OP, but I landed here having posh-git in ~\Documents\PowerShell\Modules\posh-git\1.1.0 and wondering why it's not showing up in my PS7/vscode shell, and so others will probably arrive here for the same reasons. For those people: Each shell is its own environment. For each shell you want posh-git in, run |
Instead of installing for each shell you can also try |
System Details
Issue Description
I am experiencing a problem with VSCode Terminal Shell Integration, the new feature that shows color coded dots in the margin for successfull/failed command executions. Read more here. It prevents the prompt from being adapted by Posh-Git. So on loading of Posh-Git, the prompt stays the same. (posh-git does load, and stuff like branch name completion does work, it's just the apdaptation of the prompt function that fails.)
I realize this is not a problem of Posh-Git per se. I just wanted to make you aware of this.
Work-around
I found a work-around by setting
terminal.integrated.shellIntegration.enabled
tofalse
, and restarting the terminal.Remarks
What is maybe interesting, is that you can see the injected script that VSCode uses for the decorations etc by running
code (code --locate-shell-integration-path pwsh)
. I wouldn't know how to adapt that so that it displays posh-git prompt style too.The text was updated successfully, but these errors were encountered: