/typescript-lsp:typescript-lspfrom MSApps TypeScript LSP
Provides semantic TypeScript/JavaScript code intelligence via tsserver: type errors, import resolution, go-to-definition, find-references, and hover type information. Useful for debugging type errors, understanding symbol definitions, and navigating codebases.
Ships in MSApps TypeScript LSP. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part of the LSP plugin series. Wraps typescript-language-server (tsserver) as a read-only, SOSA Level 1 intelligence source.
typescript-language-server --version works. If missing, run
npm install -g typescript typescript-language-server.tsconfig.json (TS) or jsconfig.json (JS) at the
root, or at least a package.json that tsc can discover..lsp.json wiring:
textDocument/publishDiagnostics → type/import errorstextDocument/definition → jump to definitiontextDocument/references → all call sitestextDocument/hover → inferred type / JSDocworkspace/symbol → fuzzy symbol searchfind-references over every exported symbol in the touched file.node_modules — report that, don't silently retry.Cannot find module for installed packages,
node_modules hasn't been populated (npm install). Note this before
trusting import counts.tsconfig.json to determine the project
boundary. With composite: true / project references, tsserver loads each
sub-project separately — navigate to the root tsconfig.json for full
cross-project references..js even
without types. Enable full checking with "checkJs": true in jsconfig.json.tsconfig.json that has references to all packages.tsconfig.json (strict React/Node project){
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
"jsx": "react-jsx",
"esModuleInterop": true,
"skipLibCheck": true,
"outDir": "./dist"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
"Cannot find module 'X' or its corresponding type declarations." Two causes:
node_modules not populated — run npm install (or pnpm install).@types/<package> missing — npm install --save-dev @types/<package>."find-references returns only hits in the current file." The symbol is probably not exported. tsserver only traces references to symbols accessible at the project boundary. If the function is local-only, references within the file are the complete set.
"JSX element type 'X' does not have any construct or call signatures."
tsconfig.json is missing "jsx": "react-jsx" or the wrong version of
@types/react is installed. Check both.
"tsserver is slow on a large monorepo."
Add "skipLibCheck": true and ensure node_modules are excluded. For
project references, each sub-package tsconfig should composite: true so
tsserver can use incremental builds.
"Type errors in .js files I didn't opt into."
Set "checkJs": false in your jsconfig.json / tsconfig.json. tsserver
respects this flag.
"Deno project — imports resolve to URLs, not paths."
tsserver doesn't understand Deno's URL imports natively. Use the
deno-language-server instead; this plugin targets Node/browser TypeScript.
tsconfig.json paths.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub msapps-mobile/claude-plugins --plugin typescript-lspOther plugins' skills for the same job