ritwickdey / vscode-live-server

Launch a development local Server with live reload feature for static & dynamic pages.
https://ritwickdey.github.io/vscode-live-server
MIT License
5.59k stars 1.2k forks source link

Not opening selected file on right-click -> Open with Live Server #2874

Open mor10 opened 7 months ago

mor10 commented 7 months ago

I'm submitting a...

[x] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior

Right-click on the filename in the explorer or directly on the file and select "Open with Live Server the browser window opens on the root index.html file instead. This is persistent across multiple repositories and different projects and happens both in CodeSpaces and on local VS Code

Expected behavior

"Open with Live Server" should open the selected file in the browser.

Real-world example

Environment

Browser:

- [x] Chrome (desktop) version XX
- [x] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:

- Live Server: v5.7.9 <!-- Check which version is installed --> 
- Platform:  GitHub Codespaces
- Visual Studio Code: GitHub Codespaces<!-- `code --version` -->

Others

Maaz0313 commented 6 months ago

I am also facing same issue.