Sim-xia/dsh-vscode-theme
allow deepseek harness to use .vsix theme file designed for visual studio code
已收录
1
Theme
Bundle 已验证
功能介绍
导入为 Visual Studio Code 设计的 .vsix 主题文件并应用到 DSH Web UI。
适合
- 希望在 DSH Web 中复用以 VS Code .vsix 包发布的视觉主题的用户。
- 希望在浏览器本地导入并切换主题变体、且不上传 VSIX 文件的用户。
- 需要从工作区 VSIX 文件检查完整 VS Code 工作台颜色和语法 token 规则的 Agent。
不适合
- 不需要 DSH 界面主题的 headless 或非网页工作流。
- 希望 VS Code 主题中的语法 token 颜色直接改变 DSH 界面的用户;这些规则仅保留为解析数据,不用于界面着色。
- 并非以兼容 .vsix 文件提供的主题来源。
README
DSH VS Code Theme
| English | 简体中文 |
dsh-vscode-theme adds a VS Code theme importer to DeepSeek Harness Web. In Settings -> Plugins -> VS Code Themes, drag in a .vsix file, select one of the theme variants it contains, and the DSH interface switches immediately. Parsing happens in the browser; the VSIX is not uploaded. The interface follows DSH’s selected language and supports English and Simplified Chinese.
The plugin also exposes vscode_theme_parse for agents that need the complete VS Code color and token data from a workspace file.
Install
Install directly from GitHub:
dsh plugin --profile web add github:Sim-xia/dsh-vscode-theme
When running DSH from its source checkout, use the equivalent command:
pnpm dsh plugin --profile web add github:Sim-xia/dsh-vscode-theme
The package declares a DSH bundle patch, so the command also enables it in that profile. Restart the profile. The plugin depends on DSH’s standard fs and tools services, which the web profile provides.
For local development, replace the GitHub specifier with this repository’s absolute path.
Use the UI
Restart the DSH Web profile after installing or rebuilding this package, then open Settings -> Plugins -> VS Code Themes. Drop a VSIX onto the import panel or choose it from disk. Every imported VSIX is stored in this browser’s IndexedDB; use the saved-package menu to switch between them after a refresh or DSH restart. They are never uploaded. A theme applied through this plugin remains applied after a refresh; choosing a different DSH theme clears that restoration preference.
DSH and VS Code have different visual-token systems. The importer maps the workbench palette (backgrounds, text, borders, focus, selection, status colors, and sidebar) into DSH’s UI tokens. Syntax token colors remain available to the agent parser but do not recolor the DSH interface.
Use from an agent
Ask the agent to inspect a VSIX, or call the registered tool directly:
{
"path": "/workspace/piousdeer.adwaita-theme-1.1.0.vsix",
"theme": "Adwaita Dark",
"detail": "summary"
}
Use detail: "full" to return every resolved color and token rule. The default summary returns metadata, rule counts, inherited files, and the first 24 workbench colors to keep ordinary model context compact.
Development
Building and publishing require Node.js 22 or later. The compiled host plugin targets Node.js 20 for DSH runtime compatibility.
npm install
npm run check
npm run build
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:Sim-xia/dsh-vscode-theme。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。