Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

typescript-lsp

/typescript-lsp

Używa serwera języka TypeScript do precyzyjnej analizy kodu w repozytorium clickhouse-js: definicje, referencje, hover z typami i JSDoc, wyszukiwanie symboli, uzupełnianie i diagnostyka typów.

Repozytorium
clickhouse-js ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Używa serwera języka TypeScript do precyzyjnej analizy kodu w repozytorium clickhouse-js: definicje, referencje, hover z typami i JSDoc, wyszukiwanie symboli, uzupełnianie i diagnostyka typów.

Oryginalny opis (EN)

Use the TypeScript language server (`typescript-language-server`) for precise code intelligence in the `clickhouse-js` repository: go-to-definition, find references, hover (type signatures and JSDoc, including `@deprecated` info), workspace-wide symbol search, completions, and per-file type diagnostics. Prefer this over grep when you need to resolve a symbol's actual definition, find all usages of an exported API, or inspect inferred types across the `packages/*` workspaces. The server is preinstalled as a root devDependency — run the repository `setup` skill (`npm install`) first so `node_mod

Jak działa

  1. Starting the server
  2. Protocol essentials
  3. Verified capabilities (typescript-language-server 5.x, TS 6.x)
  4. Tips
Sekcje z nagłówków SKILL.md, w oryginale · 54 linii, 341 słów
Podgląd SKILL.md
---
name: typescript-lsp
description: >
  Use the TypeScript language server (`typescript-language-server`) for precise
  code intelligence in the `clickhouse-js` repository: go-to-definition, find
  references, hover (type signatures and JSDoc, including `@deprecated` info),
  workspace-wide symbol search, completions, and per-file type diagnostics.
  Prefer this over grep when you need to resolve a symbol's actual definition,
  find all usages of an exported API, or inspect inferred types across the
  `packages/*` workspaces. The server is preinstalled as a root devDependency —
  run the repository `setup` skill (`npm install`) first so `node_modules` is
  populated. Do NOT use this skill for downstream projects that merely depend
  on `@clickhouse/client`; it is specific to working inside this repo.
---

# TypeScript Language Server in clickhouse-js

`typescript-language-server` is declared as a root devDependency, so after
`npm install` (see the `setup` skill) it is available via `npx` and uses the
workspace-local `typescript` (6.x) compiler, matching CI exactly.

The server (6.x) requires Node.js >= 22.22.2, newer than the repository's
Node 20 minimum; on Node 20 `npm install` only warns, but the server isn't supported there.

## Starting the server

From the repo root:

```bash
npx typescript-language-server --stdio
```

It speaks LSP (JSON-RPC, `Content-Length`-framed) over stdio. There is no
extra configuration: each `packages/*` workspace, `tests/clickhouse-test-runner`,
`examples/node`, and `examples/web` has its own `tsconfig.json`, and the
server picks the nearest one per opened file automatically.

## Protocol essentials

1. Send `initialize` with `rootUri`/`workspaceFolders` pointing at the repo
   root, then the `initialized` notification.
2. Send `textDocument/didOpen` with the full file text for every file you
   want to query (the server reads dependencies from disk on its own; only
   files you query positions in need to be opened).
3. Positions are **0-based** (line and character).

## Verified capabilities (typescript-language-server 5.x, TS 6.x)

| Request                   | Notes                                                                                                                                                                                                           |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `textDocument/hover`      | Returns the full inferred signature + JSDoc markdown                                                                                                                                                            |
| `textDocument/definition` | Resolves across workspace packages via source, not `dist/`                                                                                                                                                      |
| `textDocument/references` | Within the opened file's project                                                                                                                                                                                |
| `workspace/symbol`        | e.g. query `ClickHouseClient` finds class + re-exports                                                                                                                                                          |
| `textDocument/completion` | Context-aware member completions                                                                                                                                                                                |
| Diagnostics               | **Push only** (`textDocument/publishDiagnostics` notifications, sent ~1–3s after `didOpen`). The pull `textDocument/diagnostic` request is _not_ supported (`-32601`) — wait for the push notification instead. |

## Tips

- If your environment provides built-in LSP/code-intelligence tooling, point
  it at `npx typescript-language-server --stdio` with the repo root as the
  workspace folder.
- For one-off scripted queries, spawn the server from Node, frame messages
  with `Content-Length: <bytes>\r\n\r\n<json>`, and match responses by `id`.
- A full workspace typecheck is still `npm run build && npm run typecheck`
  (build first — some workspaces import compiled `dist/` outputs); the LSP is
  for targeted, interactive queries, not for CI-equivalent validation.

Wersje

RepozytoriumWynikLicencja
Ta strona · clickhouse/clickhouse-js100Apache-2.0
msapps-mobile/claude-plugins100MIT

Migawka bazy z 13.11.2026 · wersja paczki 2413996b4528 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100python-lsp
    Wykonuje semantyczne zapytania o kod Python przez klienta LSP z pyright-langserver: definicje, referencje, typy z hover, diagnostyka typów, konspekty plików i wyszukiwanie symboli w projekcie.
  • 100lsp-setup
    Włącza inteligencję kodu (definicje, referencje, hover, typy) dla dowolnego języka, instalując serwer LSP dla Copilot CLI, wykrywając system i generując konfigurację JSON użytkownika lub repozytorium.
  • 90using-lsp-tools
    Daje semantyczną nawigację po kodzie przez narzędzia LSP z mcp-language-server: definicje, referencje, zmianę nazwy symbolu, hierarchię typów i analizę typów.
  • 100lsp-setup
    Włącza inteligencję kodu, czyli definicje i referencje, instalując serwer LSP dla Antigravity CLI i zapisując konfigurację.
  • 100lsp-setup
    Włącza inteligencję kodu (przejście do definicji, odwołania, podpowiedzi, typy) dla dowolnego języka przez instalację i konfigurację serwera LSP dla Copilot CLI wraz z plikiem JSON.
  • 90lsp # prettier-ignore
    Wdraża funkcje Language Server Protocol: diagnostykę, uzupełnianie, hover, przejście do definicji i integrację z edytorem.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.