-
Notifications
You must be signed in to change notification settings - Fork 491
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
git cannot bring up VScode diff tool under powershell ISE #4908
Comments
I was able to reproduce in ISE, this has to do with how the custom ISE host is probably handling the interactive prompt of As such I'm going to close this as |
thanks for fast review. I am involved in Microsoft projects and we still use PS ISE. PS has one problem - ninja problem as I filed here: ninja-build/ninja#2379 |
Sorry to hear that, as a workaround you can have a normal powershell window next to your ISE and whenever you need to do a diff, run the command there rather than ISE, should work fine. If there's a git config setting to disable that prompt, that would probably work too. |
Prerequisites
Summary
when use "git difftool", on PS it pops up vscode and works well, or PS ISE it doesn't pop up vscode and stuck.
this case might similar as: #4012
OS Name Microsoft Windows 11 Enterprise
Version 10.0.22631 Build 22631
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
1)start powershell ISE
2)setup vscode/git env, touch one for file that is in git repo(say file1.txt) then edit .gitconfig by:
PS> config --global -e
......#add these lines below:
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
3)run:
PS E:\repos\king> git difftool
Viewing (1/1): 'tools/pwsh/modules/Build-Utils.psm1'
git difftool
PS E:\repos\king> git difftool
then stuck.
On PS(not ISE), same command will lead to:
PS E:\repos\king> git difftool
Viewing (1/1): 'tools/pwsh/modules/Build-Utils.psm1'
Launch 'vscode' [Y/n]?
type S and it will continue to pop up vscode window. both PS and PS ISE run as admin.
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: