
Pasumao/dsh-plugin-workbench
30Last commit Aug 15, 2026
dsh-plugin-workbench DSH plugin
This plugin provides a file tree with lazy loading, auto-refresh, and per-workspace state. It includes editable code preview with syntax highlighting, multi-tab support, and theme switching. Requires a layout patch for integration.
How to install the dsh-plugin-workbench DSH plugin
dsh plugin --profile web add dsh-plugin-workbenchCopying does not run this command. Review the repository and version before installing the dsh-plugin-workbench DSH plugin.
dsh-plugin-workbench DSH plugin data source
dsh-plugin-workbench DSH plugin snapshot date: Aug 16, 2026
discovered
What the dsh-plugin-workbench DSH plugin can do
- File tree with lazy loading and 2-second auto-refresh, per-workspace expand state
- File icons with colored badges for code, emoji for media/archives, open/closed folder distinction
- Editable preview with transparent textarea over syntax highlighting, Ctrl+S / Cmd+S save
- Toggle soft wrap (line break only in display) or horizontal scroll, preference persisted per tab
- Multi-tab with drag-and-drop reorder, collapse/expand, light/dark theme toggle
- Syntax highlighting via highlight.js supporting JS/TS, Python, JSON, HTML, CSS, Markdown, Shell, and more
Where the dsh-plugin-workbench DSH plugin fits
- Browse and manage files directly within the DSH Web GUI
- Quickly edit and save code files without leaving the browser
- Work with multiple files simultaneously using tabbed interface
- Read code with syntax highlighting for better comprehension
- Toggle between light and dark themes for comfortable reading
Who the dsh-plugin-workbench DSH plugin is for
- DSH Web GUI users who need a built-in file explorer and editor
- Developers who frequently edit files within the DSH environment
dsh-plugin-workbench DSH plugin limitations
- Only works with DSH Web GUI (requires a layout patch targeting dsh-client-ui-layout@0.1.0-rc.6)
- RPC channel `/dsh-plugin-files` is restricted to loopback; write operations require `danger-full-access`
- DSH upgrades may overwrite the layout bundle, requiring re-running the patch script
- Syntax highlighting is limited to languages supported by highlight.js (listed in capabilities)
- The plugin does not include DSH build artifacts
dsh-plugin-workbench DSH plugin: from the repository README
Quoted from the Pasumao/dsh-plugin-workbench README, the upstream source of the dsh-plugin-workbench DSH plugin. Copyright remains with the original authors.
DSH Web GUI 的 VS Code 风格文件浏览器插件:文件树 + 可编辑代码预览 (语法高亮、标签页),每个工作区独立保存状态。**需要布局补丁**(见下)。 ## 功能 - 文件树:懒加载、2 秒自动刷新、每工作区独立展开状态 - 文件图标:常见格式显示着色徽章(代码)/ emoji(图片、音视频、压缩包等),目录展开/收起区分 - 可编辑预览:透明 textarea 叠加语法高亮,`Ctrl+S`/`Cmd+S` 保存 - 自动换行:标签栏一键切换软换行(仅显示层换行,不改动文件内容)或长行横向滚动,偏好持久化 - 标签页:多文件、拖拽排序、收起/弹出;亮暗主题一键切换 - 语法高亮:highlight.js(JS/TS、Python、JSON、HTML、CSS、Markdown、Shell 等) ## 安装 > 布局补丁针对 `dsh-client-ui-layout@0.1.0-rc.6` 编写,其他版本需更新锚点。 ```powershell # npm(推荐) dsh plugin --profile web add dsh-plugin-workbench # 或 GitHub dsh plugin --profile web add github:Pasumao/dsh-plugin-workbench ``` 安装后打布局补丁并重启: ```powershell node node_modules/dsh-plugin-workbench/scripts/patch-layout.mjs # 重启 dsh web ``` ## 开发 ```powershell pnpm install pnpm run build # 产出 lib/index.js(host)与 lib/client.js(browser) pnpm run typecheck ``` ## 卸载 ```powershell dsh plugin --profile web remove dsh-plugin-workbench # 并还原布局 bundle(patches/layout.backup/client.js.orig → dsh-client-ui-layout/lib/client.js) ``` ## 说明 - `/dsh-plugin-files` RPC 通道仅限 loopback;写操作显式以 `danger-full-access` 执行 - DSH 升级会覆盖布局 bundle,需重新运行补丁脚本;锚点失效时更新 `scripts/patch-layout.mjs` - 本仓库不包含 DSH 编译产物 ## 参与贡献 见 [CONTRIBUTING](./CONTRIBUTING.md) 与
Read the full READMERepository license: MIT
dsh-plugin-workbench DSH plugin questions
How do I install dsh-plugin-workbench?
You can install it via the DSH CLI: `dsh plugin --profile web add dsh-plugin-workbench`. Alternatively, use the GitHub source: `dsh plugin --profile web add github:Pasumao/dsh-plugin-workbench`. After installation, you must run the layout patch script: `node node_modules/dsh-plugin-workbench/scripts/patch-layout.mjs`, then restart the DSH web server.
Do I need to run a layout patch?
Yes, the plugin requires a layout patch to integrate with the DSH Web GUI. The patch script is at `node_modules/dsh-plugin-workbench/scripts/patch-layout.mjs`. It is designed for `dsh-client-ui-layout@0.1.0-rc.6`. If you update DSH, you may need to re-run the patch because the upgrade can overwrite the layout bundle.
How do I save changes in the editor?
Press `Ctrl+S` (or `Cmd+S` on macOS) to save the current file. The editor uses a transparent textarea overlaid on syntax-highlighted code, and saving triggers a write operation through the DSH plugin channel.
What programming languages are supported for syntax highlighting?
The plugin uses highlight.js and supports JS/TS, Python, JSON, HTML, CSS, Markdown, Shell, and more. The exact list can be found in the plugin's README or in the highlight.js configuration.
How do I uninstall the plugin?
Run `dsh plugin --profile web remove dsh-plugin-workbench`. Then restore the original layout bundle from the backup located at `patches/layout.backup/client.js.orig` to `dsh-client-ui-layout/lib/client.js`.