Skip to content

Releases: Jaylor-Wang/dsh-tool-lsp

v0.1.0 - LSP Action Surface for DeepSeek Harness

Choose a tag to compare

@Jaylor-Wang Jaylor-Wang released this 18 Sep 09:33

English | 中文

English

Overview

dsh-tool-lsp is an LSP action surface plugin for DeepSeek Harness (DSH), exposing real language-server diagnostics, formatting, semantic renaming, code actions, and symbol navigation directly as five callable tools for AI models.

Key Features & Capabilities

  • Five First-Class Model Tools:
    • lsp_diagnostics: File diagnostics merging pull and push channels with cold-start backoff retry.
    • lsp_format: Whole-file and range formatting.
    • lsp_rename: Semantic workspace-wide symbol renaming.
    • lsp_code_action: Fixes and refactoring suggestions applied directly to source code.
    • lsp_symbols: Document outline and workspace symbol search.
  • Safety & Concurrency: Harness-native filesystem observation policy preventing stale writes with LSP_WRITE_CONFLICT.
  • Coordinate Transformation: Transparently handles 1-based UTF-16 editor coordinates and wire-level 0-based encodings.
  • Flexible Server Routing: Multi-language dispatching based on fileGlobs, projectMarkers, and extensionToLanguage.
  • Hot-Mount Support: Configured via the user profile's patch layer, supporting zero-restart toggling from dshmarket.

Installation & Verification

  • npm Package: dsh-tool-lsp
  • Install:
    dsh plugin --profile web add dsh-tool-lsp
    # or
    npm install dsh-tool-lsp
  • Test Suite: 124 unit tests passing with full protocol mock coverage.

Jump to Chinese / 跳转至中文


中文

概述

dsh-tool-lsp 是专为 DeepSeek Harness (DSH) 设计的原生 LSP 语言服务器工具能力包,将真实语言服务器的诊断、代码格式化、重命名、代码动作和符号导航封装为大模型可直接调用的 5 个核心工具。

核心特性

  • 五大模型原生工具
    • lsp_diagnostics:文件诊断(自动合并 pull 与 push 双通道,支持冷启动退避重试)。
    • lsp_format:整文件与指定选区范围格式化。
    • lsp_rename:跨文件的语义级符号安全重命名。
    • lsp_code_action:语言服务器修复建议与代码动作自动应用。
    • lsp_symbols:文档大纲结构与工作区符号检索。
  • 并发与写盘安全:接入 Harness 统一文件观测策略,在文件被并发修改时触发 LSP_WRITE_CONFLICT,杜绝静默覆盖。
  • 透明坐标转换:全自动处理 1-based UTF-16 行列号与协议层 0-based / UTF-8 编码的互转。
  • 多服务器智能分流:支持按 fileGlobsprojectMarkersextensionToLanguage 优先级精准路由。
  • 热插拔支持:配置置于用户 Profile 补丁层,可在 dshmarket 插件市场中无需重启即开即用。

安装与验证

  • npm 地址dsh-tool-lsp
  • 安装方式
    dsh plugin --profile web add dsh-tool-lsp
    #
    npm install dsh-tool-lsp
  • 测试验证:124 项单元测试全部通过,含模拟服务器全协议覆盖与真实服务器验证套件。

Back to English / 返回英文