vscode-browse-lite
vscode-browse-lite copied to clipboard
Browse lite open html as file:// url instead of http://localhost/
Describe the bug
Hi, I opened an index.html and select >Browse Lite: Open Active File in Preview
in Command Palette ...
, I expected a simple http server running (or use the existed vite
service) and open the index.html as http://localhost/
.
Reproduction
https://github.com/liudonghua123/vite-hello
System Info
Browse Lite: v0.3.6
VSCode:
Version: 1.84.2 (user setup)
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:51:52.184Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22631
### Used Package Manager
yarn
### Validations
- [X] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guide](https://github.com/antfu/contribute).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.