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
"Open in Powershell" option opens PowerShell in classic mode #10002
Comments
@Halofreak1990 Thank for filing this. Please provide some more details:
Also, is PowerShell classic a setting within PowerShell or a different app altogether? Any idea how you can activate it? I am not familiar with Classic mode. |
@tierninho, I'm using Version 2.5.2. I also only have one item in the dropdown. Upon further investigation, the problem seems to stem from the way PowerShell is invoked by GitHub desktop: If I launch PowerShell with the same command that Desktop uses through CMD.exe I get the current behavior, whereas starting powershell from C#'s Process.Start(), Windows Run (or the search bar), PowerShell launches as it did before. |
As far as I'm aware the code for opening a shell for this hasn't been modified. Hopefully one of our developers can shed some light. At this point, if you are able to share your logs, they would be helpful. |
Hey @Halofreak1990, thanks for opening this! I'm afraid I don't know much about PowerShell classic and the new PowerShell but we currently have two supported shells in the app, desktop/app/src/lib/shells/win32.ts Lines 145 to 182 in 03c154c
desktop/app/src/lib/shells/win32.ts Lines 184 to 208 in 03c154c
If you'd be interested in adding support for this new powershell there's documentation available at https://github.com/desktop/desktop/blob/03c154c463552a338a1eacceb1dd72abfeb42928/docs/technical/shell-integration.md. I hope that is helpful! |
|
A clear and concise description of what the feature or problem is.
As of a recent update to GitHub Desktop, the "Open in Powershell" option opens PowerShell in classic mode, whereas previously, it opened in the native PowerShell mode. Classic mode behaves like CMD, with mouse input by default restricted to context actions, instead of the rich experience PowerShell's native mode offers. This means a loss of options, like quick select and paste, unless explicitly enabled, and if the standard Windows handling of CMD is any indication, this means having to change this setting on a per-window basis.
Proposed solution
Revert the "Open in Powershell" option to the previous iteration, to allow users the rich experience they were used to before the change.
The text was updated successfully, but these errors were encountered: