-
Notifications
You must be signed in to change notification settings - Fork 513
Server 2016 - Intellisense Delay with PowerShell Extension #1205
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
Note: This is in the editor, not the terminal. Terminal intellisense works fine. |
Can you attach a zip of the extension log files? See the following for instructions on how to do this - https://github.com/PowerShell/vscode-powershell#2-capture-verbose-logs-and-send-them-to-us |
I updated to the PowerShell extension 1.6 and no change in behavior |
Hmm everything is clipping along nicely until we attempt to process your profile:
Could you temporarily rename your profile file - |
You were correct. My profile.ps1 is set up to import a number of my commands, but I think I've identified the one line that vscode isn't liking. Import-Module C:\scripts\modules\trconfig.psm1 - If I comment out this line, vscode intellisense is much snappier. I've added the trconfig.txt for your reference. I don't see anything in it that should cause problems. I am able to import a different .psm1 file that has thousands of lines of functions without any problem. Any ideas from looking at the trconfig on where to start before I start testing removing things from it? |
It looks like it's this line that's causing it. Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn |
I have quite bad slowness too. All I see is "waiting..." for 10-30s everytime I try to use insellisense. Logs attached. Tried to disable everything in profile, no change. |
@veepee78 Thanks for attaching your log files! In your EditorServices.log file I'm seeing a 10 second gap every time we invoke PSSA (part of a codeLens/resolve request):
CodeLens/PSSA should be running in the background until you click on one. Also, the slowest IntelliSense response I've seen from the language server in the log file is:
That doesn't mean that there isn't something on the client-side (VSCode side) that is slow. |
Going to deduplicate this issue to #647. |
System Details
$PSVersionTable
: belowIssue Description
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: No - Related to PowerShell Extension, HTML intellisense works great
System Info:
CPU: Intel (R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz (4 x 2598)
Memory: 24.00GB (16.08GB free)
Process Argv: C:\Program Files\Microsoft VS Code\Code.exe
Screen Reader: no
VM: 100%
Notes:
Attached Logs
2018-02-21-1913-ProcMon.zip
The text was updated successfully, but these errors were encountered: