Closed mariomarinov4 closed 4 years ago
Probably related: https://github.com/PowerShell/vscode-powershell/issues/2627
Probably related: #2627 Hi @PrzemyslawKlys , thanks for your reply. Actually I have seen the post that you mentioned.
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)
|Extension|Author|Version| |---|---|---| |night-owl|sdras|1.1.3| |powershell|ms-vscode|2020.4.0| |shell-launcher|Tyriar|0.4.1| |vscode-icons|vscode-icons-team|10.1.1|