state

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document added in v0.0.2

type Document struct {
	Text       string
	LanguageID string
}

Document represents a document in the state.

type State

type State struct {
	// contains filtered or unexported fields
}

State manages the document state for the language server.

func NewState

func NewState() *State

func (*State) DeleteDocument

func (s *State) DeleteDocument(uri protocol.DocumentUri)

DeleteDocument removes a document from the state.

func (*State) GetDocument

func (s *State) GetDocument(uri protocol.DocumentUri) (*Document, bool)

GetDocument retrieves a document from the state.

func (*State) SetDocument

func (s *State) SetDocument(uri protocol.DocumentUri, text string, languageID string)

SetDocument adds or updates a document in the state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL