Tunnel VSCode network requests through WireGuard using wireproxy for enhanced security and bypassing regional restrictions. Automatically activates on startup to ensure seamless, secure connectivity.
⚡ Installation
Install the Extension:
Search for WireGuard for VSCode in the VSCode Marketplace and click Install.
Windows: Add the wireproxy.exe directory to your PATH:
Open System Properties → Advanced → Environment Variables.
Edit the Path variable and add the directory containing wireproxy.exe.
Linux/macOS: After installation, wireproxy is typically added to PATH automatically.
❓ Usage
Click the status bar item (WireGuard: No Config or similar) in the bottom-right corner of VSCode.
Select a WireGuard configuration file (.conf) via the file picker.
The extension will automatically start wireproxy, set the proxy, and update the status bar to WireGuard: <profile_name>.
💡 How It Works
The extension automates secure tunneling of VSCode’s network traffic (e.g., extension downloads, telemetry):
Sets http.proxy to http://127.0.0.1:25345 in VSCode settings.
Spawns the wireproxy process with the selected WireGuard .conf file.
Displays real-time connection status via the status bar with a tooltip showing the current status and port.
Handles errors gracefully, resetting the configuration if wireproxy fails or the config is invalid.
Uses "*" in activationEvents to activate immediately on VSCode startup, ensuring the proxy is set up before other extensions make network requests, allowing their traffic to be securely tunneled.
🌟 Contributing
This is a small personal project to simplify secure VSCode networking, but I’d love contributions! Feel free to open issues or submit pull requests on GitHub.
This extension is not officially affiliated with or endorsed by WireGuard LLC.