@ agent-forge/plugin-lsp-诊断器
LSP 诊断能力插件 福吉探员,从
主办单位 src/plugins/lsp (D-075 S3) (英语). 它注册了一个只读工具, lsp_diagnostics,请主机
使用不透明的工作空间/文档引用来读取语言服务器会话中绑定的诊断.
该插件在负载时间没有独立的语言服务器绑定自有. 没有主机注入解析器/客户端
连接工具报告一个明确的 unsupported 结果; 需要真实诊断的宿主绑定
createNodeLspRealHostV1 (tserver/pyright/clangd 在一个工作空间目录上)或他们自己的客户端.
安装
# from a local checkout
agent-forge plugin install ./plugins/lsp-diagnostics
# from npm
agent-forge plugin install @ai-agent-forge/plugin-lsp-diagnostics
货包船有两艘货单: agent-forge.json (确定性插件解析器显示的生态系统)和
plugin.json (主机载重清单 loadCapabilityPluginFromManifest条目 ./dist/entry.js) (中文(简体) ).
图书馆表面
import { createNodeLspAdapterV1, createLspDiagnosticsCapabilityFactoryV1 } from "@agent-forge/plugin-lsp-diagnostics";
createNodeLspAdapterV1(options?)——只读适配器;需要主机注入resolver编号 :client生产 结果, 否则返回unsupported。 。 。 .createDeterministicLspAdapterV1(fixtures)用于测试的确定性固定适配器.createNodeLspRealHostV1({ workspaceDirectory, ... })——真实语言服务器主机(tserver/pyright/clangd).createLspDiagnosticsCapabilityFactoryV1(adapter)- 登记册lsp_diagnostics编号CapabilityAPI。 。 。 .- 默认导出
dist/entry.js——外部插件加载所使用的预编厂.
发展
npm install --ignore-scripts # repo root, creates the workspace symlink
npm run build # plugins/lsp-diagnostics (tsgo)
npm test # vitest; the entry fidelity test requires `npm run build` first