How progrium/go-vscode works
Main Components
a) Core Components:
• VSCode Web Frontend (from embedded vscode-web artifact)
• Go Library Interface Layer
• Virtual File System Interface
• Terminal (PTY) Interface
• HTTP Server Component
b) Integration Points:
• Custom Application Integration
• Browser Client
• File System Implementation
• Terminal Implementation
[Browser Client Layer]
• ↕
[HTTP Server Layer (Workbench Handler)]
• ↕
[Go Library Core]
• ↙ ↓ ↘
[FS] [PTY] [Product Config]
Component Details
a) Client Layer:
• Browser (Web Client)
• VSCode Web UI (assets/index.html + embedded vscode-web)
• Bridge.js (assets/bridge.js)
b) Server Layer:
• Workbench Handler (workbench.go)
• HTTP Server Interface
c) Core Library Components:
• Workbench Configuration
• Virtual File System (internal/zipfs)
• PTY Interface (pty.go)
• Product Configuration (product/product.go)
Connection Types
• HTTP/WebSocket connections (between browser and server)
• Internal API calls (between components)
• File system operations (between FS interface and implementation)
• Terminal I/O (between PTY interface and implementation)
Implementation Notes
• Custom FS implementations
• Custom Terminal implementations
• Custom Product configurations