Investigate VS Code Tunnelling
There is a new concept in the VS code codebase, a tunnel. I see it in several places:
- Proposed extension API for making tunnels
- Tunnel service for communication with the main thread
- New type of connection (on top of the main thread and extension host connections)
But I haven't been able to decode from the code how this tunnel connection is used.
- Is it built on top of the existing WebSocket connections, or is it used instead of them?
- How do you implement and create a tunnel?
- Can I test it locally?
I think answering these questions will be the missing piece for understanding "how the new Microsoft code-server
feature works".
Edited by Tomas Vik