تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

typescript-lsp

بواسطة bowen31337

Web & Frontend Development
983التنزيلات وفق ما يذكره clawskills.sh
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

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط