AI Colab
AI Colab combines compact status bar metrics with problem context commands for AI-assisted development. Status bar
Editor and Git updates are event-driven and debounced. Git results are cached per repository, at most two repositories are scanned concurrently, agent scans never overlap, and commands stop when VS Code loses focus. Commands
Diagnostic context contains severity, source, a full source range, and a bounded raw-code preview:
Locations use Copy Context uses the diagnostic plus surrounding lines. Copy Context and Run uses the selected range when present, or the current non-empty line without a selection. Without a nearby diagnostic, Copy Context and Run copies only the location and preview, without a suffix. Previews default to at most 200 UTF-16 characters, preserving the beginning and end with When a diagnostic is present, Copy and Run appends the configured suffix as a separate paragraph. It always writes the final text to the clipboard before checking workspace trust or active-terminal availability, then focuses the terminal and invokes VS Code's normal paste action. This uses bracketed paste when supported and otherwise follows VS Code's multiline-paste warning settings. The extension does not append Enter, but execution prevention depends on the receiving program and paste settings; it is not guaranteed for every terminal. Settings
Interval changes apply without reloading VS Code. Themes by VS Code buildSet separate synced theme choices in User Settings:
Use each theme's exact When the running build's choice is non-empty, AI Colab applies it on startup and setting changes. It overwrites the active user theme, removes workspace theme overrides, and disables automatic OS color-scheme and high-contrast switching. Manual theme setting changes are overwritten. Custom UI colors, syntax colors, and icon themes are preserved. AI Colab adds Empty choices leave theme settings untouched. Clearing a choice stops enforcement but does not restore overwritten settings or remove the sync exclusion. In local windows, unknown or missing themes produce a warning without changing settings. SSH windows are supported: build detection uses the local client identity, while Git and agent metrics still run remotely. Install the selected theme in the local client. Remote extension hosts cannot validate locally installed themes, so a missing theme may fall back to VS Code’s default. Existing remote-user theme overrides are overwritten; Stable and Insiders normally use separate server settings directories. Do not configure the two builds to share remote-user settings directories, which would let their theme overrides conflict. Integrated browser linksEnable this user setting to route normal HTTP/HTTPS link clicks to VS Code's integrated browser:
Requires a recent VS Code desktop build with the integrated browser and the built-in Simple Browser extension enabled. AI Colab replaces user-level This covers links routed through VS Code's contributed link openers, including normal editor and terminal web links. Remote windows (SSH, containers, WSL) are not managed because the extension API merges local and remote user routing without exposing separate values for safe restoration. Local user routing may still apply there. Workspace-level opener rules can override user rules. Extensions that explicitly bypass contributed openers, explicit external-browser actions, and non-HTTP/HTTPS links are not intercepted. Authentication links may require an external browser. The setting applies after AI Colab activates on startup. Trust and platform limitsEditor selection/instruction-file metrics and clipboard copying work in Restricted Mode. Git commands, agent process scans, and terminal submission require Workspace Trust. Git and agent metrics require trusted local-file workspace folders; multi-root results are combined. Git metrics use VS Code's Git API when available and otherwise scan top-level workspace folders. Untracked files count as changed files but not added lines; binary changes add no line totals. Command output is limited to protect the extension host. Agent detection uses InstallNode.js 22 or newer is required to build the extension.
Development
|