-
Notifications
You must be signed in to change notification settings - Fork 504
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
PIC / ES Freezes for minutes at a time with no internet. #1446
Comments
Hi @AmandaCameron, thanks for opening an issue! As of v1.8.0 we don't do any networking at all in the PowerShell extension (in fact, we don't support TCP connections any more at all -- see #954). It may be that VSCode itself trying to do a lot of networking -- see microsoft/vscode#54354. |
Another option might be PowerShell trying to verify the Authenticode signature on Start-EditorServices.ps1. We've observed this behavior before with some code we have that validates assemblies are signed with a valid Authenticode cert. It is usually something like a three minute hang/delay IIRC. Although this was usually for systems that had never been connected to the internet (DOD stuff). |
Good call @rkeithhill. |
@rkeithhill off the top of your head, how might one test for this? I can try to set up a VM to test. |
You can try with a VM that has access to the Windows ISO image for installation but has never had an internet connection. In our case, it was folks running our code on submarines and in air-gapped satellite test systems. In talking to the engineer who has run into this issue over the years, he says it can also happen on a system that has been connected to the internet if there is a problem with the root certificate on that system. I suspect the problem is more likely to be due to a problem with the root cert on the system. |
@rkeithhill would the root certficate be loaded/cached properly under a linux system for offline authentication? I have had internet on this laptop before, and don't notice any slow down unless I'm offline. I'm on Pop!_OS ( A ubuntu-based distro ) and have installed VSCode, dotnet, and PowerShell Core from the offical MS apt repositories. |
@AmandaCameron Good point - should have read your original post. On Linux, I don't believe PowerShell Core does anything with script signatures. The typical set of AuthenticodeSignature commands are not available on that platform. Same behavior with the latest update - 1.8.2? |
Just tested, and indeed it's still an issue under 1.8.2 -- worth noting I have my login shell also set to powershell ( |
Issue Description
When using the extension on my laptop when I have no internet, PIC and the Editor Services are both super slow. It took a good 5-minutes to scaffold out a project using plaster, and the intellisense never seems to load.
If I had to guess it's caused by something making a network call that takes too long and eventually times out.
Attached Logs
vscode-logs.zip
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: