-
Notifications
You must be signed in to change notification settings - Fork 511
Intellisense not working properly #4059
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
This makes me think you have Can you share the value of |
|
I did have |
I assume Needs: Repro Info 🤔 means I need to give reproduction information. I type in a cmdlet, or a function that is loaded into running memory and then press tab. Tab completion does not work, nor do I get any information on the cmdlet. Pressing ctrl+space does not yield any results. -- Updated PowerShell extension to v2022.6.3, and there has been no change. I do not get the same notification from the extension that tmknight gets. |
@functionkey-12 I believe your issue is simply that your extension is not starting correctly. Let's diagnose that. Can you and @tmknight both follow these steps to get us detailed logs around the startup? |
Here are my logs. It should all logs after a restart of the application. I continued to add new code to my workspace, and due to this New-Object now auto-completes. However, get-pr does not suggest anything. |
Took some digging through settings.json, but found this to resolve my issue (now commented): |
Woah, good catch @tmknight! Yes, we recently fixed the initialization sequence so that non-VS Code clients would work again, and in doing so now directly execute essentially |
I have never set the I decided to set it and see if anything changes. It did not. I have since removed it. |
I started in on my settings.json file, and commented out everything to see if the issue was still present. It was not. slowly uncommented sections till the problem re-emerged. Then narrowed it down to the setting So this is not an issue with the powershell extension, just an issue with me. Don't ever remember setting this preference, but regardless, intellisense is back for me. I will go ahead and close this issue. |
Woo, good work @functionkey-12 finding that! I went and looked real hard for a setting like that myself, but didn't find one. I'll get it added to the troubleshooting guide. |
I just hit the same failure. Reviewing my logs:
|
@Pxtl the only thing in PSES which uses that is the shell integrations script, can you try disabling it via |
Yes, I tried that and it has resolved the issue, thanks. I don't love it as a workaround but since I don't recall ever noticing any impressive integration on the integrated powershell console, I doubt I'll miss it. I tend to use an external powershell console anyways unless I'm running in the debugger. Hopefully the VSCode team resolves the issue properly... or Microsoft force-updates everybody to PSCore so I no longer have to support PS5.1 machines. But I suppose the PS Core team finds it easier to develop a language when they don't have actual users. |
Prerequisites
Summary
Intellisense is no longer working consistently. cmdlets that have not been used earlier within the workspace will not tab-complete, or provide any information.
This is very similar to #179. As suggested in #179, I have uploaded the editorservices.log
I have disable, uninstalled, and re-installed the PowerShell extension. I have rebooted VSCode many times, and have rebooted my machine as well. No change.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Typing get-pro will not autocomplete to any cmdlet. Instead it inserts a tab. The same happens with new-obj. Pressing ctrl+space yields no results.
However, Get-PSCallstack, which has been used earlier in the .ps1, and elsewhere in the workspace, autocompletes fine.
Visuals
Logs
EditorServices.log
The text was updated successfully, but these errors were encountered: