dsh-wsl-editor: 在 Windows 编辑器中打开 WSL 路径

DeepSeek Harness (DSH) 采用模块化插件架构。在开发流程中,常需要在 WSL Linux 环境与 Windows 编辑器(如 Cursor 或 VS Code)之间切换。dsh-wsl-editor 插件专门解决这一痛点,通过提供统一的工具接口,将 WSL 路径映射到 Windows 本地编辑器。

插件介绍

该插件属于 dsh-wsl-kit 生态的一部分。它提供一个名为 win_editor 的工具,用于在 Windows 环境下打开指定路径。同时提供 win_editor_status 工具,用于检查当前 Windows PATH 中可用的编辑器。

安装与启用

安装该插件需要执行以下命令。该插件版本为 0.1.1,且依赖 dsh 版本 >= 0.1.2。

dsh plugin --profile web add github:173787247/dsh-wsl-editor

安装完成后,请重启 dsh web 服务,并打开一个新的会话。此时,win_editor 和 win_editor_status 两个工具将可用。

核心功能

插件提供两个核心工具:

  • win_editor: 用于打开文件。
  • win_editor_status: 用于检查环境配置。

使用示例

win_editor 工具接受路径以及可选的编辑器名称、行号和列号。

不同编辑器对参数的处理方式不同:

  • Cursor / VS Code: 使用 -g file:line:column 参数。插件会自动拼接该参数以支持行号和列号的跳转。
  • Notepad: 不支持行号和列号跳转,会忽略该参数。

环境与依赖

  • 依赖版本: 该插件需要 dsh >= 0.1.2,以及 Node >= 18。
  • 所属套件: 它是 dsh-wsl-kit 的一部分,可单独安装或使用 kit 的 full 集合。
  • Cloud Flash: 插件本身不配置 Cloud Flash 的模型,Cloud Flash 使用 deepseek-flash (V4.1 Flash) 模型。

总结

dsh-wsl-editor 通过 win_editor 工具,简化了 WSL 路径在 Windows 编辑器中的打开流程。对于需要在 Windows 端进行代码审查或编辑的开发者,这是一个实用的辅助工具。

GitHub 仓库 | 社区目录

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜