Skip to main content

lsp

Use when Codex needs language-server diagnostics, definitions, references, symbols, or rename safety checks in the current workspace.

来源信息

仓库
code-yeongyu/lazycodex
最近来源活动
2026年6月20日 03:43
检测到的 SKILL.md 语言
英语
星标
3,909
Forks
254

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
lsp
description
Use when Codex needs language-server diagnostics, definitions, references, symbols, or rename safety checks in the current workspace.
# Codex LSP Call `lsp` MCP tools through the tool interface; `lsp.*`/`mcp__lsp__*` are tool-call names, not shell commands. ## Tools - `lsp.status`: list configured, installed, missing, disabled, and active language servers. - `lsp.diagnostics`: check one file or directory for LSP diagnostics. Prefer `severity: "error"` after edits. - `lsp.goto_definition`: locate a symbol definition from file, line, and character. - `lsp.find_references`: find usages of a symbol across the workspace. - `lsp.symbols`: inspect document symbols or search workspace symbols. - `lsp.prepare_rename`: check whether a rename is valid at a position. - `lsp.rename`: apply a language-server workspace edit for a rename. ## Config Project config lives at `.codex/lsp-client.json`; user config lives at `~/.codex/lsp-client.json`. ```json { "lsp": { "typescript": { "command": ["typescript-language-server", "--stdio"], "extensions": [".ts", ".tsx", ".js", ".jsx"] } } } ``` Use `lsp.status` first when diagnostics report a missing language server.
在 GitHub 查看