"Timed out waiting for the PowerShell extension to start" in Visual Studio Code

When you load a PowerShell script you may see following error messages:
Timed out waiting for the PowerShell extension to start

If you see error logs, following appears:
The language service could not be started

One possible reason is your PowerShell executive policy is set to "AllSigned". You can find the policy by run PowerShell command below.
Get-ExecutionPolicy

Run the following command in an elevated PowerShell window to change the policy.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

 

Popular posts from this blog

Moving to Blogger.com

How to Use Proxy on WSL 2

Connect-NsxtServer shows "Unable to connect to the remote server"