How sufyandahalan/vsworkbench works
VSWorkbench is a VS Code extension that brings GitLab group/project browsing, issues, and CI pipelines into the editor. The main flow is sign-in, browse groups and projects, select a project, then inspect its issues or pipelines and jobs. The groups view also exposes project operations such as cloning. The excerpts show API calls and key view behavior; some wiring and webview details are only identified by the source index, so those connections are limited to documented or indexed references.
Main entry points: index.ts API client · groups.ts Groups and projects · extension.ts Extension activation · functions.ts Authentication settings
Components 20
Extension entry
- Extension activation
src/extension.ts - Authentication settings
src/globals/functions.ts - Extension events
src/globals/event.ts - Command registration
src/commands/index.ts
GitLab browsing
- API client
src/api/index.ts - Groups and projects
src/views/groups.ts - Tree item model
src/views/node.ts - Project commands
src/commands/project.ts - Project detail webview
src/webviews/editor/index.ts
Issue workflows
- Issue tree view
src/views/issues.ts - Issue commands
src/commands/issue.ts - Issue webview
src/webviews/issues/App.ts - Issue webview host
src/webviews/issues/index.ts - Issue queries
src/api/Queries.ts
CI workflows
- Pipeline commands
src/commands/pipeline.ts - Pipeline and jobs
src/views/pipelines.ts - Pipeline webview
src/webviews/pipelines/App.ts - Pipeline webview host
src/webviews/pipelines/index.ts
Other components
- Developer
- GitLab API
Connections 25
- Developer → Extension activation: activates
src/extension.ts - Extension activation → Authentication settings: configures auth
src/extension.ts - Extension activation → Command registration: registers commands
src/extension.ts - Extension activation → Groups and projects: registers views
src/extension.ts - Authentication settings → API client: sets credentials
src/globals/functions.ts - Authentication settings → Extension events: signals sign-in
src/globals/functions.ts - API client → GitLab API: sends requests
src/api/index.ts - Groups and projects → API client: loads groups
src/views/groups.ts - Groups and projects → Tree item model: creates items
src/views/groups.ts - Groups and projects → Issue tree view: opens issues
src/views/groups.ts - Groups and projects → Pipeline and jobs: opens pipelines
src/views/groups.ts - Groups and projects → Project detail webview: opens details
src/views/groups.ts - Groups and projects → Project commands: calls clone command
src/views/groups.ts - Project commands → API client: manages projects
src/commands/project.ts - Issue tree view → API client: loads issues
src/views/issues.ts - Issue commands → API client: uses API
- Issue webview host → Issue webview: hosts UI
src/webviews/issues/index.ts - Issue webview → API client: fetches and updates
src/webviews/issues/App.ts - Issue webview → Issue queries: uses query
src/webviews/issues/App.ts - Pipeline and jobs → API client: loads pipelines and jobs
src/views/pipelines.ts - Pipeline commands → API client: loads pipelines
src/commands/pipeline.ts - Pipeline webview host → Pipeline webview: hosts UI
- Pipeline webview → API client: uses API
src/webviews/pipelines/App.ts - Command registration → Issue commands: exports commands
src/commands/index.ts - Command registration → Pipeline commands: exports commands
src/commands/index.ts