This project is read-only.


Slow Intellisense in ISE After Install of StudioShell


Without even invoking the module, the install of StudioShell caused slow responsiveness from ISE's Intellisense. Based on this, I did some investigation of the the module path as that was the only thing I could think would have changed. I found that it had been updated with:
C:\Program Files (x86)\\Code Owls LLC
Note the double slash. This was the only path in the variable with dual slashes.

Investigating further, I ran:
foreach ($i in $env:PSModulePath -split ';' ) { $hold="$hold;" + [System.IO.Path]::GetFullPath($i); }
That allowed me to investigate $hold, then set it to replace $env:PSModulePath, replacing that dual slash with a single slash:
C:\Program Files (x86)\Code Owls LLC
Immediately the responsiveness of Intellisense came back. Something with that dual slash was causing an issue, maybe the slashes instigated some sort of wildcard search? I don't know, but the evidence is clear that the dual slash in the $env:PSModulePath variable was detrimental to ISE's Intellisense. This might even fix some of the other issues I saw posted here regarding Visual Studio Intellisense... ;)

Please fix the ISE installer to add normalized paths to the $env:PSModulePath variable. I was using the StudioShell msi on Windows 7 Enterprise.



CopperTopp wrote May 19, 2015 at 5:25 PM

BTW, repro steps would be to set the path as I outlined, with the double-slash in the Code Owls LLS path in $env:PSModulePath, then in the ISE, try "Get-" and see how long it takes for Intellisense to offer it's drop down.

And here is my $PSVersionTable if you're curious:
[51] D:\> $PSVersionTable

Name                           Value                                                                                                                                     
----                           -----                                                                                                                                     
PSVersion                      4.0                                                                                                                                       
WSManStackVersion              3.0                                                                                                                                       
CLRVersion                     4.0.30319.34209                                                                                                                           
BuildVersion                   6.3.9600.16406                                                                                                                            
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}                                                                                                                      
PSRemotingProtocolVersion      2.2           

beefarino wrote May 20, 2015 at 4:04 PM

Wow, nice find. Will verify and fix ASAP.

beefarino wrote May 20, 2015 at 7:06 PM

Fixed in changeset 1a45e80837e0