axetroy / vscode-static-server

vscode extension to serve a static directory
https://marketplace.visualstudio.com/items?itemName=axetroy.vscode-static-server
Other
4 stars 0 forks source link

[FER] Possibly an option listening address, other than 0.0.0.0 ? #135

Open yw662 opened 2 years ago

yw662 commented 2 years ago

https://github.com/axetroy/vscode-static-server/blob/1448bd3fea729a0e56eb3e53b36ca869cb22f2b3/src/index.ts#L53

Just to make it clear I am really grateful for this extension as an alternative to live server without live reloading, so that I won't need to start a static server manually.

It may not be a very big issue when you are inside a private network that the server listen to 0.0.0.0, but there are occasions that you may want to make it localhost. It would be great if there can be an option for it.

Not a hard one but I also noticed that you may not have time for it. Would like to help with it if you want.

yw662 commented 2 years ago

Or just change the port option to listening, so that it can be also a unix socket ?