跳到正文
TakoAPI
返回技能列表

typescript-lsp

由 bowen31337 提供

Web & Frontend Development
983下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

TypeScript language server providing type checking, code intelligence, and LSP diagnostics for .ts, .tsx, .js.

描述

该技能的功能

TypeScript/JavaScript language server providing type checking, code intelligence, and LSP diagnostics through typescript-language-server. Supports .ts, .tsx, .js, .jsx, .mts, .cts, .mjs, and .cjs files. Runs automatically in LSP-compatible editors or via the tsc command line.

Surfaces type errors and code navigation in the editor in real time, catching bugs that runtime testing or linting alone would miss.

何时使用

  • Catching type errors before committing code
  • Navigating a large codebase with go-to-definition
  • Renaming a variable or function across multiple files
  • Organizing imports in TypeScript or React components
  • Running continuous type checks while refactoring

示例工作流

输入

User asks: Check my TypeScript project for type errors

智能体
  1. 1

    Run tsc --noEmit in the project root

  2. 2

    Parse compiler output for errors and their locations

  3. 3

    Group errors by file

  4. 4

    Report each error with filename, line number, and description

输出

List of type errors with file paths and line numbers, or confirmation that the project is error-free

前置要求

  • typescript-language-server npm package installed globally
  • typescript npm package installed globally

安装

clawhub install bowen31337/typescript-lsp

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接