-
Notifications
You must be signed in to change notification settings - Fork 509
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
Language Server Becomes Unresponsive After Opening Command Explorer #4992
Comments
I see same issue. Command Explorer never populates. When I run code.exe as different user, on same computer, Command Explorer and Intellisense work as expected. After removing the Environment variable “Path” element, pointing to a folder containing PowerShell scripts, the Command Explorer and Intellisense worked as expected. Additional information: The root cause appears to be caused by the actual script code I included in my PowerShell script as outlined in the above issue. win 11, Powershell 7.4.3, vscode 1.9.0, powershell extension 2024.2.2. |
Thanks for creating this issue. I've been having the same problem for months now (possibly up to a year) across four machines both work and personal, including VMs, three operating systems, probably 7+ minor versions of VSCode, other forks including VSCodium, Cursor, PearAI, etc. since (I think) about v2024.2.0 of the extension. However, the issue has followed me across disabling my PS profile, creating a new empty VSCode profile with only the PS extension installed, excluding every module in ⚙️powershell.sideBar.CommandExplorerExcludeFilter, and it freezes every. single. time. until I disable it again (at least there's that option!) I'd love for this to be fixed so the feature could be improved, because I feel like one of the biggest things lacking in the PowerShell world is a robust visual help system. Obviously between Get-Help, Get-Command, MAML, PlatyPS, the online documentation, etc. it's not at all hard to get where you need, but a simple searchable, sortable TreeView (grouped by module and noun, perhaps?) that displays the online Markdown help inside a VS Code browser view would be incredible. I have zero JS/TS knowledge, so for a minute I thought I found a possible solution through the PowerShell Pro Tools extension, which exposes a custom TreeView with invokable items... a radical idea in theory but unfortunately it's half-broken itself, never populating correctly, if at all, and likely won't be fixed since it's been sunsetted so the company can work more on Universal. so that didn't pan out.. I'm rambling now, but if I can help in any way with testing, I'd be quite happy to! |
Hi, yeah as you've found, the current implementation of Command Explorer exposes it to lots of potential bugs as it attempts to populate itself. We've turned it off by default for now, until we or a community contributor are able to make it stable. I'll mark this as up for grabs for now. |
Prerequisites
Summary
PowerShell intellisense works until I open the command explorer once. The command explorer never populates, and I have to close the command explorer and restart the PowerShell session to get intellisense working again.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Visuals
Recording.2024-05-17.234022.mp4
Logs
PowerShell Editor Services Client logs just after opening Command Explorer
It will then send a
textDocument/completion
message when I do Ctrl + Space, but it will never receive any response, even after several minutes of waiting.The text was updated successfully, but these errors were encountered: