jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
8.62k stars 199 forks source link

[Feature Request] Handle devbox.sh terminal links #1132

Open mikenikles opened 1 year ago

mikenikles commented 1 year ago

Use the registerTerminalLinkProvider function (API docs, example code) to rewrite http://localhost:xyz links in the terminal to the correct link that works on devbox.sh.

For example, when I click on https://localhost:5173 in the terminal seen in the screenshot below, I'd like a new browser tab to open which loads https://devbox.sh/app/projects/uuid/port/5173.

image

Update: I should have mentioned this likely has a few prerequisites. For one, devbox.sh needs to support VS Code extensions through https://open-vsx.org. Secondly, a Devbox extension should be installed by default which contains the registerTerminalLinkProvider code mentioned above.

### Tasks
- [ ] [Devbox Cloud] Support VSCode extensions through open-vsx.org
- [ ] [VSCode] Add the `registerTerminalLinkProvider` to the Devbox VSCode extension
Lagoja commented 1 year ago

@LucilleH + Mohsen to take a look

mohsenari commented 1 year ago

@mikenikles thanks for the suggestion, I'll take a look and implement this.