Documentation
¶
Overview ¶
Package lsp bridges CalcMark's spec/impl/format layers to the Language Server Protocol. Dependencies flow inward: lsp → spec, lsp → impl, lsp → format. No package should ever import lsp.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToLSPPosition ¶
ToLSPPosition converts a CalcMark 1-indexed position to a 0-indexed LSP position.
Types ¶
type DocumentSnapshot ¶
type DocumentSnapshot struct {
Source string
Document *specDoc.Document
Evaluator *implDoc.Evaluator
Diagnostics []specDoc.Diagnostic
HTML string
}
DocumentSnapshot holds the immutable evaluation results for a document. Request handlers read from the latest snapshot without locks.
Click to show internal directories.
Click to hide internal directories.