typescript-lsp

द्वारा clickhouse

Use the TypeScript language server (`typescript-language-server`) for precise code intelligence in the `clickhouse-js` repository: go-to-definition, find…

npx skills add https://github.com/clickhouse/clickhouse-js --skill typescript-lsp

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.

Starting the server

From the repo root:

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)

RequestNotes
textDocument/hoverReturns the full inferred signature + JSDoc markdown
textDocument/definitionResolves across workspace packages via source, not dist/
textDocument/referencesWithin the opened file's project
workspace/symbole.g. query ClickHouseClient finds class + re-exports
textDocument/completionContext-aware member completions
DiagnosticsPush 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.

clickhouse की और Skills

edit-changelog
clickhouse
Edit an auto-generated ClickHouse release changelog into the form that gets committed to CHANGELOG.md. Use when the user has the output of…
official
code-review
clickhouse
Review changes in clickhouse-java for correctness, compatibility, API stability, and missing tests. Use when reviewing pull requests, commits, diffs, patches,…
official
fix-release-pr
clickhouse
Fix CI failures and address code-review comments on a pull request that targets the protected `release` branch of `ClickHouse/clickhouse-js`. Release PRs are…
official
release
clickhouse
Drive a package release of `ClickHouse/clickhouse-js` end to end: bump the version, sync the protected `release` branch from `main`, watch the npm publish…
official
setup
clickhouse
किसी भी नए चेकआउट में (या package.json फ़ाइलों को प्रभावित करने वाले बदलावों को खींचने के बाद) npm run test:* , npm run lint , npm run typecheck , या npm run build स्क्रिप्ट चलाने से पहले इस कौशल का उपयोग करें।
official
clickhousectl-cloud-deploy
clickhouse
उपयोग तब करें जब उपयोगकर्ता ClickHouse को क्लाउड पर तैनात करना चाहता है, प्रोडक्शन में जाना चाहता है, ClickHouse Cloud का उपयोग करना चाहता है, प्रबंधित ClickHouse सेवा होस्ट करना चाहता है, या स्थानीय से माइग्रेट करना चाहता है…
official
chdb-datastore
clickhouse
DataStore एक आलसी, ClickHouse-समर्थित pandas विकल्प है। आपका मौजूदा pandas कोड बिना बदलाव के काम करता है — लेकिन संचालन अनुकूलित SQL में संकलित होते हैं और केवल तब निष्पादित होते हैं जब परिणामों की आवश्यकता होती है (जैसे, print(), len(), पुनरावृत्ति)।
official
chdb-sql
clickhouse
Python में सीधे ClickHouse SQL चलाएँ — किसी सर्वर की आवश्यकता नहीं। पूर्ण ClickHouse SQL क्षमता के साथ स्थानीय फ़ाइलों, दूरस्थ डेटाबेस और क्लाउड स्टोरेज पर क्वेरी करें।
official