-
Notifications
You must be signed in to change notification settings - Fork 511
Autocomplete hung or not work at all after using function in VScode (powershell ext) #2642
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
Comments
Probably related: #2627 |
I think that I managed to fixed it. Reinstall VScode and Powershell extension. Now it's working. Even if I type the "function" and in the middle of the word func... press tab it's complete the whole command itself and report the 4 problems, but now when I remove the whole text in the editor, the problems are gone as well. Before they stuck somehow and intellisense were completely gone, Now it's ok. |
Thanks for the tip. I did delete the Preview extension, restarted program a few times, deleted disabled extension of PowerShell and after reinstall of Preview PowerShell, it's much snappier. Before I was waiting 4 seconds on the newly open window, but now it's instant. Lets see how it behaves in future. @TylerLeonhardt just FYI. Maybe some kind of cache issue for all my upgrades. Something to potentially investigate as an option to clear/cleanup on upgrades maybe? |
After few hours in Code the issue is back. So it's not related to total cleanup :( |
Issue Description
Autocomplete hung in Editor or not work at all after using function.
I am experiencing a problem with Intellisense autocomplete. Open a new fresh PS integrated console and as soon as enter the following text (function) in editor and press Tab, the autocomplete works, but after a few seconds report 4 problems without any interaction from my side. Please see screenshot below.
Missing closing '}' in statement block or type definition.
Missing ')' in function parameter list.
Unexpected token ')' in expression or statement.
Unexpected token '}' in expression or statement.
I have deleted all text in Editor and try another command like Get-AdUser, but autocomplete is not working anymore. It's simply says "Loading". Even if I try to close the current editor tab and open a new one it's still not working. It doesn't matter what I do, the 4 problems hung there. If I clear all text in editor and wait for some time, a few minutes the problems are gone and autocomplete working again, but it's very annoying to wait for this to fix itself. The only solution is to reload the window or restart the ps session.
Attached Logs
Environment Information
Windows 10 1909
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: