Claude Code 2.1.325 接 入 TypeScript 7.0.2 LSP 后 未 收到 编辑 后 的 类型 错误
2026/11/29
Claude Code 2.1.325 与 TypeScript 7.0.2 的 LSP 诊断方式不匹配,验证环境中编辑后收不到类型错误
正在加载新闻...
圣诞快乐,新年快乐!
正在打开文章...
2026/11/29
Claude Code 2.1.325 与 TypeScript 7.0.2 的 LSP 诊断方式不匹配,验证环境中编辑后收不到类型错误
Claude Code 可通过插件接入语言服务器(LSP)。TypeScript 7.0.2 的 tsc 有 --lsp 选项,标准输入输出时还需 --stdio,能当语言服务器用,作者为此写了个三文件小插件。
tsc --lsp --stdio--debug 查日志有无 textDocument/diagnostictsc -b --noEmit 兜底查错