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.57k stars 1.2k forks source link

working with php | proxy configured but not auto reloading #2940

Open salehawal opened 1 month ago

salehawal commented 1 month ago

I'm submitting a issue i am facing to enable live server to work with php

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

Current behavior

in my case i was able to configure live server to work with php localhost server by configuring the proxy setting in live server, "without the need for a browser extension", but the problem is the auto reloading on save is not working, thats the only remaining problem

my config in "settings.json": "liveServer.settings.proxy": { "enable": true, "baseUri": "/", //"proxyUri": "http://localhost/ws/development/${workspaceFolderBasename}" "proxyUri": "http://localhost/ws/development/saleh" },

also as you see in the commented code, i was not able to use settings variable, it is not working

Expected behavior

1- auto reloading should work, it is not working 2- the value "${workspaceFolderBasename}" should work instead of hard-coding the project folder name

Environment

Browser:

- [ ] 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
- Platform:  ubuntu linux 23.10
- Visual Studio Code: 1.89.1

Others