-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Don't see git push terminal quickfix #167613
Comments
@bamurtaugh I think you have shell integration disabled as I don't see the circles to the left? |
or it failed to activate for some reason - can you hover the terminal tab @bamurtaugh ? |
I just took the manual steps to enable shell integration in my PowerShell profile, and when I hover over the terminal tab, I see it says shell integration activated: I tried the same steps but nothing seems to have changed: I realize the manual PowerShell configuration (shown below) uses
I tried changing the latter I also tried completely deleting the line from the PowerShell profile, and when I hover over the terminal tab, it still says |
what is your powershell profile @bamurtaugh ? |
From running I decided to go through the flow again, since maybe I wasn't fully closing terminals and then reloading before, and here's what happened: I closed all my terminals and reloaded VS Code one more time, and now when I hover over the Powershell tab, I don't see a mention of shell integration: I tried pasting in the manual install line in my PowerShell Profile, and then I got the following in a terminal, which I think makes sense since I only have Insiders installed: I updated the install line to mention |
The regex should match those 🤔 vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickFixBuiltinActions.ts Lines 18 to 20 in 7b20bd0
@bamurtaugh If you're in VS Code's screen reader mode, shell integration will not work (it may say it activated which is a bug). This is because we depend upon PSReadLine which is pwsh disables if a screen reader is detected. |
@bamurtaugh can you set log level to debug, open dev tools, and screenshot it like this when you run a command such as |
I just deleted the line from the PowerShell Profile I was editing, closed the terminal, and reloaded VS Code. I do not have the PowerShell extension installed. I do not have a mention of PowerShell in my settings.json. I now changed log level to debug from trace. I ran If I hover over the PowerShell tab, it says shell integration failed to activate. |
Until shell integration activates, this won't work. What's the warning from powershell in your terminal say? And can you share your settings.json file? |
When I add
I'm attaching my settings.json here: settingsNov.txt. |
Manual install shouldn't be required so you can remove everything from your profile. I'd recommend doing that then running import-module psreadline |
ok great progress - now can you set log level to debug, run |
also just fyi from a time saving perspective - no need to reload 😄 just create a new terminal bw changes |
you still don't have command decorations, which is surprising given shell integration is activated |
@bamurtaugh I'm pretty sure you're in screen reader mode or otherwise pwsh is detecting a screen reader so psreadline isn't getting enabled which causes shell integration not to work. |
@Tyriar I don't see indication I'm in screenreader mode (i.e. the status bar UI mentioned here). When selecting "Use screen reader" in Windows, I don't see any options checked: However, when I open a new terminal, I do still see the warning: Any advice for how to disable? I see a lot of different info online, so not sure if you have one top of mind. Subsequent terminals also fail to activate shell integration, even if I run the import-module psreadline: |
looks like |
you can also check the value of that via |
|
If you see this, shell integration and quick fixes will definitely not work:
Touching the registry seems risky, I'd search for why pwsh is detecting a screen reader, this will do you good in the long run as PSReadLine makes the PS experience so much better. One possible way to work around this is to run |
Hmm okay, I'll do some further digging. Adding |
@bamurtaugh what version of powershell are you using? Shell integration is best with pwsh 7. |
I now got the quick fix! Although as shown in the image, each time I open a new PowerShell 7 terminal instance, the typing is a bit odd and overlaps: When I ran the command again, the text didn't overlap, but I didn't get a lightbulb: Not sure if this is expected? It also took some time to 1) realize I needed PowerShell 7, 2) detect PowerShell 7 in VS Code. Not sure if these items are documented. |
It not working here (on Windows) is actually a known issue and there isn't much we can do about it: See #153476 |
Also the typing overlapping it also a conpty problem that I don't think it on our end. |
I tried the I opened a new terminal, and it worked, and I get the telemetry logged correctly. Let me know if there's anything else I can provide about the topics I mentioned above. Otherwise, I've now gotten this working, it's just not super regular and perhaps there could be greater details in docs (about versions, detecting latest version, etc). |
@bamurtaugh looks like the first terminal doesn't have shell integration still, but the new one does. Since it works sometimes I'm guessing it just doesn't work now when the "placeholder decoration" isn't in the expected spot which breaks the command output detection, so a dupe of #153476 |
/duplicate #153476 |
Testing #167475
I assume I'm missing something obvious, but I can't seem to figure it out from experimentation and reviewing docs.
The text was updated successfully, but these errors were encountered: