You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
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.
The root cause appears to be caused by the actual script code I included in my PowerShell script as outlined in the above issue.
Rewriting the code fixes the issue.
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!
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: