-
Notifications
You must be signed in to change notification settings - Fork 498
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
Support New VS Code Shell Integration Feature #3901
Support New VS Code Shell Integration Feature #3901
Comments
It's still an experimental feature: So it's unlikely to be the default, however we could look into adding a feature flag for it. The PSIC is not a normal integrated terminal so I'm not sure if there will be related regressions or something to tell vscode to flag the PSIC as an "integrated" terminal. |
I was going through my PowerShell logs and found Note I use PowerShell and VS Code as snaps on Linux. . "/var/lib/snapd/snap/code/92/usr/share/code/resources/app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1"
If I manually run . "/var/lib/snapd/snap/code/current/usr/share/code/resources/app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1"
in the PowerShell extension's integrated console, it appears to work: |
I noticed in the documentation they said they shim in a .ps1, so that wouldn't be that hard to just add a setting to call it if that's all it is, not sure if there's more to it though. |
Are extensions able to read the preferences for VS Code? Or is there some benefit to creating a new preference besides |
There are cases where you might want it for your integrated terminal but not PSIC, but yes, extensions can read settings and it would probably be gated behind both these settings, e.g.
|
|
We are working on this actively! |
Thanks for addressing this issue. I'm not sure how PowerShell Editor Services is integrated into the PowerShell extension and VS Code. How will I know when this feature makes it to VS Code or the Insiders edition? |
@juvtib PSES is basically the LSP for the plugin. If this has been committed to PSES I would expect to see it in the next preview release of the PowerShell extension which comes out pretty regularly. |
Like today is the plan lol |
Prerequisites
Summary
VS Code introduced the shell integration feature in January. When the PowerShell extension launches its Integrated Console, the shell integration is not launched with it. It is not obvious if or how to manually launch the new feature.
Please respect the
terminal.integrated.shellIntegration.enabled
setting. And allow the new VS Code feature to work with the terminal launched by the PowerShell extension.Proposed Design
No response
The text was updated successfully, but these errors were encountered: