Sim-xia/dsh-vscode-theme

插件Plugin 原生Native ⭐ 2 MIT

允许deepseek harness使用为Visual Studio Code设计的.vsix主题文件

项目介绍Project Overview

dsh-vscode-theme 是 DSH Web 插件,可在“设置 -> 插件 -> VS Code Themes”中拖入 .vsix 主题包并即时切换界面配色;VSIX 在浏览器本地解析并存入 IndexedDB,不上传。它还向智能体提供 vscode_theme_parse 工具,用于读取完整 VS Code 颜色与令牌数据。适合想复用 VS Code 主题或让代理分析主题文件时使用。注意:仅工作台调色板映射到 DSH,语法令牌颜色不会改变界面。

dsh-vscode-theme is a DSH Web plugin that imports VS Code themes from .vsix files via Settings → Plugins → VS Code Themes, switching the interface immediately. Parsing runs locally in the browser, with packages stored in IndexedDB and never uploaded. It also exposes a vscode_theme_parse tool for agents needing full VS Code color and token data. Use it to reuse VS Code themes or inspect theme files. Caveat: only workbench palette colors map to DSH; syntax token colors do not recolor the UI.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile web add github:Sim-xia/dsh-vscode-theme

Sim-xia/dsh-vscode-theme 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

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
上一个 Prev dsh-llm-deepseek-vision 下一个 Next dsh-ipcalc