Skip to content

Integrated Browser + Live Preview: Handle case when VS Code restarts #295832

@jruales

Description

@jruales

Steps to Reproduce:

  1. Start a Live Preview for an HTML file
  2. Quit VS Code and start it again
  3. 🐛 Now the behavior will be different depending on the value of "livePreview.useIntegratedBrowser". We should try to match the old behavior that was there when Integrated Browser was disabled.

When livePreview.useIntegratedBrowser setting is false, the live preview browser window will briefly appear with a blank page, then it will automatically close itself when it realizes the live server is not running.

When livePreview.useIntegratedBrowser setting is true, the live preview browser window will open with a Connection Refused error and stay like that:

Image

We should consider closing the Browser window in this type of case to match the old behavior.

Metadata

Metadata

Labels

browser-integrationWeb browsing features integrated into VS Code (e.g. integrated browser)bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions