question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve Performance of Intellisense further

See original GitHub issue

This is happening on both the stable and the preview version of the extension, using all latest release versions including VS Code as of today.

I have a redirected My Documents folder, so by default my PSModulePath includes a UNC path.

When I open a .ps1 file or start a new PowerShell file it opens the PowerShell Integrated Console (which starts very slowly, like upwards of a minute with high CPU use).

Then whenever I proceed to start typing commands in the console it flashes “Searching available modules” followed by the UNC path. It completes in about 1 second but it does this over and over and over. Basically every time I press a key on the keyboard and intellisense is trying to figure out what command I’m trying tor run, it flashes in the terminal.

During that 1 second where it’s searching for available modules the intellisese is locked and doesn’t display anything.

I completely uninstalled VS Code, all settings and extensions, etc. re-installed and it’s still happening. My VS Code PowerShell Profile is empty, and all settings are default.

Name                           Value
----                           -----
PSVersion                      5.1.17763.1007
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.1007
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Windows 10 x64 Build 1809

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
andschwacommented, Jun 6, 2022

Sadly there is not, as the PowerShell pipeline is single-threaded, so that’s an architecture limitation beneath PSES.

1reaction
HoCGeekcommented, May 25, 2020

If I understand this article correctly (“https://docs.microsoft.com/en-us/powershell/module/powershellget/install-module?view=powershell-5.1”), PowerShell modules get installed to $env:ProgramFiles\WindowsPowerShell\Modules except if you use the -Scope currentuser option which installs the modules to $home\Documents\WindowsPowerShell\Modules. In my case it is “$home” that causes the issue because I can’t change this variable and it points to a folder redirected to a UNC path. If MS would give us the option to specify a local path for the “currentuser” repository instead of assuming “$home”, then we could make sure it was a local folder and avoid the UNC issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intellisense is extremely slow with option "Show Items from ...
This issue alone had me considering using a different IDE. It was overwhelmingly frustrating. Visual Studiowindows 10.0editorperformancevisual studio ...
Read more >
Visual Studio Code Intellisense is very slow - Stack Overflow
I'm using VS Code and it's wonderful is all areas but code completion, where it is usually just too slow to be of...
Read more >
Tips to improve performance - Visual Studio (Windows)
Learn how to optimize certain Visual Studio features that you might not be using to help improve performance.
Read more >
Improving VS Code Path Intellisense Performance - Medium
Improving VS Code Path Intellisense Performance ... I've been fighting slowdowns in Intellisense plugins (like this) in VS Code for a few months....
Read more >
Speed up ReSharper (and Visual Studio) - JetBrains
Try this first · Go to ReSharper | Options | Environment | Performance Guide to check and quickly fix ReSharper and Visual Studio...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found