# @elyracode/lsp-typescript

TypeScript LSP integration for Elyra. Starts a `typescript-language-server` process per session and exposes semantic code navigation and diagnostics as agent tools.

## Prerequisites

The project must have both packages installed:

```bash
npm install -D typescript typescript-language-server
```

The extension looks for `typescript-language-server` in the project's `node_modules/.bin/` first, then falls back to a global installation.

A `tsconfig.json` must exist in the project root. The extension does nothing if one is not found.

## Installation

```bash
elyra install npm:@elyracode/lsp-typescript
```

## Available Tools

| Tool | Description |
|------|-------------|
| `lsp_definitions` | Go to the definition of a symbol at a given file position |
| `lsp_references` | Find all references to a symbol across the project |
| `lsp_diagnostics` | Get TypeScript errors and warnings for a file |
| `lsp_hover` | Get type information and documentation for a symbol |

All tools accept 1-based line and column numbers and return human-readable text results.
