From 2b5cf9f0c1a81ffac86669b72e2e1374f8f7bb7e Mon Sep 17 00:00:00 2001 From: Urvish Lanje Date: Thu, 2 Apr 2026 15:50:56 +0000 Subject: [PATCH] feat: initial VS Code extension for OpenClaude Introduce OpenClaude as a first-class VS Code extension with: - Built-in Control Center sidebar for seamless workflow integration - Terminal-first design with authentic monospace UI and ASCII styling - Quick-launch buttons for OpenClaude terminal, repository access, and command palette - Status display showing runtime and OpenAI shim configuration - Dark theme optimized for focus and extended development sessions - Proper extension manifest with activation events and contribution points - Debug configuration for local development This extension provides developers with direct access to OpenClaude without leaving VS Code, enabling a tighter integration with the editor. --- .../openclaude-vscode/.vscode/launch.json | 13 ++ .../openclaude-vscode/package.json | 1 + .../openclaude-vscode/src/extension.js | 202 +++++++++++++++--- 3 files changed, 182 insertions(+), 34 deletions(-) create mode 100644 vscode-extension/openclaude-vscode/.vscode/launch.json diff --git a/vscode-extension/openclaude-vscode/.vscode/launch.json b/vscode-extension/openclaude-vscode/.vscode/launch.json new file mode 100644 index 00000000..b521eca0 --- /dev/null +++ b/vscode-extension/openclaude-vscode/.vscode/launch.json @@ -0,0 +1,13 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Extension", + "type": "extensionHost", + "request": "launch", + "args": ["--extensionDevelopmentPath=${workspaceFolder}"], + "outFiles": ["${workspaceFolder}/out/**/*.js"], + "preLaunchTask": "${defaultBuildTask}" + } + ] +} diff --git a/vscode-extension/openclaude-vscode/package.json b/vscode-extension/openclaude-vscode/package.json index 4cd42b1d..9b32b0ed 100644 --- a/vscode-extension/openclaude-vscode/package.json +++ b/vscode-extension/openclaude-vscode/package.json @@ -12,6 +12,7 @@ "Other" ], "activationEvents": [ + "onStartupFinished", "onCommand:openclaude.start", "onCommand:openclaude.openDocs", "onCommand:openclaude.openControlCenter", diff --git a/vscode-extension/openclaude-vscode/src/extension.js b/vscode-extension/openclaude-vscode/src/extension.js index daf48133..6a6bd443 100644 --- a/vscode-extension/openclaude-vscode/src/extension.js +++ b/vscode-extension/openclaude-vscode/src/extension.js @@ -33,8 +33,8 @@ class OpenClaudeControlCenterProvider { return; } - if (message?.type === 'theme') { - await vscode.commands.executeCommand('workbench.action.selectTheme'); + if (message?.type === 'commands') { + await vscode.commands.executeCommand('workbench.action.showCommands'); } }); } @@ -48,62 +48,196 @@ class OpenClaudeControlCenterProvider { -
-
OpenClaude Control Center
-
Launch OpenClaude, jump to docs, and quickly tune the editor vibe.
- - - +
+
+ openclaude control center + online +
+
+
+
READY FOR INPUT
+
Terminal-oriented workflow with direct command access.
+
+ +
+
$ openclaude --status
+
runtime: active
+
shim: CLAUDE_CODE_USE_OPENAI=1
+
$ awaiting command
+
+ +
+ + + +
+ +
+ Quick trigger: use Ctrl+Shift+P and run OpenClaude commands from anywhere. +
+
+ `;