files

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

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

func NewState

func NewState() *State

func (*State) ApplyCanges

func (s *State) ApplyCanges(uri lsp.DocumentURI, changes []lsp.TextDocumentContentChangeEvent) error

func (*State) GetLine

func (s *State) GetLine(uri lsp.DocumentURI, line int) (string, error)

func (*State) GetText

func (s *State) GetText(uri lsp.DocumentURI) (string, error)

func (*State) Has

func (s *State) Has(uri lsp.DocumentURI) bool

func (*State) OnChange

func (s *State) OnChange(handler func(lsp.DocumentURI))

func (*State) Remove

func (s *State) Remove(uri lsp.DocumentURI)

func (*State) SetDocument

func (s *State) SetDocument(doc lsp.TextDocumentItem)

func (*State) SetText

func (s *State) SetText(uri lsp.DocumentURI, content string)

Jump to

Keyboard shortcuts

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