Slow intellisense when workspace contains a DSC module
See original GitHub issueSystem Details
- Operating system name and version: Windows 7 x64
- VS Code version: 1.3.1.0
- PowerShell extension version: 1.13.0
- Output from
$PSVersionTable:
Name Value
PSVersion 5.1.14409.1005 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} BuildVersion 10.0.14409.1005 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
Issue Description
I’m finding intellisense incredibly slow in some circumstances (often several tens of seconds). This also affects the time take for the great new code lens stuff to appear. I have quite a large repo, but by trial and error I found that knocking out all the DSC modules makes things blindingly fast. Adding even one DSC module back in makes things noticeably slower. I tried third party DSC modules (xPSDesiredStateConfirugation or xWebAdministration) and the behaviour’s the same.
Attached Logs
The logs below are from two vscode workspaces: one has a third-party MySQL module, and the other has that module plus xPSDesiredStateConfiguration version 6.4.0.0. All I am doing is opening the MySQL module file and waiting for the code lens to appear in front of the first function. You can see from the timing that there’s a 8-second lag before line 1537 of the version with DSC.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10 (2 by maintainers)

Top Related StackOverflow Question
Can confirm that the experience is vastly superior with the latest updates. Thanks for keeping this issue updated 😃
This issue is being closed as inactive, if this issue is still occurring it will be re-opened