Why do I receive a timeout error while connecting to Spark labs?

What's happening

You fail to connect to Spark labs because of a timed-out connection to the host or the connection automatically drops after a few seconds.

How to fix it

Update the following settings from Visual Studio Code.

  1. Open Settings from Visual Studio Code.
  2. Search for Use Exec Server and select the checkbox to enable the feature.
  3. Refresh Spark labs extension by clicking the Refresh icon from the left navigation pane and try reconnecting.