auchenberg / vscode-browser-preview

A real browser preview inside your editor that you can debug.
MIT License
4.39k stars 154 forks source link

Question: why do we need external chrome installed #199

Closed MatrixRanger98 closed 3 years ago

MatrixRanger98 commented 3 years ago

I am a little confused. Isn't VSCode based on Electron and Electron based partly on Chromium? Why do we need an extra Chrome for browser preview?

auchenberg commented 3 years ago

From the readme:

Browser Preview for VS Code enables you to open a real browser preview inside your editor that you can debug. Browser Preview is powered by headless Chromium, and works by starting a headless Chromium instance in a new process. This can either be Google Chrome or Microsoft Edge. This enables a secure way to render web content inside VS Code, and enables interesting features such as in-editor debugging and more!