VS Code PowerShell intellisense has suddenly become very slow for me. It was working fine for a few days. I have uninstalled all extensions, except the one for PowerShell.
Here are the details about VS code.
Version: 1.28.2 (user setup)
Commit: 7f3ce96ff4729c91352ae6def877e59c561f4850
Date: 2018-10-17T00:23:51.859Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
Here are the user settings for PowerShell:
"powershell.bugReporting.project": "https://github.com/PowerShell/vscode-powershell", "powershell.codeFolding.enable": true, "powershell.codeFormatting.alignPropertyValuePairs": true, "powershell.codeFormatting.ignoreOneLineBlock": true, "powershell.codeFormatting.newLineAfterCloseBrace": true, "powershell.codeFormatting.newLineAfterOpenBrace": true, "powershell.codeFormatting.openBraceOnSameLine": true, "powershell.codeFormatting.preset": "Custom", "powershell.codeFormatting.whitespaceAfterSeparator": true, "powershell.codeFormatting.whitespaceAroundOperator": true, "powershell.codeFormatting.whitespaceBeforeOpenBrace": true, "powershell.codeFormatting.whitespaceBeforeOpenParen": true, "powershell.debugging.createTemporaryIntegratedConsole": false, "powershell.developer.bundledModulesPath": "", "powershell.developer.editorServicesLogLevel": "Normal", "powershell.developer.editorServicesWaitForDebugger": false, "powershell.developer.featureFlags": [], "powershell.developer.powerShellExeIsWindowsDevBuild": false, "powershell.developer.powerShellExePath": "", "powershell.enableProfileLoading": true, "powershell.helpCompletion": "BlockComment", "powershell.integratedConsole.focusConsoleOnExecute": true, "powershell.integratedConsole.showOnStartup": true, "powershell.powerShellAdditionalExePaths": [], "powershell.powerShellDefaultVersion": "", "powershell.powerShellExePath": "", "powershell.scriptAnalysis.enable": true, "powershell.scriptAnalysis.settingsPath": "", "powershell.startAutomatically": true, "powershell.useX86Host": false
Does anyone has suggestions?
Since reinstalling VSCode didn't help, it's probably some issue with powershell.
Few things to consider. I used to experience some lagging with intellisense/ps loading due to some module folders were located on the network drive. I didn't find any better solution rather than copying all modules locally.
I had big issues with PS after upgrading from v3 to v5 on Win 7. Pretty much it stopped working. Downgrading back didn't help. Surprisingly it worked fine if I logged as different user, so I just deleted and recreated my profile and it helped. Log as different user and see if it work differently.
I use VSCode on my linux machine with powershell core (pwsh), as an ISE alternative. It works good, and I have same version on VSCode as you. Try to install powershell core on your machine and then switch VSCode to use it instead of 5.0 https://learn.microsoft.com/en-us/powershell/scripting/core-powershell/vscode/using-vscode?view=powershell-6#using-a-specific-installed-version-of-powershell
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With