keesschollaart81 / vscode-home-assistant

Visual Studio Code Extension for Home Assistant. ⭐ if you think this is cool!
MIT License
553 stars 117 forks source link

Auto-discover Home Assistant when running inside an add-on #3283

Open felipecrs opened 2 weeks ago

felipecrs commented 2 weeks ago

Add-ons have SUPERVISOR_TOKEN set as environment variable (for example Terminal add-on when running from VS Code Remote SSH. But even the regular VS Code add-on should have it.

felipecrs commented 2 weeks ago

We should be able to get rid of these lines once this is merged.

https://github.com/hassio-addons/addon-vscode/blob/18882c98a9d37349a816629ceb6c0b5c80bfcdf8/vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/run#L28