7090fca0fd
- Add 7 LSP tools: hover, goto_definition, find_references, document_symbols, workspace_symbols, diagnostics, servers - Support multiple LSP servers: typescript, gopls, pyrefly, basedpyright, ruff, rust-analyzer, clangd, sourcekit-lsp, ruby-lsp - Read LSP config from opencode.json with disabled server support - Handle server requests: workspace/configuration, client/registerCapability, window/workDoneProgress/create - Send workspace/didChangeConfiguration after initialized for basedpyright compatibility - Uint8Array-based buffer for reliable LSP message parsing
20 lines
341 B
TypeScript
20 lines
341 B
TypeScript
import {
|
|
lsp_hover,
|
|
lsp_goto_definition,
|
|
lsp_find_references,
|
|
lsp_document_symbols,
|
|
lsp_workspace_symbols,
|
|
lsp_diagnostics,
|
|
lsp_servers,
|
|
} from "./lsp"
|
|
|
|
export const builtinTools = {
|
|
lsp_hover,
|
|
lsp_goto_definition,
|
|
lsp_find_references,
|
|
lsp_document_symbols,
|
|
lsp_workspace_symbols,
|
|
lsp_diagnostics,
|
|
lsp_servers,
|
|
}
|