Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + const Class + const Color + const Constructor + const Enum + const Field + const File + const Function + const Interface + const Keyword + const KindArray + const KindBoolean + const KindClass + const KindConstant + const KindConstructor + const KindEnum + const KindField + const KindFile + const KindFunction + const KindInterface + const KindMethod + const KindModule + const KindNamespace + const KindNumber + const KindPackage + const KindProperty + const KindString + const KindVariable + const Method + const Module + const Property + const ReadHighlight + const Reference + const SeverityError + const SeverityHint + const SeverityInformation + const SeverityWarning + const Snippet + const Text + const TextHighlight + const Unit + const Value + const Variable + const WriteHighlight + func Connect(ctx context.Context, stream io.ReadWriter, server Server) error + func PathToURI(path string) string + func URItoPath(uri string) (string, error) + type Body struct + func NewBody(text string) Body + func NewBodyFromRunes(runes []rune) Body + func (b Body) FullRange() Range + func (b Body) GetRange(rng Range) string + func (b Body) Offset(p Position) int + func (b Body) Position(offset int) Position + func (b Body) Range(start, end int) Range + func (b Body) Runes() []rune + func (b Body) Text() string + type CodeActionsProvider interface + CodeActions func(context.Context, *Document, Range, []Diagnostic) ([]Command, error) + type CodeLens struct + Range Range + Resolve func(context.Context) Command + type CodeLensProvider interface + CodeLenses func(context.Context, *Document) ([]CodeLens, error) + type Command struct + Arguments map[string]interface{} + Command string + Title string + type CompletionItem struct + Detail string + Documentation string + FilterText string + InsertText string + Kind CompletionItemKind + Label string + SortText string + type CompletionItemKind int + type CompletionList struct + Incomplete bool + Items []CompletionItem + func (c *CompletionList) Add(label string, kind CompletionItemKind, detail string) + type CompletionProvider interface + Completions func(context.Context, *Document, Position) (CompletionList, error) + type DefinitionProvider interface + Definitions func(context.Context, *Document, Position) ([]Location, error) + type Diagnostic struct + Code string + Message string + Range Range + Severity Severity + Source string + type Diagnostics []Diagnostic + func (l *Diagnostics) Error(rng Range, msg string) + func (l *Diagnostics) Hint(rng Range, msg string) + func (l *Diagnostics) Info(rng Range, msg string) + func (l *Diagnostics) Warning(rng Range, msg string) + type Document struct + func (d *Document) Body() Body + func (d *Document) SetDiagnostics(diagnostics Diagnostics) + func (d Document) Language() string + func (d Document) Path() string + func (d Document) URI() string + func (d Document) Version() int + type FormatOnTypeProvider interface + FormatOnType func(doc *Document, pos Position, char rune, opts FormattingOptions) (TextEditList, error) + type FormatProvider interface + Format func(ctx context.Context, doc *Document, opts FormattingOptions) (TextEditList, error) + type FormatRangeProvider interface + FormatRange func(ctx context.Context, doc *Document, rng Range, opts FormattingOptions) (TextEditList, error) + type FormattingOptions struct + InsertSpaces bool + TabSize int + type Highlight struct + Kind HighlightKind + Range Range + type HighlightKind int + type HighlightList []Highlight + func (l *HighlightList) Add(rng Range, kind HighlightKind) + type HighlightsProvider interface + Highlights func(context.Context, *Document, Position) (HighlightList, error) + type HoverProvider interface + Hover func(context.Context, *Document, Position) (SourceCodeList, Range, error) + type InitConfig struct + CompletionTriggerCharacters []rune + LanguageID string + SignatureTriggerCharacters []rune + WorkspaceDocuments []string + type Location struct + Range Range + URI string + var NoLocation Location + type Parameter struct + Documentation string + Label string + type ParameterList []Parameter + func (l *ParameterList) Add(label, doc string) + type Position struct + Column int + Line int + type Range struct + End Position + Start Position + type ReferencesProvider interface + References func(context.Context, *Document, Position) ([]Location, error) + type RenameProvider interface + Rename func(ctx context.Context, doc *Document, pos Position, newName string) (WorkspaceEdit, error) + type Server interface + Initialize func(ctx context.Context, rootPath string) (InitConfig, error) + OnConfigChange func(context.Context, map[string]interface{}) error + OnDocumentSaved func(context.Context, *Document) error + OnDocumentsAdded func(context.Context, []*Document) error + OnDocumentsChanged func(context.Context, []*Document) error + OnDocumentsRemoved func(context.Context, []*Document) error + Shutdown func(context.Context) error + type Severity int + type Signature struct + Documentation string + Label string + Parameters ParameterList + type SignatureList []Signature + func (l *SignatureList) Add(label, doc string, params ParameterList) + type SignatureProvider interface + Signatures func(context.Context, *Document, Position) (sigs SignatureList, activeSig, activeParam int, err error) + type SourceCode struct + Language string + Source string + type SourceCodeList []SourceCode + func (l *SourceCodeList) Add(lang, source string) + type Symbol struct + Container *Symbol + Kind SymbolKind + Location Location + Name string + type SymbolKind int + type SymbolList []Symbol + func (l *SymbolList) Add(name string, kind SymbolKind, loc Location, container *Symbol) Symbol + func (l SymbolList) Filter(pred func(Symbol) bool) SymbolList + type SymbolsProvider interface + Symbols func(context.Context, *Document) (SymbolList, error) + type TextEdit struct + NewText string + Range Range + type TextEditList []TextEdit + func (l *TextEditList) Add(rng Range, newText string) + type WorkspaceEdit map[string]TextEditList + func (w WorkspaceEdit) Add(loc Location, newText string) + type WorkspaceSymbolsProvider interface + WorkspaceSymbols func(ctx context.Context) (SymbolList, error) Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021