Documentation
¶
Overview ¶
Package lsp implements the GOWDK Language Server Protocol entrypoint.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FramingError ¶ added in v0.13.0
FramingError classifies an LSP transport failure without retaining or exposing the raw header or message body. Framing failures are fatal because the next byte boundary cannot be trusted without consuming attacker-sized input.
func (*FramingError) Error ¶ added in v0.13.0
func (err *FramingError) Error() string
type Limits ¶ added in v0.13.0
type Limits struct {
MaxHeaderBytes int64
MaxHeaderLineBytes int
MaxHeaderCount int
MaxMessageBytes int64
MaxDocumentBytes int64
MaxOpenDocumentBytes int64
MaxOpenDocuments int
}
Limits bounds one LSP session. Byte limits count UTF-8 bytes, matching LSP transport framing and Go string storage rather than Unicode code points.
func DefaultLimits ¶ added in v0.13.0
func DefaultLimits() Limits
DefaultLimits returns generous finite defaults for ordinary GOWDK projects.
type ProjectOptions ¶ added in v0.13.0
ProjectOptions scopes configured source discovery for one LSP session.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles one LSP session.
func NewProjectServer ¶ added in v0.13.0
func NewProjectServer(config gowdk.Config, options ProjectOptions) *Server
NewProjectServer returns a language server scoped to one configured project.