antfu / vscode-vite

One step faster for Vite in VS Code ⚡️
https://marketplace.visualstudio.com/items?itemName=antfu.vite
452 stars 25 forks source link

Switch to built-in "Simple browser" #26

Open septatrix opened 1 year ago

septatrix commented 1 year ago

Clear and concise description of the problem

Currently there is a plethora of bugs with the embedded browser. It...

Suggested solution

VSCode has a built-in "Simple browser" extension since a while ago: https://github.com/microsoft/vscode/pull/109276

As it is a proper built-in extension and uses the rendering engine already embedded inside electron it does not suffer from the problems of the current screensharing architecture. This will likely resolve every issue listed above!

Alternative

Fix vscode-browse-lite, though I do not consider this worth the effort given the limitations of it architecture.

Additional context

The only drawback will be that devtools will be a bit less nice. One has to use the electron devtools (Help > Toggle Developer Tools) which are not in a nice tab like the current ones. However, I definitely consider this drawback justified given the amount of advantages this switch would bring. Furthermore, one can still open it in an external browser if some parts of the devtools are limiting inside VSCode.

Validations