Skip to main content

How to use dsh-plugin-vscode-sidebar

Adds a Visual Studio Code-style sidebar with its layout and functionality to the harness.

This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.

This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.

Quick start

Adds a Visual Studio Code-style sidebar with its layout and functionality to the harness.

— source: plugins.ai_summary

Install & verify

dsh plugin --profile web add --allow-build=dsh-plugin-vscode-sidebar github:gameswu/dsh-plugin-vscode-sidebar

Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.

— source: plugins.install

Key points

  • 文件浏览器:懒加载目录树 + vscode-icons 按文件类型图标;支持新建文件/文件夹、重命名、删除(删除需确认);在 git 仓库中按 .gitignore 将被忽略的文件低亮度灰显(类似 VSCode,仍保留在列表中),并显示 git 状态字母徽章
  • 编辑器:Monaco(VSCode 同源编辑器)文本编辑,全语言语法高亮;tab 标题显示未保存圆点,Ctrl+S 保存;关闭含未保存改动的 tab 时询问保存(可在设置中改为自动保存);图片 / Markdown / HTML / PDF 内联预览
  • Markdown 预览:DSH 渲染器 + KaTeX 数学公式与图片渲染;文档内的相对链接与文件提及可直接跳转打开对应文件
  • 源代码管理:类 VSCode Git 面板——彩色状态徽章、+a −d 行数统计、行内 diff、提交、分支切换(含 ahead/behind)、历史记录泳道轨迹图;自动探测子目录中的 git 仓库(可配置排除目录)
  • 终端:xterm.js + node-pty 真实 shell,可选为模型注入 terminal_* 工具

— source: plugin_wiki.readme_en (fallback readme_raw)

Pitfalls

Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.

— source: general rule