package
3.3.0+incompatible
Repository: https://github.com/google/agi.git
Documentation: pkg.go.dev

# Packages

Package protocol implements the language server protocol.

# Functions

Connect creates a connection to between server and the client (code editor) communicating on stream.
NewBody returns a body containing the specified text.
NewBodyFromRunes returns a body containing the specified text in runes.
PathToURI returns the URI for the absolute filepath.
URItoPath returns the absolute filepath from the given URI.

# Constants

ReadHighlight represents read-access of a symbol, like reading a variable.
SeverityError reports an error.
SeverityHint reports a hint.
SeverityInformation reports an information.
SeverityWarning reports a warning.
TextHighlight represents a textual occurrance.
WriteHighlight represents write-access of a symbol, like writing to a variable.

# Variables

NoLocation represents no location.

# Structs

Body represents the body of a document.
CodeLens represents a command that should be shown along with source text, like the number of references, a way to run tests, etc.
Command represents a reference to a command.
CompletionItem represents a completion item to be presented in the editor.
CompletionList is a list of completion items.
Diagnostic represents a compiler diagnostic, such as a warning or error.
Document represents a text document file.
FormattingOptions holds options for formatting requests.
Highlight a range inside a text document which deserves special attention.
InitConfig is returned by Server.Initialize().
Location represents a location inside a resource, such as a line inside a text file.
Parameter represents a parameter of a callable-signature.
Position represents a location in a document.
Range represents a span of a document.
Signature represents the signature of something callable.
SourceCode contains some source code and a language specifier.
Symbol represents information about programming constructs like variables, classes, interfaces etc.
TextEdit is a textual edit applicable to a text document.

# Interfaces

CodeActionsProvider is the interface implemented by servers that support code actions.
CodeLensProvider is the interface implemented by servers that support code lenes.
CompletionProvider is the interface implemented by servers that support completion information.
DefinitionProvider is the interface implemented by servers that support symbol definition information.
FormatOnTypeProvider is the interface implemented by servers that support reformatting as-you-type.
FormatProvider is the interface implemented by servers that support whole-document reformatting.
FormatRangeProvider is the interface implemented by servers that support document-range reformatting.
HighlightsProvider is the interface implemented by servers that support symbol highlight information.
HoverProvider is the interface implemented by servers that support hover information.
ReferencesProvider is the interface implemented by servers that support symbol reference information.
RenameProvider is the interface implemented by servers that support renaming symbols.
Server is the interface implemented by language servers.
SignatureProvider is the interface implemented by servers that support callable signature information.
SymbolsProvider is the interface implemented by servers that support document symbol information.
WorkspaceSymbolsProvider is the interface implemented by servers that support whole-workspace symbol information.

# Type aliases

CompletionItemKind is the kind of a completion entry.
Diagnostics is a list of Diagnostic.
HighlightKind is a document highlight kind enumerator.
HighlightList is a list of highlights.
ParameterList is a list of parameters.
Severity represents the severity level of a diagnostic.
SignatureList is a list of signatures.
SourceCodeList is a list of source code snippits.
SymbolKind is an enumerator of symbol kinds.
SymbolList is a list of symbols.
TextEditList is a list of TextEdits.
WorkspaceEdit is a collection of edits across an entire workspace.