yandeu / five-server-vscode

⚡ VSCode Extension for Five Server.
https://marketplace.visualstudio.com/items?itemName=yandeu.five-server
Other
120 stars 9 forks source link

Server doesn't respect "fiveServer.port" config #3

Closed Supportic closed 3 years ago

Supportic commented 3 years ago

Describe the bug I tried to open my workspace or just the folder. Neither it takes my workspace settings nor the ./vscode/settings.json under consideration when starting the server.

e.g. workspace.code-workspace

{
  "folders": [
    {
      "path": ".",
      "name": "Example"
    }
  ],
  "settings": {
    "fiveServer.port": 8000,
  }
}
yandeu commented 3 years ago

I guess I have to fix this.

For now, please use a .fiveserverrc.json or fiveserver.config.js file:

// .fiveserverrc.json
{
    "port": 8000
}
// fiveserver.config.js
module.exports = {
    port: 8000
}
yandeu commented 3 years ago

Fix! Should work once the next version is released.