Open
Description
Problem
When opening PlatformIO Home:
VSCode extension appears to load from 127.0.0.1
instead of the GitHub Codespaces URL.
Solution
Check for CODESPACES=true
and CODESPACE_NAME
environment variables.
Applicable Code
I think this comes from:
iframe src
:platformio-vscode-ide/src/home.js
Lines 158 to 162 in 69bfc19
getFrontendUrl
: https://github.com/platformio/platformio-node-helpers/blob/b2a974c350bd5cfa2b680df5fdd762dbeef9df07/src/home.js#L46-L58constructServerUrl
: https://github.com/platformio/platformio-node-helpers/blob/b2a974c350bd5cfa2b680df5fdd762dbeef9df07/src/home.js#L33-L43_HTTP_HOST
: https://github.com/platformio/platformio-node-helpers/blob/b2a974c350bd5cfa2b680df5fdd762dbeef9df07/src/home.js#L29
let _HTTP_HOST = '127.0.0.1';
I'll try to fork and contribute when I can. Any advice would be greatly appreciated!