lsp

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCapabilities

type ClientCapabilities struct {
	WorkspaceCapabilities    *WorkspaceCapabilities          `json:"workspace,omitempty"`
	TextDocumentCapabilities *TextDocumentClientCapabilities `json:"textDocument,omitempty"`
	Experimental             *json.RawMessage                `json:"experimental,omitempty"`
}

ClientCapabilities The capabilities provided by the client (editor or tool)

type ClientInfo

type ClientInfo struct {
	Name    string  `json:"name"`
	Version *string `json:"version,omitempty"`
}

ClientInfo Information about the client

type CodeActionClientCapabilities

type CodeActionClientCapabilities struct {
	DynamicRegistration      *bool                     `json:"dynamicRegistration,omitempty"`
	CodeActionLiteralSupport *codeActionLiteralSupport `json:"codeActionLiteralSupport,omitempty"`
	IsPreferredSupport       *bool                     `json:"isPreferredSupport,omitempty"`
}

CodeActionClientCapabilities describes client capabilities specific to the `textDocument/codeAction`.

type CodeLensClientCapabilities

type CodeLensClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
}

CodeLensClientCapabilities describes client capabilities specific to the `textDocument/codeLens`.

type CompletionClientCapabilities

type CompletionClientCapabilities struct {
	DynamicRegistration *bool                     `json:"dynamicRegistration,omitempty"`
	CompletionItem      *completionItem           `json:"completionItem,omitempty"`
	CompletionItemKind  *completionItemKindValues `json:"completionItemKind,omitempty"`
	ContextSupport      *bool                     `json:"contextSupport,omitempty"`
}

CompletionClientCapabilities are capabilities specific to the `textDocument/completion`

type CompletionOptions

type CompletionOptions struct {
	*WorkDoneProgressOptions
	TriggerCharacters   []string `json:"triggerCharacters,omitempty"`
	AllCommitCharacters []string `json:"allCommitCharacters,omitempty"`
	ResolveProvider     *bool    `json:"resolveProvider,omitempty"`
}

CompletionOptions indicates whether the server provides completion support

type DeclarationClientCapabilities

type DeclarationClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
	LinkSupport         *bool `json:"linkSupport,omitempty"`
}

DeclarationClientCapabilities describes client capabilities specific to the `textDocument/declaration`

type DeclarationOptions

type DeclarationOptions struct {
	*WorkDoneProgressOptions
}

DeclarationOptions indicates whether the server provides declaration support

type DeclarationRegistrationOptions

type DeclarationRegistrationOptions struct {
	*DeclarationOptions
	*TextDocumentRegistrationOptions
	*StaticRegistrationOptions
}

DeclarationRegistrationOptions indicates whether the server provides declaration registration support

type DefaultMethodProvider added in v0.0.2

type DefaultMethodProvider interface {
	Default(req *jsonrpc2.Request)
}

DefaultMethodProvider interface allows the embedding struct of `DefaultServer` to be able to provide custom implementations for LSP RPC calls that are not implemented by the DefaultServer

type DefaultServer

type DefaultServer struct {
	// io jsonrpc2.Stream
	*jsonrpc2.DefaultTransport
	// contains filtered or unexported fields
}

DefaultServer is a default implementation of a Language Server that implements the LSP Compose your LSP server with this and override with specifics of your language server

func (*DefaultServer) Exit added in v0.0.2

func (s *DefaultServer) Exit(req *jsonrpc2.Request)

Exit is a notification to ask the server to exit its process. The server should exit with success code 0 if the shutdown request has been received before; otherwise with error code 1. see https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#shutdown

func (*DefaultServer) Init added in v0.0.2

func (s *DefaultServer) Init(composedServer DefaultMethodProvider)

Init passes in a reference to the embedding struct to allow calling its `Default` method

func (*DefaultServer) Initialize

func (s *DefaultServer) Initialize(req *jsonrpc2.Request)

Initialize the initialize request is sent as the first request from the client to the server. If the server receives a request or notification before the initialize request it should act as follows: * For a request the response should be an error with code: -32002. The message can be picked by the server. * Notifications should be dropped, except for the exit notification. This will allow the exit of a server without an initialize request. see https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#initialize

func (*DefaultServer) Initialized

func (s *DefaultServer) Initialized(req *jsonrpc2.Request)

Initialized is called when the initialized notification is sent from the client to the server after the client received the result of the initialize request but before the client is sending any other request or notification to the server. see https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#initialized

func (*DefaultServer) Shutdown added in v0.0.2

func (s *DefaultServer) Shutdown(req *jsonrpc2.Request)

Shutdown : the shutdown request is sent from the client to the server. It asks the server to shut down, but to not exit see https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#shutdown

func (*DefaultServer) Start

func (s *DefaultServer) Start(in io.Reader, out io.Writer)

Start starts the LSP server protocol by reading the stream in a loop and dispatching the data to well-defined methods, unknown RPC method are dispatched to the Default handler

func (*DefaultServer) Stop added in v0.0.2

func (s *DefaultServer) Stop()

Stop gives the server an opportunity to do any clean up as may be required

type DefinitionClientCapabilities

type DefinitionClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
	LinkSupport         *bool `json:"linkSupport,omitempty"`
}

DefinitionClientCapabilities describes client capabilities specific to the `textDocument/definition`.

type DefinitionOptions

type DefinitionOptions struct {
	*WorkDoneProgressOptions
}

DefinitionOptions indicates whether server provides goto definition support

type Diagnostic added in v0.0.5

type Diagnostic struct {
	Range              code.Range                      `json:"range"`
	Severity           *DiagnosticSeverity             `json:"severity,omitempty"`
	Code               *DiagnosticCode                 `json:"code,omitempty"`
	Source             *string                         `json:"source,omitempty"`
	Message            string                          `json:"message"`
	Tags               *[]diagnosticTag                `json:"tags,omitempty"`
	RelatedInformation *[]DiagnosticRelatedInformation `json:"relatedInformation,omitempty"`
}

Diagnostic represents some diagnostic information such as compiler error or warning

type DiagnosticCode added in v0.0.5

type DiagnosticCode struct {
	NumberID int64
	StringID string
}

DiagnosticCode is a code which might appear in the user interface relating to a diagnostic

func (*DiagnosticCode) MarshalJSON added in v0.0.5

func (id *DiagnosticCode) MarshalJSON() ([]byte, error)

MarshalJSON marshals diagnostic code as expected

func (*DiagnosticCode) String added in v0.0.5

func (id *DiagnosticCode) String() string

func (*DiagnosticCode) UnmarshalJSON added in v0.0.5

func (id *DiagnosticCode) UnmarshalJSON(js []byte) error

UnmarshalJSON unmarshals byte slice into DiagnosticCode

type DiagnosticRelatedInformation added in v0.0.5

type DiagnosticRelatedInformation struct {
	Location code.Location `json:"location"`
	Message  string        `json:"message"`
}

DiagnosticRelatedInformation Represents a related message and source code location for a diagnostic. This should be used to point to code locations that cause or are related to a diagnostics, e.g when duplicating a symbol in a scope.

type DiagnosticSeverity added in v0.0.5

type DiagnosticSeverity int

DiagnosticSeverity indicates the severity of reported diagnostic * //Reports an error. export const Error: 1 = 1;

//Reports a warning.

export const Warning: 2 = 2; /** //Reports an information.

export const Information: 3 = 3; /** //Reports a hint.

export const Hint: 4 = 4;

type DidChangeConfigurationClientCapabilities

type DidChangeConfigurationClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
}

DidChangeConfigurationClientCapabilities is a notification sent from the client to the server to signal the change of configuration settings

type DidChangeWatchedFilesClientCapabilities

type DidChangeWatchedFilesClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
}

DidChangeWatchedFilesClientCapabilities is the watched files notification sent from the client to the server when the client detects changes to files watched by the language client

type DocumentColorClientCapabilities

type DocumentColorClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
}

DocumentColorClientCapabilities describes client capabilities specific to the `textDocument/documentColor` and the `textDocument/colorPresentation` request.

type DocumentFilter

type DocumentFilter struct {
	Language *string `json:"language,omitempty"`
	Scheme   *string `json:"scheme,omitempty"`
	Pattern  *string `json:"pattern,omitempty"`
}

DocumentFilter denotes a document through properties like language, scheme or pattern

type DocumentFormattingClientCapabilities

type DocumentFormattingClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
}

DocumentFormattingClientCapabilities describes client capabilities specific to the `textDocument/formatting`.

type DocumentHighlightClientCapabilities

type DocumentHighlightClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
}

DocumentHighlightClientCapabilities describes client capabilities specific to the `textDocument/documentHighlight`.

type DocumentHighlightOptions

type DocumentHighlightOptions struct {
	*WorkDoneProgressOptions
}

DocumentHighlightOptions indicates whether server provides document highlight support

type DocumentLinkClientCapabilities

type DocumentLinkClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
	TooltipSupport      *bool `json:"tooltipSupport,omitempty"`
}

DocumentLinkClientCapabilities describes client capabilities specific to the `textDocument/documentLink`.

type DocumentOnTypeFormattingClientCapabilities

type DocumentOnTypeFormattingClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
}

DocumentOnTypeFormattingClientCapabilities describes client capabilities specific to the `textDocument/onTypeformatting`.

type DocumentRangeFormattingClientCapabilities

type DocumentRangeFormattingClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
}

DocumentRangeFormattingClientCapabilities describes client capabilities specific to the `textDocument/rangeformatting`.

type DocumentSelector

type DocumentSelector []DocumentFilter

DocumentSelector is a combination of one or more document filters

type DocumentSymbolClientCapabilities

type DocumentSymbolClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
}

DocumentSymbolClientCapabilities describes client capabilities specific to the `textDocument/documentSymbol`.

type ExecuteCommandClientCapabilities

type ExecuteCommandClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
}

ExecuteCommandClientCapabilities are capabilities specific to the `workspace/executeCommand` request

type FoldingRangeClientCapabilities

type FoldingRangeClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
	RangeLimit          *int  `json:"RangeLimit,omitempty"`
	LineFoldingOnly     *bool `json:"lineFoldingOnly,omitempty"`
}

FoldingRangeClientCapabilities describes client capabilities specific to `textDocument/foldingRange requests`.

type HoverClientCapabilities

type HoverClientCapabilities struct {
	DynamicRegistration *bool        `json:"dynamicRegistration,omitempty"`
	ContentFormat       []markupKind `json:"contentFormat,omitempty"`
}

HoverClientCapabilities describes client capabilities specific to the `textDocument/hover`

type HoverOptions

type HoverOptions struct {
	*WorkDoneProgressOptions
}

HoverOptions indicates whether the server provides hover support

type ImplementationClientCapabilities

type ImplementationClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
	LinkSupport         *bool `json:"linkSupport,omitempty"`
}

ImplementationClientCapabilities describes client capabilities specific to the `textDocument/implementation`.

type ImplementationOptions

type ImplementationOptions struct {
	*WorkDoneProgressOptions
}

ImplementationOptions indicates whether server provides goto implementation support

type ImplementationRegistrationOptions

type ImplementationRegistrationOptions struct {
	*TextDocumentRegistrationOptions
	*ImplementationOptions
	*StaticRegistrationOptions
}

ImplementationRegistrationOptions indicates whether server provides goto implementation support

type InitializeParams

type InitializeParams struct {
	ProcessID             *int64             `json:"processId,omitempty"`
	ClientInfo            *ClientInfo        `json:"clientInfo,omitempty"`
	RootPath              *string            `json:"rootPath,omitempty"`
	RootURI               *code.DocumentURI  `json:"documentUri,omitempty"`
	InitializationOptions *json.RawMessage   `json:"initializationOptions,omitempty"`
	Capabilities          ClientCapabilities `json:"capabilities"`
	Trace                 *string            `json:"trace,omitempty"`
	WorkspaceFolders      []WorkspaceFolder  `json:"workspaceFolders,omitempty"`
}

InitializeParams see https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/

type InitializeResult

type InitializeResult struct {
	Capabilities ServerCapabilities `json:"capabilities"`
	ServerInfo   *serverInfo        `json:"serverInfo,omitempty"`
}

InitializeResult see: https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#initialize

type PublishDiagnosticsClientCapabilities

type PublishDiagnosticsClientCapabilities struct {
	RelatedInformation *bool                 `json:"relatedInformation,omitempty"`
	TagSupport         *diagnosticTagSupport `json:"tagSupport,omitempty"`
}

PublishDiagnosticsClientCapabilities describes client capabilities specific to the `textDocument/publishDiagnostics`.

type PublishDiagnosticsParams added in v0.0.5

type PublishDiagnosticsParams struct {
	URI         code.DocumentURI `json:"uri"`
	Version     *int             `json:"version,omitempty"`
	Diagnostics []Diagnostic     `json:"diagnostics"`
}

PublishDiagnosticsParams are Diagnostics notification parameters sent from the server to the client to signal results of validation runs

type ReferenceClientCapabilities

type ReferenceClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
}

ReferenceClientCapabilities describes client capabilities specific to the `textDocument/references`.

type ReferenceOptions

type ReferenceOptions struct {
	*WorkDoneProgressOptions
}

ReferenceOptions indicates whether server provides find references support

type RenameClientCapabilities

type RenameClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
	PrepareSupport      *bool `json:"prepareSupport,omitempty"`
}

RenameClientCapabilities describes client capabilities specific to the `textDocument/rename`.

type Server

type Server interface {
	Initialize(req *jsonrpc2.Request)
	Initialized(req *jsonrpc2.Request)
	Start(inputStream io.Reader, outputStream io.Writer)
	Shutdown(req *jsonrpc2.Request)
	Exit(req *jsonrpc2.Request)
}

Server defines the contracts

func NewServer

func NewServer() Server

NewServer creates a new DefaultServer

type ServerCapabilities

type ServerCapabilities struct {
	TextDocumentSync          *textDocSyncOptionsOrLegacy  `json:"textDocumentSync,omitempty"`
	CompletionProvider        *CompletionOptions           `json:"completionProvider,omitempty"`
	HoverProvider             *hoverUnion                  `json:"hoverProvider,omitempty"`
	SignatureHelpProvider     *SignatureHelpOptions        `json:"signatureHelpProvider,omitempty"`
	DeclarationProvider       *declarationUnion            `json:"declarationProvider,omitempty"`
	DefinitionProvider        *definitionUnion             `json:"definitionProvider,omitempty"`
	TypeDefinitionProvider    *typeDefinitionUnion         `json:"typeDefinitionProvider,omitempty"`
	ImplementationProvider    *implementationProviderUnion `json:"implementationProvider,omitempty"`
	ReferencesProvider        *referencesUnion             `json:"referencesProvider,omitempty"`
	DocumentHighlightProvider *documentHighlightUnion      `json:"documentHighlightProvider,omitempty"`
	//TODO: Complete the rest
	// DocumentSymbolProvider           *documentSymbolUnion           `json:"documentSymbolProvider,omitempty"`
	// CodeActionProvider               *codeActionUnion               `json:"codeActionProvider,omitempty"`
	// CodeLensProvider                 *codeLensUnion                 `json:"codeLensProvider,omitempty"`
	// DocumentLinkProvider             *DocumentLinkOptions           `json:"documentLinkProvider,omitempty"`
	// ColorProvider                    *colorUnion                    `json:"colorProvider,omitempty"`
	// DocumentFormattingProvider       *documentFormattingUnion       `json:"documentFormattingProvider,omitempty"`
	// DocumentRangeFormattingProvider  *documentRangeFormattingUnion  `json:"documentRangeFormattingProvider,omitempty"`
	// DocumentOnTypeFormattingProvider *documentOnTypeFormattingUnion `json:"documentOnTypeFormattingProvider,omitempty"`
	// RenameProvider                   *renameUnion                   `json:"renameProvider,omitempty"`
	// FoldingRangeProvider             *foldingRangeUnion             `json:"foldingRangeProvider,omitempty"`
	// ExecuteCommandProvider           *ExecuteCommandOptions         `json:"executeCommandProvider,omitempty"`
	WorkspaceSymbolProvider *bool                        `json:"workspaceSymbolProvider,omitempty"`
	Workspace               *workspaceServerCapabilities `json:"workspace,omitempty"`
	Experimental            *json.RawMessage             `json:"experimental,omitempty"`
}

ServerCapabilities represent the capabilities the language server provides.

type SignatureHelpClientCapabilities

type SignatureHelpClientCapabilities struct {
	DynamicRegistration  *bool                 `json:"dynamicRegistration,omitempty"`
	SignatureInformation *signatureInformation `json:"signatureInformation,omitempty"`
}

SignatureHelpClientCapabilities describes client capabilities specific to the `textDocument/signatureHelp`

type SignatureHelpOptions

type SignatureHelpOptions struct {
	*WorkDoneProgressOptions
	TriggerCharacters   []string `json:"triggerCharacters,omitempty"`
	RetriggerCharacters []string `json:"retriggerCharacters,omitempty"`
	ResolveProvider     *bool    `json:"resolveProvider,omitempty"`
}

SignatureHelpOptions indicates whether the server provides signature help support

type StaticRegistrationOptions

type StaticRegistrationOptions struct {
	ID *string `json:"id,omitempty"`
}

StaticRegistrationOptions used to register a feature in the initialize result with a given server control ID to be able to un-register the feature later on.

type TextDocumentClientCapabilities

type TextDocumentClientCapabilities struct {
	Synchronization    *TextDocumentSyncClientCapabilities         `json:"synchronization,omitempty"`
	Completion         *CompletionClientCapabilities               `json:"completion,omitempty"`
	Hover              *HoverClientCapabilities                    `json:"hover,omitempty"`
	SignatureHelp      *SignatureHelpClientCapabilities            `json:"signatureHelp,omitempty"`
	Declaration        *DeclarationClientCapabilities              `json:"declaration,omitempty"`
	Definition         *DefinitionClientCapabilities               `json:"definition,omitempty"`
	TypeDefinition     *TypeDefinitionClientCapabilities           `json:"typeDefinition,omitempty"`
	Implementation     *ImplementationClientCapabilities           `json:"implementation,omitempty"`
	References         *ReferenceClientCapabilities                `json:"references,omitempty"`
	DocumentHighlight  *DocumentHighlightClientCapabilities        `json:"documentHighlight,omitempty"`
	DocumentSymbol     *DocumentSymbolClientCapabilities           `json:"documentSymbol,omitempty"`
	CodeAction         *CodeActionClientCapabilities               `json:"codeAction,omitempty"`
	CodeLens           *CodeLensClientCapabilities                 `json:"codeLens,omitempty"`
	DocumentLink       *DocumentLinkClientCapabilities             `json:"documentLink,omitempty"`
	ColorProvider      *DocumentColorClientCapabilities            `json:"colorProvider,omitempty"`
	Formatting         *DocumentFormattingClientCapabilities       `json:"formatting,omitempty"`
	RangeFormatting    *DocumentRangeFormattingClientCapabilities  `json:"rangeFormatting,omitempty"`
	OnTypeFormatting   *DocumentOnTypeFormattingClientCapabilities `json:"onTypeFormatting,omitempty"`
	Rename             *RenameClientCapabilities                   `json:"rename,omitempty"`
	PublishDiagnostics *PublishDiagnosticsClientCapabilities       `json:"publishDiagnostics,omitempty"`
	FoldingRange       *FoldingRangeClientCapabilities             `json:"foldingRange,omitempty"`
}

TextDocumentClientCapabilities Text document specific client capabilities

type TextDocumentRegistrationOptions

type TextDocumentRegistrationOptions struct {
	DocumentSelector *DocumentSelector `json:"documentSelector"`
}

TextDocumentRegistrationOptions used to dynamically register for requests for a set of text documents.

type TextDocumentSyncClientCapabilities

type TextDocumentSyncClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
	WillSave            *bool `json:"willSave,omitempty"`
	WillSaveWaitUntil   *bool `json:"willSaveWaitUntil,omitempty"`
	DidSave             *bool `json:"didSave,omitempty"`
}

TextDocumentSyncClientCapabilities client capabilities for syncing text documents ;-)

type TextDocumentSyncOptions

type TextDocumentSyncOptions struct {
	OpenClose *bool                 `json:"openClose,omitempty"`
	Change    *textDocumentSyncKind `json:"change,omitempty"`
}

TextDocumentSyncOptions options

type TypeDefinitionClientCapabilities

type TypeDefinitionClientCapabilities struct {
	DynamicRegistration *bool `json:"dynamicRegistration,omitempty"`
	LinkSupport         *bool `json:"linkSupport,omitempty"`
}

TypeDefinitionClientCapabilities describes client capabilities specific to the `textDocument/typeDefinition`.

type TypeDefinitionOptions

type TypeDefinitionOptions struct {
	*WorkDoneProgressOptions
}

TypeDefinitionOptions indicates whether server provides goto type definition support

type TypeDefinitionRegistrationOptions

type TypeDefinitionRegistrationOptions struct {
	*TextDocumentRegistrationOptions
	*TypeDefinitionOptions
	*StaticRegistrationOptions
}

TypeDefinitionRegistrationOptions indicates whether server provides goto type definition support

type WorkDoneProgressOptions

type WorkDoneProgressOptions struct {
	WorkDoneProgress *bool `json:"workDoneProgress,omitempty"`
}

WorkDoneProgressOptions Options to signal work done progress support in server capabilities.

type WorkspaceCapabilities

type WorkspaceCapabilities struct {
	ApplyEdit              *bool                                     `json:"applyEdit,omitempty"`
	WorkspaceEdit          *WorkspaceEditClientCapabilities          `json:"workspaceEdit,omitempty"`
	DidChangeConfiguration *DidChangeConfigurationClientCapabilities `json:"didChangeConfiguration,omitempty"`
	DidChangeWatchedFiles  *DidChangeWatchedFilesClientCapabilities  `json:"didChangeWatchedFiles,omitempty"`
	Symbol                 *WorkspaceSymbolClientCapabilities        `json:"symbol,omitempty"`
	ExecuteCommand         *ExecuteCommandClientCapabilities         `json:"executeCommand,omitempty"`
}

WorkspaceCapabilities are workspace-specific client capabilities.

type WorkspaceEditClientCapabilities

type WorkspaceEditClientCapabilities struct {
	DocumentChanges    *bool                   `json:"DocumentChanges,omitempty"`
	ResourceOperations []resourceOperationKind `json:"resourceOperations,omitempty"`
	FailureHandling    *failureHandlingKind    `json:"failureHandling,omitempty"`
}

WorkspaceEditClientCapabilities Capabilities specific to `WorkspaceEdit`s

type WorkspaceFolder

type WorkspaceFolder struct {
	URI  code.DocumentURI `json:"uri"`
	Name code.DocumentURI `json:"name"`
}

WorkspaceFolder a workspace folder

type WorkspaceFolderServerCapabilities added in v0.0.2

type WorkspaceFolderServerCapabilities struct {
	Supported           *bool                `json:"supported,omitempty"`
	ChangeNotifications *changeNotifications `json:"changeNotifications,omitempty"`
}

WorkspaceFolderServerCapabilities indicates whether the server supports workspace folder

type WorkspaceSymbolClientCapabilities

type WorkspaceSymbolClientCapabilities struct {
	DynamicRegistration *bool             `json:"dynamicRegistration,omitempty"`
	SymbolKind          *symbolKindValues `json:"symbolKind,omitempty"`
}

WorkspaceSymbolClientCapabilities is the workspace symbol request sent from the client to the server to list project-wide symbols matching the query string.

Jump to

Keyboard shortcuts

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