package
0.0.0-20220218190644-4958d6d39439
Repository: https://github.com/jhump/golang-x-tools.git
Documentation: pkg.go.dev

# README

lsp

internal/lsp provides much of the Language Server Protocol (lsp) implementation for gopls.

Documentation for users and contributors can be found in the gopls/doc directory.

# Packages

No description provided by the author
Package browser provides utilities for interacting with users' browsers.
Package cache implements the caching layer for gopls.
Package cmd handles the gopls command line.
Package command defines the interface provided by gopls for the workspace/executeCommand LSP request.
Package debug exports debug information for gopls.
Package diff supports a pluggable diff algorithm.
Package fake provides fake implementations of a text editor, LSP client plugin, and Sandbox environment for use in tests.
Package fuzzy implements a fuzzy matching algorithm.
Invoke with //go:generate helper/helper -t Server -d protocol/tsserver.go -u lsp -o server_gen.go invoke in internal/lsp.
Package lsppos provides utilities for working with LSP positions.
Package lsprpc implements a jsonrpc2.StreamServer that may be used to serve the LSP on a jsonrpc2 channel.
Package mod provides core features related to go.mod file handling for use by Go editors and tools.
No description provided by the author
Package protocol contains data types and code for LSP jsonrpcs generated automatically from vscode-languageserver-node commit: f17727af04704c0e2ede73dfdbeb463156e94561 last fetched Thu Feb 10 2022 14:34:11 GMT-0700 (Mountain Standard Time).
Package regtest provides a framework for writing gopls regression tests.
Package snippet implements the specification for the LSP snippet format.
Package source provides core features for use by Go editors and tools.
Package template contains code for dealing with templates.
Package tests exports functionality to be used across a variety of gopls tests.
No description provided by the author

# Functions

DiagnosticWorkTitle returns the title of the diagnostic work resulting from a file change originating from the given cause.
NewServer creates an LSP server and binds it to handle incoming client messages on on the supplied stream.
SemanticModifiers to use in case there is no client.
SemanticTypes to use in case there is no client, as in the command line, or tests.
SemMods returns the []string equivalent of the mods, for gopls semtok.
SemType returns a string equivalent of the type, for gopls semtok.

# Constants

FromDidChange is a file modification caused by changing a file.
FromDidChangeWatchedFiles is a file modification caused by a change to a watched file.
FromDidClose is a file modification caused by closing a file.
FromDidOpen is a file modification caused by opening a file.
FromDidSave is a file modification caused by a file save.
FromInitialWorkspaceLoad refers to the loading of all packages in the workspace when the view is first created.
FromRegenerateCgo refers to file modifications caused by regenerating the cgo sources for the workspace.
No description provided by the author

# Structs

Server implements the protocol.Server interface.

# Type aliases

ModificationSource identifies the originating cause of a file modification.