summaryrefslogtreecommitdiffhomepage
path: root/packages/core/src/lsp/index.ts
blob: fd43c2f073f08c26e4287aeffcb2c1efa02d3ee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// LSP (Language Server Protocol) integration.
//
// Config-driven only: servers are declared in `dispatch.toml`'s `[lsp.<id>]`
// block (see `LspServerConfig` in `../types`). There is no builtin server
// registry and no auto-download. The primary model-facing surface is
// diagnostics-on-write (the host passes a write hook that calls `touchFile` +
// `report`); an on-demand `lsp` tool exposes hover/definition/references too.

export {
	createLspClient,
	type Diagnostic,
	type LspClient,
	type LspServerHandle,
} from "./client.js";
export { pretty, report } from "./diagnostic.js";
export { LANGUAGE_EXTENSIONS, languageIdForExtension } from "./language.js";
export { LspManager } from "./manager.js";
export { type ResolvedLspServer, resolveServersFromConfig } from "./server.js";