external-uri-sample.mp4
This small VS Code extension is a sample code for showing how to use vscode.env.asExternalUri API in a server environment, such as code-server or GitHub Codespaces. The video shown above was taken using code-server running on a local laptop.
- Install the .vsix file included in this repository in VS Code running in a server environment.
- Reload VS Code.
- Open Command Palette.
- Run External URL Sample command.
- Click the link found in the message box.
- Close the new tab.
- Check the new message box that indicates a URI handler was invoked.