@samveys/lsp
Template language server: completion, hover, diagnostics, go-to-file
This list was read from version 1.0.2; run pnpm sync to refresh it.
import { createTemplateLanguageService, serveLanguageServer } from '@samveys/lsp'
Function (2)
createTemplateLanguageService
Function
Pure language features; the transport below only frames messages.
function createTemplateLanguageService(options: {
Exported from packages/lsp/src/server.ts
serveLanguageServer
Function
Serves LSP on the given streams (stdio by default) until `exit`.
function serveLanguageServer(options?: LspOptions & {
Exported from packages/lsp/src/server.ts
Interface (1)
LspOptions
Interface
No documentation comment.
interface LspOptions {
/** Directory with the views. Default: `<workspace root>/resources/views`. */
readonly viewsDir?: string;
readonly componentsDir?: string;
}
Exported from packages/lsp/src/server.ts