Versions in this module Expand all Collapse all v0 v0.2.5 Jan 23, 2026 v0.2.4 Jun 10, 2025 Changes in this version + const ClientRegisterCapability + const ClientUnregisterCapability + const FormattingOptionInsertFinalNewline + const FormattingOptionInsertSpaces + const FormattingOptionTabSize + const FormattingOptionTrimFinalNewlines + const FormattingOptionTrimTrailingWhitespace + const InitializeErrorCodeUnknownProtocolVersion + const MethodCallHierarchyIncomingCalls + const MethodCallHierarchyOutgoingCalls + const MethodCancelRequest + const MethodCodeAction + const MethodCodeActionResolve + const MethodCodeLens + const MethodCodeLensRefresh + const MethodCodeLensResolve + const MethodCompletion + const MethodCompletionItemResolve + const MethodDiagnosticsRefresh + const MethodDocumentColor + const MethodDocumentColorPresentation + const MethodDocumentDiagnostic + const MethodDocumentFormatting + const MethodDocumentHighlight + const MethodDocumentLink + const MethodDocumentLinkResolve + const MethodDocumentLinkedEditingRange + const MethodDocumentOnTypeFormatting + const MethodDocumentPrepareRename + const MethodDocumentRangeFormatting + const MethodDocumentRename + const MethodDocumentSymbol + const MethodExit + const MethodFindReferences + const MethodFoldingRange + const MethodGotoDeclaration + const MethodGotoDefinition + const MethodGotoImplementation + const MethodGotoTypeDefinition + const MethodHover + const MethodInitialize + const MethodInitialized + const MethodInlayHint + const MethodInlayHintRefresh + const MethodInlayHintResolve + const MethodInlineValue + const MethodInlineValueRefresh + const MethodLogMessage + const MethodLogTrace + const MethodMoniker + const MethodNotebookDocumentDidChange + const MethodNotebookDocumentDidClose + const MethodNotebookDocumentDidOpen + const MethodNotebookDocumentDidSave + const MethodPrepareCallHierarchy + const MethodPrepareTypeHierarchy + const MethodProgress + const MethodPublishDiagnostics + const MethodSelectionRange + const MethodSemanticTokensFull + const MethodSemanticTokensFullDelta + const MethodSemanticTokensRange + const MethodSemanticTokensRefresh + const MethodSetTrace + const MethodShowMessageNotification + const MethodShowMessageRequest + const MethodShutdown + const MethodSignatureHelp + const MethodTelemetryEvent + const MethodTextDocumentDidChange + const MethodTextDocumentDidClose + const MethodTextDocumentDidOpen + const MethodTextDocumentDidSave + const MethodTextDocumentWillSave + const MethodTextDocumentWillSaveWaitUntil + const MethodTypeHierarchySubtypes + const MethodTypeHierarchySupertypes + const MethodWorkDoneProgressCancel + const MethodWorkDoneProgressCreate + const MethodWorkspaceApplyEdit + const MethodWorkspaceConfiguration + const MethodWorkspaceDiagnostic + const MethodWorkspaceDidChangeConfiguration + const MethodWorkspaceDidChangeFolders + const MethodWorkspaceDidChangeWatchedFiles + const MethodWorkspaceDidCreateFiles + const MethodWorkspaceDidDeleteFiles + const MethodWorkspaceDidRenameFiles + const MethodWorkspaceExecuteCommand + const MethodWorkspaceFolders + const MethodWorkspaceSymbol + const MethodWorkspaceSymbolResolve + const MethodWorkspaceWillCreateFiles + const MethodWorkspaceWillDeleteFiles + const MethodWorkspaceWillRenameFiles + const SemanticTokenModifierAbstract + const SemanticTokenModifierAsync + const SemanticTokenModifierDeclaration + const SemanticTokenModifierDefaultLibrary + const SemanticTokenModifierDefinition + const SemanticTokenModifierDeprecated + const SemanticTokenModifierDocumentation + const SemanticTokenModifierModification + const SemanticTokenModifierReadonly + const SemanticTokenModifierStatic + const SemanticTokenTypeClass + const SemanticTokenTypeComment + const SemanticTokenTypeEnum + const SemanticTokenTypeEnumMember + const SemanticTokenTypeEvent + const SemanticTokenTypeFunction + const SemanticTokenTypeInterface + const SemanticTokenTypeKeyword + const SemanticTokenTypeMacro + const SemanticTokenTypeMethod + const SemanticTokenTypeModifier + const SemanticTokenTypeNamespace + const SemanticTokenTypeNumber + const SemanticTokenTypeOperator + const SemanticTokenTypeParameter + const SemanticTokenTypeProperty + const SemanticTokenTypeRegexp + const SemanticTokenTypeString + const SemanticTokenTypeStruct + const SemanticTokenTypeType + const SemanticTokenTypeTypeParameter + const SemanticTokenTypeVariable + const TraceValueMessage + const TraceValueOff + const TraceValueVerbose + var EOL = []string + var ErrInvalidCodeActionOrCommand = errors.New("invalid code action or command") + var ErrInvalidDocumentDiagnosticReportKind = errors.New("invalid document diagnostic report kind") + var True = true + type AnnotatedTextEdit struct + AnnotationID ChangeAnnotationIdentifier + type ApplyWorkspaceEditParams struct + Edit WorkspaceEdit + Label *string + type ApplyWorkspaceEditResult struct + Applied bool + FailedChange *UInteger + FailureReason *string + type BoolOrString struct + BoolVal *bool + StrVal *string + func (b *BoolOrString) MarshalJSON() ([]byte, error) + func (b *BoolOrString) String() string + func (b *BoolOrString) UnmarshalJSON(data []byte) error + type CallHierarchyClientCapabilities struct + DynamicRegistration *bool + type CallHierarchyIncomingCall struct + From CallHierarchyItem + FromRanges []Range + type CallHierarchyIncomingCallsHandlerFunc func(ctx *common.LSPContext, params *CallHierarchyIncomingCallsParams) ([]CallHierarchyIncomingCall, error) + type CallHierarchyIncomingCallsParams struct + Item CallHierarchyItem + type CallHierarchyItem struct + Data any + Detail *string + Kind SymbolKind + Name string + Range Range + SelectionRange Range + Tags []SymbolTag + URI DocumentURI + type CallHierarchyOptions struct + type CallHierarchyOutgoingCall struct + FromRanges []Range + To CallHierarchyItem + type CallHierarchyOutgoingCallsHandlerFunc func(ctx *common.LSPContext, params *CallHierarchyOutgoingCallsParams) ([]CallHierarchyOutgoingCall, error) + type CallHierarchyOutgoingCallsParams struct + Item CallHierarchyItem + type CallHierarchyPrepareParams struct + type CallHierarchyRegistrationOptions struct + type CancelParams struct + ID *IntOrString + type CancelRequestHandlerFunc func(ctx *common.LSPContext, params *CancelParams) error + type ChangeAnnotation struct + Description *string + Label string + NeedsConfirmation *bool + type ChangeAnnotationIdentifier = string + type ChangeAnnotationSupport struct + GroupsOnLabel *bool + type ClientCapabilities struct + Experimental LSPAny + General *GeneralClientCapabilities + NotebookDocument *NotebookDocumentClientCapabilities + TextDocument *TextDocumentClientCapabilities + Window *WindowClientCapabilities + Workspace *ClientWorkspaceCapabilities + type ClientWorkspaceCapabilities struct + ApplyEdit *bool + CodeLens *CodeLensWorkspaceClientCapabilities + Configuration *bool + Diagnostics *DiagnosticWorkspaceClientCapabilities + DidChangeConfiguration *DidChangeConfigurationClientCapabilities + DidChangeWatchedFiles *DidChangeWatchedFilesClientCapabilities + ExecuteCommand *ExecuteCommandClientCapabilities + FileOperations *FileOperationClientCapabilities + InlayHint *InlayHintWorkspaceClientCapabilities + InlineValue *InlineValueWorkspaceClientCapabilities + SemanticTokens *SemanticTokensWorkspaceClientCapabilities + Symbol *WorkspaceSymbolClientCapabilities + WorkspaceEdit *WorkspaceEditClientCapabilities + WorkspaceFolders *bool + type CodeAction struct + Command *Command + Data LSPAny + Diagnostics []Diagnostic + Disabled *CodeActionDisabledReason + Edit *WorkspaceEdit + IsPreferred *bool + Kind *CodeActionKind + Title string + type CodeActionClientCapabilities struct + CodeActionLiteralSupport *CodeActionLiteralSupport + DataSupport *bool + DisabledSupport *bool + DynamicRegistration *bool + HonorsChangeAnnotations *bool + IsPreferredSupport *bool + ResolveSupport *CodeActionResolveSupport + type CodeActionContext struct + Diagnostics []Diagnostic + Only []CodeActionKind + TriggerKind *CodeActionTriggerKind + type CodeActionDisabledReason struct + Reason string + type CodeActionHandlerFunc func(ctx *common.LSPContext, params *CodeActionParams) ([]*CodeActionOrCommand, error) + type CodeActionKind = string + const CodeActionKindEmpty + const CodeActionKindQuickFix + const CodeActionKindRefactor + const CodeActionKindRefactorExtract + const CodeActionKindRefactorInline + const CodeActionKindRefactorRewrite + const CodeActionKindSource + const CodeActionKindSourceFixAll + const CodeActionKindSourceOrganizeImports + type CodeActionKindCapabilities struct + ValueSet []CodeActionKind + type CodeActionLiteralSupport struct + CodeActionKind *CodeActionKindCapabilities + type CodeActionOptions struct + CodeActionKinds []CodeActionKind + ResolveProvider *bool + type CodeActionOrCommand struct + CodeAction *CodeAction + Command *Command + func (c *CodeActionOrCommand) MarshalJSON() ([]byte, error) + func (c *CodeActionOrCommand) UnmarshalJSON(data []byte) error + type CodeActionParams struct + Context CodeActionContext + Range Range + TextDocument TextDocumentIdentifier + type CodeActionResolveHandlerFunc func(ctx *common.LSPContext, params *CodeAction) (*CodeAction, error) + type CodeActionResolveSupport struct + Properties []string + type CodeActionTriggerKind = Integer + var CodeActionTriggerKindAutomatic CodeActionTriggerKind = 2 + var CodeActionTriggerKindInvoked CodeActionTriggerKind = 1 + type CodeDescription struct + Href URI + type CodeLens struct + Command *Command + Data LSPAny + Range Range + type CodeLensClientCapabilities struct + DynamicRegistration *bool + type CodeLensHandlerFunc func(ctx *common.LSPContext, params *CodeLensParams) ([]CodeLens, error) + type CodeLensOptions struct + ResolveProvider *bool + type CodeLensParams struct + TextDocument TextDocumentIdentifier + type CodeLensResolveHandlerFunc func(ctx *common.LSPContext, params *CodeLens) (*CodeLens, error) + type CodeLensWorkspaceClientCapabilities struct + RefreshSupport *bool + type Color struct + Alpha Decimal + Blue Decimal + Green Decimal + Red Decimal + type ColorInformation struct + Color Color + Range Range + type ColorPresentation struct + AdditionalTextEdits []TextEdit + Label string + TextEdit *TextEdit + type ColorPresentationParams struct + Color Color + Range Range + TextDocument TextDocumentIdentifier + type Command struct + Arguments []LSPAny + Command string + Title string + type CompletionClientCapabilities struct + CompletionItem *CompletionItemCapabilities + CompletionItemKind *CompletionItemKindCapabilities + CompletionList *CompletionListCapabilities + ContextSupport *bool + DynamicRegistration *bool + InsertTextMode *CompletionItemInsertTextMode + type CompletionContext struct + TriggerCharacter *string + TriggerKind CompletionTriggerKind + type CompletionHandlerFunc func(ctx *common.LSPContext, params *CompletionParams) (any, error) + type CompletionItem struct + AdditionalTextEdits []TextEdit + Command *Command + CommitCharacters []string + Data LSPAny + Deprecated *bool + Detail *string + Documentation any + FilterText *string + InsertText *string + InsertTextFormat *InsertTextFormat + InsertTextMode *InsertTextMode + Kind *CompletionItemKind + Label string + LabelDetails *CompletionItemLabelDetails + Preselect *bool + SortText *string + Tags []CompletionItemTag + TextEdit any + TextEditText *string + func (i *CompletionItem) UnmarshalJSON(data []byte) error + type CompletionItemCapabilities struct + CommitCharactersSupport *bool + DeprecatedSupport *bool + DocumentationFormat []MarkupKind + InsertReplaceSupport *bool + InsertTextModeSupport *CompletionItemInsertTextModeSupport + LabelDetailsSupport *bool + PreselectSupport *bool + ResolveSupport *CompletionItemResolveSupport + SnippetSupport *bool + TagSupport *CompletionItemTagSupport + type CompletionItemDefaults struct + CommitCharacters []string + Data LSPAny + EditRange any + InsertTextFormat *InsertTextFormat + InsertTextMode *InsertTextMode + func (d *CompletionItemDefaults) UnmarshalJSON(data []byte) error + type CompletionItemInsertTextMode = Integer + const CompletionItemInsertTextModeAdjustIndentation + const CompletionItemInsertTextModeAsIs + type CompletionItemInsertTextModeSupport struct + ValueSet []CompletionItemInsertTextMode + type CompletionItemKind = Integer + const CompletionItemKindClass + const CompletionItemKindColor + const CompletionItemKindConstant + const CompletionItemKindConstructor + const CompletionItemKindEnum + const CompletionItemKindEnumMember + const CompletionItemKindEvent + const CompletionItemKindField + const CompletionItemKindFile + const CompletionItemKindFolder + const CompletionItemKindFunction + const CompletionItemKindInterface + const CompletionItemKindKeyword + const CompletionItemKindMethod + const CompletionItemKindModule + const CompletionItemKindOperator + const CompletionItemKindProperty + const CompletionItemKindReference + const CompletionItemKindSnippet + const CompletionItemKindStruct + const CompletionItemKindText + const CompletionItemKindTypeParameter + const CompletionItemKindUnit + const CompletionItemKindValue + const CompletionItemKindVariable + type CompletionItemKindCapabilities struct + ValueSet []CompletionItemKind + type CompletionItemLabelDetails struct + Description *string + Detail *string + type CompletionItemResolveHandlerFunc func(ctx *common.LSPContext, params *CompletionItem) (*CompletionItem, error) + type CompletionItemResolveSupport struct + Properties []string + type CompletionItemTag = Integer + const CompletionItemTagDeprecated + type CompletionItemTagSupport struct + ValueSet []CompletionItemTag + type CompletionList struct + IsIncomplete bool + ItemDefaults *CompletionItemDefaults + Items []*CompletionItem + type CompletionListCapabilities struct + ItemDefaults []string + type CompletionOptions struct + AllCommitCharacters []string + CompletionItem *CompletionOptionsItem + ResolveProvider *bool + TriggerCharacters []string + type CompletionOptionsItem struct + LabelDetailsSupport *bool + type CompletionParams struct + Context *CompletionContext + type CompletionTriggerKind = Integer + const CompletionTriggerKindInvoked + const CompletionTriggerKindTriggerCharacter + const CompletionTriggerKindTriggerForIncompleteCompletions + type ConfigurationItem struct + ScopeURI *URI + Section *string + type ConfigurationParams struct + Items []ConfigurationItem + type CreateFile struct + AnnotationID *ChangeAnnotationIdentifier + Kind string + Options *CreateFileOptions + URI DocumentURI + type CreateFileOptions struct + IgnoreIfExists *bool + Overwrite *bool + type CreateFilesParams struct + Files []FileCreate + type Decimal = float64 + type DeclarationClientCapabilities struct + DynamicRegistration *bool + LinkSupport *bool + type DeclarationOptions struct + type DeclarationParams struct + type DeclarationRegistrationOptions struct + type DefinitionClientCapabilities struct + DynamicRegistration *bool + LinkSupport *bool + type DefinitionOptions struct + type DefinitionParams struct + type DeleteFile struct + AnnotationID *ChangeAnnotationIdentifier + Kind string + Options *DeleteFileOptions + URI DocumentURI + type DeleteFileOptions struct + IgnoreIfNotExists *bool + Recursive *bool + type DeleteFilesParams struct + Files []FileDelete + type Diagnostic struct + Code *IntOrString + CodeDescription *CodeDescription + Data any + Message string + Range Range + RelatedInformation []DiagnosticRelatedInformation + Severity *DiagnosticSeverity + Source *string + Tags []DiagnosticTag + type DiagnosticClientCapabilities struct + DynamicRegistration *bool + RelatedDocumentSupport *bool + type DiagnosticOptions struct + Identifier *string + InterFileDependencies bool + WorkspaceDiagnostics bool + type DiagnosticRegistrationOptions struct + type DiagnosticRelatedInformation struct + Location Location + Message string + type DiagnosticSeverity = UInteger + const DiagnosticSeverityError + const DiagnosticSeverityHint + const DiagnosticSeverityInformation + const DiagnosticSeverityWarning + type DiagnosticTag = UInteger + const DiagnosticTagDeprecated + const DiagnosticTagUnnecessary + type DiagnosticTagSupport struct + ValueSet []DiagnosticTag + type DiagnosticWorkspaceClientCapabilities struct + RefreshSupport *bool + type DidChangeConfigurationClientCapabilities struct + DynamicRegistration *bool + type DidChangeConfigurationParams struct + Settings LSPAny + type DidChangeNotebookDocumentParams struct + Change NotebookDocumentChangeEvent + NotebookDocument VersionedNotebookDocumentIdentifier + type DidChangeTextDocumentParams struct + ContentChanges []any + TextDocument VersionedTextDocumentIdentifier + func (p *DidChangeTextDocumentParams) UnmarshalJSON(data []byte) error + type DidChangeWatchedFilesClientCapabilities struct + DynamicRegistration *bool + RelativePatternSupport *bool + type DidChangeWatchedFilesParams struct + Changes []FileEvent + type DidChangeWorkspaceFoldersParams struct + Event WorkspaceFoldersChangeEvent + type DidCloseNotebookDocumentParams struct + CellTextDocuments []TextDocumentIdentifier + NotebookDocument NotebookDocumentIdentifier + type DidCloseTextDocumentParams struct + TextDocument TextDocumentIdentifier + type DidOpenNotebookDocumentParams struct + CellTextDocuments []TextDocumentItem + Notebook NotebookDocument + type DidOpenTextDocumentParams struct + TextDocument TextDocumentItem + type DidSaveNotebookDocumentParams struct + NotebookDocument NotebookDocumentIdentifier + type DidSaveTextDocumentParams struct + Text *string + TextDocument TextDocumentIdentifier + type Dispatcher struct + func NewDispatcher(ctx *common.LSPContext) *Dispatcher + func (d *Dispatcher) ApplyWorkspaceEdit(params ApplyWorkspaceEditParams) (*ApplyWorkspaceEditResult, error) + func (d *Dispatcher) CancelRequest(params CancelParams) error + func (d *Dispatcher) CodeLensRefresh() error + func (d *Dispatcher) Context() *common.LSPContext + func (d *Dispatcher) CreateWorkDoneProgress(params WorkDoneProgressCreateParams) error + func (d *Dispatcher) DiagnosticsRefresh() error + func (d *Dispatcher) InlayHintRefresh() error + func (d *Dispatcher) InlineValueRefresh() error + func (d *Dispatcher) LogMessage(params LogMessageParams) error + func (d *Dispatcher) LogTrace(params LogTraceParams) error + func (d *Dispatcher) Progress(params ProgressParams) error + func (d *Dispatcher) PublishDiagnostics(params PublishDiagnosticsParams) error + func (d *Dispatcher) RegisterCapability(params RegistrationParams) error + func (d *Dispatcher) SemanticTokensRefresh() error + func (d *Dispatcher) ShowMessageNotification(params ShowMessageParams) error + func (d *Dispatcher) ShowMessageRequest(params ShowMessageRequestParams) (*MessageActionItem, error) + func (d *Dispatcher) Telemetry(params TelemetryEventParams) error + func (d *Dispatcher) UnregisterCapability(params UnregistrationParams) error + func (d *Dispatcher) WorkspaceConfiguration(params ConfigurationParams, target any) error + func (d *Dispatcher) WorkspaceFolders() ([]WorkspaceFolder, error) + type DocumentColorClientCapabilities struct + DynamicRegistration *bool + type DocumentColorHandlerFunc func(ctx *common.LSPContext, params *DocumentColorParams) ([]ColorInformation, error) + type DocumentColorOptions struct + type DocumentColorParams struct + TextDocument TextDocumentIdentifier + type DocumentColorPresentationHandlerFunc func(ctx *common.LSPContext, params *ColorPresentationParams) ([]ColorPresentation, error) + type DocumentColorRegistrationOptions struct + type DocumentDiagnosticHandlerFunc func(ctx *common.LSPContext, params *DocumentDiagnosticParams) (any, error) + type DocumentDiagnosticParams struct + Identifier *string + PreviousResultID *string + TextDocument TextDocumentIdentifier + type DocumentDiagnosticReportKind = string + const DocumentDiagnosticReportKindFull + const DocumentDiagnosticReportKindUnchanged + type DocumentDiagnosticReportPartialResult struct + RelatedDocuments map[string]any + func (r *DocumentDiagnosticReportPartialResult) UnmarshalJSON(data []byte) error + type DocumentFilter struct + Language *string + Pattern *string + Scheme *string + type DocumentFormattingClientCapabilities struct + DynamicRegistration *bool + type DocumentFormattingHandlerFunc func(ctx *common.LSPContext, params *DocumentFormattingParams) ([]TextEdit, error) + type DocumentFormattingOptions struct + type DocumentFormattingParams struct + Options FormattingOptions + TextDocument TextDocumentIdentifier + type DocumentHighlight struct + Kind *DocumentHighlightKind + Range Range + type DocumentHighlightClientCapabilities struct + DynamicRegistration *bool + type DocumentHighlightHandlerFunc func(ctx *common.LSPContext, params *DocumentHighlightParams) ([]DocumentHighlight, error) + type DocumentHighlightKind = Integer + var DocumentHighlightKindRead DocumentHighlightKind = 2 + var DocumentHighlightKindText DocumentHighlightKind = 1 + var DocumentHighlightKindWrite DocumentHighlightKind = 3 + type DocumentHighlightOptions struct + type DocumentHighlightParams struct + type DocumentLink struct + Data LSPAny + Range Range + Target *DocumentURI + Tooltip *string + type DocumentLinkClientCapabilities struct + DynamicRegistration *bool + TooltipSupport *bool + type DocumentLinkHandlerFunc func(ctx *common.LSPContext, params *DocumentLinkParams) ([]DocumentLink, error) + type DocumentLinkOptions struct + ResolveProvider *bool + type DocumentLinkParams struct + TextDocument TextDocumentIdentifier + type DocumentLinkResolveHandlerFunc func(ctx *common.LSPContext, params *DocumentLink) (*DocumentLink, error) + type DocumentLinkedEditingRangeHandlerFunc func(ctx *common.LSPContext, params *LinkedEditingRangeParams) (*LinkedEditingRanges, error) + type DocumentOnTypeFormattingClientCapabilities struct + DynamicRegistration *bool + type DocumentOnTypeFormattingHandlerFunc func(ctx *common.LSPContext, params *DocumentOnTypeFormattingParams) ([]TextEdit, error) + type DocumentOnTypeFormattingOptions struct + FirstTriggerCharacter string + MoreTriggerCharacter []string + type DocumentOnTypeFormattingParams struct + Ch string + Options FormattingOptions + Position Position + TextDocument TextDocumentIdentifier + type DocumentPrepareRenameHandlerFunc func(ctx *common.LSPContext, params *PrepareRenameParams) (any, error) + type DocumentRangeFormattingClientCapabilities struct + DynamicRegistration *bool + type DocumentRangeFormattingHandlerFunc func(ctx *common.LSPContext, params *DocumentRangeFormattingParams) ([]TextEdit, error) + type DocumentRangeFormattingOptions struct + type DocumentRangeFormattingParams struct + Options FormattingOptions + Range Range + TextDocument TextDocumentIdentifier + type DocumentRenameHandlerFunc func(ctx *common.LSPContext, params *RenameParams) (*WorkspaceEdit, error) + type DocumentSelector = []DocumentFilter + type DocumentSymbol struct + Children []DocumentSymbol + Deprecated *bool + Detail *string + Kind SymbolKind + Name string + Range Range + SelectionRange Range + Tags []SymbolTag + type DocumentSymbolClientCapabilities struct + DynamicRegistration *bool + HierarchicalDocumentSymbolSupport *bool + LabelSupport *bool + SymbolKind *SymbolKindCapabilities + TagSupport *SymbolTagSupport + type DocumentSymbolHandlerFunc func(ctx *common.LSPContext, params *DocumentSymbolParams) (any, error) + type DocumentSymbolOptions struct + Label *string + type DocumentSymbolParams struct + TextDocument TextDocumentIdentifier + type DocumentURI = string + type DocumentURIObject struct + URI DocumentURI + type ErrorWithData struct + Code *IntOrString + Data any + type ExecuteCommandClientCapabilities struct + DynamicRegistration *bool + type ExecuteCommandOptions struct + Commands []string + type ExecuteCommandParams struct + Arguments []LSPAny + Command string + type ExitHandlerFunc func(ctx *common.LSPContext) error + type FailureHandlingKind = string + const FailureHandlingKindAbort + const FailureHandlingKindTextOnlyTransactional + const FailureHandlingKindTransactional + const FailureHandlingKindUndo + type FileChangeType = Integer + const FileChangeChanged + const FileChangeCreated + const FileChangeDeleted + type FileCreate struct + URI string + type FileDelete struct + URI string + type FileEvent struct + Type FileChangeType + URI DocumentURI + type FileOperationClientCapabilities struct + DidCreate *bool + DidDelete *bool + DidRename *bool + DynamicRegistration *bool + WillCreate *bool + WillDelete *bool + WillRename *bool + type FileOperationFilter struct + Pattern FileOperationPattern + Scheme *string + type FileOperationPattern struct + Glob string + Matches *FileOperationPatternKind + Options *FileOperationPatternOptions + type FileOperationPatternKind = string + const FileOperationPatternKindFile + const FileOperationPatternKindFolder + type FileOperationPatternOptions struct + IgnoreCase *bool + type FileOperationRegistrationOptions struct + Filters []FileOperationFilter + type FileRename struct + NewURI string + OldURI string + type FindReferencesHandlerFunc func(ctx *common.LSPContext, params *ReferencesParams) ([]Location, error) + type FoldingRange struct + CollapsedText *string + EndCharacter *UInteger + EndLine UInteger + Kind *FoldingRangeKind + StartCharacter *UInteger + StartLine UInteger + type FoldingRangeCapabilities struct + CollapsedText *bool + type FoldingRangeClientCapabilities struct + DynamicRegistration *bool + FoldingRange *FoldingRangeCapabilities + FoldingRangeKind *FoldingRangeKindCapabilities + LineFoldingOnly *bool + RangeLimit *UInteger + type FoldingRangeHandlerFunc func(ctx *common.LSPContext, params *FoldingRangeParams) ([]FoldingRange, error) + type FoldingRangeKind = string + var FoldingRangeKindComment FoldingRangeKind = "comment" + var FoldingRangeKindImports FoldingRangeKind = "imports" + var FoldingRangeKindRegion FoldingRangeKind = "region" + type FoldingRangeKindCapabilities struct + ValueSet []FoldingRangeKind + type FoldingRangeOptions struct + type FoldingRangeParams struct + TextDocument TextDocumentIdentifier + type FoldingRangeRegistrationOptions struct + type FormattingOptions map[string]any + type FullDocumentDiagnosticReport struct + Items []Diagnostic + Kind DocumentDiagnosticReportKind + ResultID *string + type GeneralClientCapabilities struct + Markdown *MarkdownClientCapabilities + PositionEncodings []PositionEncodingKind + RegularExpressions *RegularExpressionsClientCapabilities + StaleRequestSupport *StaleRequestSupport + type GotoDeclarationHandlerFunc func(ctx *common.LSPContext, params *DeclarationParams) (any, error) + type GotoDefinitionHandlerFunc func(ctx *common.LSPContext, params *DefinitionParams) (any, error) + type GotoImplementationHandlerFunc func(ctx *common.LSPContext, params *ImplementationParams) (any, error) + type GotoTypeDefinitionHandlerFunc func(ctx *common.LSPContext, params *TypeDefinitionParams) (any, error) + type Handler struct + func NewHandler(opts ...HandlerOption) *Handler + func (h *Handler) CreateServerCapabilities() ServerCapabilities + func (h *Handler) Handle(ctx *common.LSPContext) (r any, validMethod bool, validParams bool, err error) + func (h *Handler) IsInitialized() bool + func (h *Handler) SetCallHierarchyIncomingCallsHandler(handler CallHierarchyIncomingCallsHandlerFunc) + func (h *Handler) SetCallHierarchyOutgoingCallsHandler(handler CallHierarchyOutgoingCallsHandlerFunc) + func (h *Handler) SetCancelRequestHandler(handler CancelRequestHandlerFunc) + func (h *Handler) SetCodeActionHandler(handler CodeActionHandlerFunc) + func (h *Handler) SetCodeActionResolveHandler(handler CodeActionResolveHandlerFunc) + func (h *Handler) SetCodeLensHandler(handler CodeLensHandlerFunc) + func (h *Handler) SetCodeLensResolveHandler(handler CodeLensResolveHandlerFunc) + func (h *Handler) SetCompletionHandler(handler CompletionHandlerFunc) + func (h *Handler) SetCompletionItemResolveHandler(handler CompletionItemResolveHandlerFunc) + func (h *Handler) SetDocumentColorHandler(handler DocumentColorHandlerFunc) + func (h *Handler) SetDocumentColorPresentationHandler(handler DocumentColorPresentationHandlerFunc) + func (h *Handler) SetDocumentDiagnosticsHandler(handler DocumentDiagnosticHandlerFunc) + func (h *Handler) SetDocumentFormattingHandler(handler DocumentFormattingHandlerFunc) + func (h *Handler) SetDocumentHighlightHandler(handler DocumentHighlightHandlerFunc) + func (h *Handler) SetDocumentLinkHandler(handler DocumentLinkHandlerFunc) + func (h *Handler) SetDocumentLinkResolveHandler(handler DocumentLinkResolveHandlerFunc) + func (h *Handler) SetDocumentLinkedEditingRangeHandler(handler DocumentLinkedEditingRangeHandlerFunc) + func (h *Handler) SetDocumentOnTypeFormattingHandler(handler DocumentOnTypeFormattingHandlerFunc) + func (h *Handler) SetDocumentPrepareRenameHandler(handler DocumentPrepareRenameHandlerFunc) + func (h *Handler) SetDocumentRangeFormattingHandler(handler DocumentRangeFormattingHandlerFunc) + func (h *Handler) SetDocumentRenameHandler(handler DocumentRenameHandlerFunc) + func (h *Handler) SetDocumentSymbolHandler(handler DocumentSymbolHandlerFunc) + func (h *Handler) SetExitHandler(handler ExitHandlerFunc) + func (h *Handler) SetFindReferencesHandler(handler FindReferencesHandlerFunc) + func (h *Handler) SetFoldingRangeHandler(handler FoldingRangeHandlerFunc) + func (h *Handler) SetGotoDeclarationHandler(handler GotoDeclarationHandlerFunc) + func (h *Handler) SetGotoDefinitionHandler(handler GotoDefinitionHandlerFunc) + func (h *Handler) SetGotoImplementationHandler(handler GotoImplementationHandlerFunc) + func (h *Handler) SetGotoTypeDefinitionHandler(handler GotoTypeDefinitionHandlerFunc) + func (h *Handler) SetHoverHandler(handler HoverHandlerFunc) + func (h *Handler) SetInitializeHandler(handler InitializeHandlerFunc) + func (h *Handler) SetInitialized(initialized bool) + func (h *Handler) SetInitializedHandler(handler InitializedHandlerFunc) + func (h *Handler) SetInlayHintHandler(handler InlayHintHandlerFunc) + func (h *Handler) SetInlayHintResolveHandler(handler InlayHintResolveHandlerFunc) + func (h *Handler) SetInlineValueHandler(handler InlineValueHandlerFunc) + func (h *Handler) SetMonikerHandler(handler MonikerHandlerFunc) + func (h *Handler) SetNotebookDocumentDidChangeHandler(handler NotebookDocumentDidChangeHandlerFunc) + func (h *Handler) SetNotebookDocumentDidCloseHandler(handler NotebookDocumentDidCloseHandlerFunc) + func (h *Handler) SetNotebookDocumentDidOpenHandler(handler NotebookDocumentDidOpenHandlerFunc) + func (h *Handler) SetNotebookDocumentDidSaveHandler(handler NotebookDocumentDidSaveHandlerFunc) + func (h *Handler) SetPrepareCallHierarchyHandler(handler PrepareCallHierarchyHandlerFunc) + func (h *Handler) SetPrepareTypeHierarchyHandler(handler PrepareTypeHierarchyHandlerFunc) + func (h *Handler) SetProgressHandler(handler ProgressHandlerFunc) + func (h *Handler) SetSelectionRangeHandler(handler SelectionRangeHandlerFunc) + func (h *Handler) SetSemanticTokensFullDeltaHandler(handler SemanticTokensFullDeltaHandlerFunc) + func (h *Handler) SetSemanticTokensFullHandler(handler SemanticTokensFullHandlerFunc) + func (h *Handler) SetSemanticTokensRangeHandler(handler SemanticTokensRangeHandlerFunc) + func (h *Handler) SetShutdownHandler(handler ShutdownHandlerFunc) + func (h *Handler) SetSignatureHelpHandler(handler SignatureHelpHandlerFunc) + func (h *Handler) SetTextDocumentDidChangeHandler(handler TextDocumentDidChangeHandlerFunc) + func (h *Handler) SetTextDocumentDidCloseHandler(handler TextDocumentDidCloseHandlerFunc) + func (h *Handler) SetTextDocumentDidOpenHandler(handler TextDocumentDidOpenHandlerFunc) + func (h *Handler) SetTextDocumentDidSaveHandler(handler TextDocumentDidSaveHandlerFunc) + func (h *Handler) SetTextDocumentWillSaveHandler(handler TextDocumentWillSaveHandlerFunc) + func (h *Handler) SetTextDocumentWillSaveWaitUntilHandler(handler TextDocumentWillSaveWaitUntilHandlerFunc) + func (h *Handler) SetTraceHandler(handler SetTraceHandlerFunc) + func (h *Handler) SetTypeHierarchySubtypesHandler(handler TypeHierarchySubtypesHandlerFunc) + func (h *Handler) SetTypeHierarchySupertypesHandler(handler TypeHierarchySupertypesHandlerFunc) + func (h *Handler) SetWindowWorkDoneProgressCancelHandler(handler WindowWorkDoneProgressCancelHandler) + func (h *Handler) SetWorkspaceDiagnosticHandler(handler WorkspaceDiagnosticHandlerFunc) + func (h *Handler) SetWorkspaceDidChangeConfigurationHandler(handler WorkspaceDidChangeConfigurationHandlerFunc) + func (h *Handler) SetWorkspaceDidChangeFoldersHandler(handler WorkspaceDidChangeFoldersHandlerFunc) + func (h *Handler) SetWorkspaceDidChangeWatchedFilesHandler(handler WorkspaceDidChangeWatchedFilesHandlerFunc) + func (h *Handler) SetWorkspaceDidCreateFilesHandler(handler WorkspaceDidCreateFilesHandlerFunc) + func (h *Handler) SetWorkspaceDidDeleteFilesHandler(handler WorkspaceDidDeleteFilesHandlerFunc) + func (h *Handler) SetWorkspaceDidRenameFilesHandler(handler WorkspaceDidRenameFilesHandlerFunc) + func (h *Handler) SetWorkspaceExecuteCommandHandler(handler WorkspaceExecuteCommandHandlerFunc) + func (h *Handler) SetWorkspaceSymbolHandler(handler WorkspaceSymbolHandlerFunc) + func (h *Handler) SetWorkspaceSymbolResolveHandler(handler WorkspaceSymbolResolveHandlerFunc) + func (h *Handler) SetWorkspaceWillCreateFilesHandler(handler WorkspaceWillCreateFilesHandlerFunc) + func (h *Handler) SetWorkspaceWillDeleteFilesHandler(handler WorkspaceWillDeleteFilesHandlerFunc) + func (h *Handler) SetWorkspaceWillRenameFilesHandler(handler WorkspaceWillRenameFilesHandlerFunc) + type HandlerOption func(*Handler) + func WithCallHierarchyIncomingCallsHandler(handler CallHierarchyIncomingCallsHandlerFunc) HandlerOption + func WithCallHierarchyOutgoingCallsHandler(handler CallHierarchyOutgoingCallsHandlerFunc) HandlerOption + func WithCancelRequestHandler(handler CancelRequestHandlerFunc) HandlerOption + func WithCodeActionHandler(handler CodeActionHandlerFunc) HandlerOption + func WithCodeActionResolveHandler(handler CodeActionResolveHandlerFunc) HandlerOption + func WithCodeLensHandler(handler CodeLensHandlerFunc) HandlerOption + func WithCodeLensResolveHandler(handler CodeLensResolveHandlerFunc) HandlerOption + func WithCompletionHandler(handler CompletionHandlerFunc) HandlerOption + func WithCompletionItemResolveHandler(handler CompletionItemResolveHandlerFunc) HandlerOption + func WithDocumentColorHandler(handler DocumentColorHandlerFunc) HandlerOption + func WithDocumentColorPresentationHandler(handler DocumentColorPresentationHandlerFunc) HandlerOption + func WithDocumentDiagnosticsHandler(handler DocumentDiagnosticHandlerFunc) HandlerOption + func WithDocumentFormattingHandler(handler DocumentFormattingHandlerFunc) HandlerOption + func WithDocumentHighlightHandler(handler DocumentHighlightHandlerFunc) HandlerOption + func WithDocumentLinkHandler(handler DocumentLinkHandlerFunc) HandlerOption + func WithDocumentLinkResolveHandler(handler DocumentLinkResolveHandlerFunc) HandlerOption + func WithDocumentLinkedEditingRangeHandler(handler DocumentLinkedEditingRangeHandlerFunc) HandlerOption + func WithDocumentOnTypeFormattingHandler(handler DocumentOnTypeFormattingHandlerFunc) HandlerOption + func WithDocumentPrepareRenameHandler(handler DocumentPrepareRenameHandlerFunc) HandlerOption + func WithDocumentRangeFormattingHandler(handler DocumentRangeFormattingHandlerFunc) HandlerOption + func WithDocumentRenameHandler(handler DocumentRenameHandlerFunc) HandlerOption + func WithDocumentSymbolHandler(handler DocumentSymbolHandlerFunc) HandlerOption + func WithExitHandler(handler ExitHandlerFunc) HandlerOption + func WithFindReferencesHandler(handler FindReferencesHandlerFunc) HandlerOption + func WithFoldingRangeHandler(handler FoldingRangeHandlerFunc) HandlerOption + func WithGotoDeclarationHandler(handler GotoDeclarationHandlerFunc) HandlerOption + func WithGotoDefinitionHandler(handler GotoDefinitionHandlerFunc) HandlerOption + func WithGotoImplementationHandler(handler GotoImplementationHandlerFunc) HandlerOption + func WithGotoTypeDefinitionHandler(handler GotoTypeDefinitionHandlerFunc) HandlerOption + func WithHoverHandler(handler HoverHandlerFunc) HandlerOption + func WithInitializeHandler(handler InitializeHandlerFunc) HandlerOption + func WithInitializedHandler(handler InitializedHandlerFunc) HandlerOption + func WithInlayHintHandler(handler InlayHintHandlerFunc) HandlerOption + func WithInlayHintResolveHandler(handler InlayHintResolveHandlerFunc) HandlerOption + func WithInlineValueHandler(handler InlineValueHandlerFunc) HandlerOption + func WithMonikerHandler(handler MonikerHandlerFunc) HandlerOption + func WithNotebookDocumentDidChangeHandler(handler NotebookDocumentDidChangeHandlerFunc) HandlerOption + func WithNotebookDocumentDidCloseHandler(handler NotebookDocumentDidCloseHandlerFunc) HandlerOption + func WithNotebookDocumentDidOpenHandler(handler NotebookDocumentDidOpenHandlerFunc) HandlerOption + func WithNotebookDocumentDidSaveHandler(handler NotebookDocumentDidSaveHandlerFunc) HandlerOption + func WithPrepareCallHierarchyHandler(handler PrepareCallHierarchyHandlerFunc) HandlerOption + func WithPrepareTypeHierarchyHandler(handler PrepareTypeHierarchyHandlerFunc) HandlerOption + func WithProgressHandler(handler ProgressHandlerFunc) HandlerOption + func WithSelectionRangeHandler(handler SelectionRangeHandlerFunc) HandlerOption + func WithSemanticTokensFullDeltaHandler(handler SemanticTokensFullDeltaHandlerFunc) HandlerOption + func WithSemanticTokensFullHandler(handler SemanticTokensFullHandlerFunc) HandlerOption + func WithSemanticTokensRangeHandler(handler SemanticTokensRangeHandlerFunc) HandlerOption + func WithSetTraceHandler(handler SetTraceHandlerFunc) HandlerOption + func WithShutdownHandler(handler ShutdownHandlerFunc) HandlerOption + func WithSignatureHelpHandler(handler SignatureHelpHandlerFunc) HandlerOption + func WithTextDocumentDidChangeHandler(handler TextDocumentDidChangeHandlerFunc) HandlerOption + func WithTextDocumentDidCloseHandler(handler TextDocumentDidCloseHandlerFunc) HandlerOption + func WithTextDocumentDidOpenHandler(handler TextDocumentDidOpenHandlerFunc) HandlerOption + func WithTextDocumentDidSaveHandler(handler TextDocumentDidSaveHandlerFunc) HandlerOption + func WithTextDocumentWillSaveHandler(handler TextDocumentWillSaveHandlerFunc) HandlerOption + func WithTextDocumentWillSaveWaitUntilHandler(handler TextDocumentWillSaveWaitUntilHandlerFunc) HandlerOption + func WithTypeHierarchySubtypesHandler(handler TypeHierarchySubtypesHandlerFunc) HandlerOption + func WithTypeHierarchySupertypesHandler(handler TypeHierarchySupertypesHandlerFunc) HandlerOption + func WithWindowWorkDoneProgressCancelHandler(handler WindowWorkDoneProgressCancelHandler) HandlerOption + func WithWorkspaceDiagnosticHandler(handler WorkspaceDiagnosticHandlerFunc) HandlerOption + func WithWorkspaceDidChangeConfigurationHandler(handler WorkspaceDidChangeConfigurationHandlerFunc) HandlerOption + func WithWorkspaceDidChangeFoldersHandler(handler WorkspaceDidChangeFoldersHandlerFunc) HandlerOption + func WithWorkspaceDidChangeWatchedFilesHandler(handler WorkspaceDidChangeWatchedFilesHandlerFunc) HandlerOption + func WithWorkspaceDidCreateFilesHandler(handler WorkspaceDidCreateFilesHandlerFunc) HandlerOption + func WithWorkspaceDidDeleteFilesHandler(handler WorkspaceDidDeleteFilesHandlerFunc) HandlerOption + func WithWorkspaceDidRenameFilesHandler(handler WorkspaceDidRenameFilesHandlerFunc) HandlerOption + func WithWorkspaceExecuteCommandHandler(handler WorkspaceExecuteCommandHandlerFunc) HandlerOption + func WithWorkspaceSymbolHandler(handler WorkspaceSymbolHandlerFunc) HandlerOption + func WithWorkspaceSymbolResolveHandler(handler WorkspaceSymbolResolveHandlerFunc) HandlerOption + func WithWorkspaceWillCreateFilesHandler(handler WorkspaceWillCreateFilesHandlerFunc) HandlerOption + func WithWorkspaceWillDeleteFilesHandler(handler WorkspaceWillDeleteFilesHandlerFunc) HandlerOption + func WithWorkspaceWillRenameFilesHandler(handler WorkspaceWillRenameFilesHandlerFunc) HandlerOption + type Hover struct + Contents any + Range *Range + func (h *Hover) UnmarshalJSON(data []byte) error + type HoverClientCapabilities struct + DynamicRegistration *bool + type HoverHandlerFunc func(ctx *common.LSPContext, params *HoverParams) (*Hover, error) + type HoverOptions struct + type HoverParams struct + type ImplementationClientCapabilities struct + DynamicRegistration *bool + LinkSupport *bool + type ImplementationOptions struct + type ImplementationParams struct + type ImplementationRegistrationOptions struct + type InitializeClientInfo struct + Name string + Version string + type InitializeError struct + Retry bool + type InitializeErrorCode Integer + type InitializeHandlerFunc func(ctx *common.LSPContext, params *InitializeParams) (any, error) + type InitializeParams struct + Capabilities ClientCapabilities + ClientInfo *InitializeClientInfo + InitializationOptions LSPAny + Locale *string + ProcessID *Integer + RootPath *string + RootURI *DocumentURI + Trace *TraceValue + WorkspaceFolders []WorkspaceFolder + type InitializeResult struct + Capabilities ServerCapabilities + ServerInfo *InitializeResultServerInfo + type InitializeResultServerInfo struct + Name string + Version *string + type InitializedHandlerFunc func(ctx *common.LSPContext, params *InitializedParams) error + type InitializedParams struct + type InlayHint struct + Data LSPAny + Kind *InlayHintKind + Label any + PaddingLeft *bool + PaddingRight *bool + Position Position + TextEdits []TextEdit + Tooltip any + func (h *InlayHint) UnmarshalJSON(data []byte) error + type InlayHintClientCapabilities struct + DynamicRegistration *bool + ResolveSupport *InlayHintResolveSupport + type InlayHintHandlerFunc func(ctx *common.LSPContext, params *InlayHintParams) ([]*InlayHint, error) + type InlayHintKind = UInteger + var InlayHintKindParameter InlayHintKind = 2 + var InlayHintKindType InlayHintKind = 1 + type InlayHintLabelPart struct + Command *Command + Location *Location + Tooltip any + Value string + func (lp *InlayHintLabelPart) UnmarshalJSON(data []byte) error + type InlayHintOptions struct + ResolveProvider *bool + type InlayHintParams struct + Range Range + TextDocument TextDocumentIdentifier + type InlayHintRegistrationOptions struct + type InlayHintResolveHandlerFunc func(ctx *common.LSPContext, params *InlayHint) (*InlayHint, error) + type InlayHintResolveSupport struct + Properties []string + type InlayHintWorkspaceClientCapabilities struct + RefreshSupport *bool + type InlineValue struct + InlineValueEvaluatable *InlineValueEvaluatableExpression + InlineValueText *InlineValueText + InlineValueVariableLookup *InlineValueVariableLookup + func (iv *InlineValue) MarshalJSON() ([]byte, error) + func (iv *InlineValue) UnmarshalJSON(data []byte) error + type InlineValueClientCapabilities struct + DynamicRegistration *bool + type InlineValueContext struct + FrameID Integer + StoppedLocation Range + type InlineValueEvaluatableExpression struct + Expression *string + Range Range + type InlineValueHandlerFunc func(ctx *common.LSPContext, params *InlineValueParams) ([]*InlineValue, error) + type InlineValueOptions struct + type InlineValueParams struct + Context InlineValueContext + Range Range + TextDocument TextDocumentIdentifier + type InlineValueRegistrationOptions struct + type InlineValueText struct + Range Range + Text string + type InlineValueVariableLookup struct + CaseSensitiveLookup bool + Range Range + VariableName *string + type InlineValueWorkspaceClientCapabilities struct + RefreshSupport *bool + type InsertReplaceEdit struct + Insert *Range + NewText string + Replace *Range + type InsertReplaceRange struct + Insert *Range + Replace *Range + type InsertTextFormat = Integer + var InsertTextFormatPlainText InsertTextFormat = 1 + var InsertTextFormatSnippet InsertTextFormat = 2 + type InsertTextMode = Integer + var InsertTextModeAdjustIndentation InsertTextMode = 2 + var InsertTextModeAsIs InsertTextMode = 1 + type IntOrString struct + IntVal *Integer + StrVal *string + func (i *IntOrString) MarshalJSON() ([]byte, error) + func (i *IntOrString) UnmarshalJSON(data []byte) error + type Integer = int32 + type LSPAny = interface + type LSPObject = map[string]LSPAny + type LinkedEditingRangeClientCapabilities struct + DynamicRegistration *bool + type LinkedEditingRangeOptions struct + type LinkedEditingRangeParams struct + type LinkedEditingRangeRegistrationOptions struct + type LinkedEditingRanges struct + Ranges []Range + WordPattern *string + type Location struct + Range *Range + URI DocumentURI + type LocationLink struct + OriginSelectionRange *Range + TargetRange Range + TargetSelectionRange Range + TargetURI DocumentURI + type LogMessageParams struct + Message string + Type MessageType + type LogTraceParams struct + Message string + Verbose *string + type MarkdownClientCapabilities struct + AllowedTags []string + Parser string + Version *string + type MarkedString struct + Value any + func (s *MarkedString) UnmarshalJSON(data []byte) error + func (s MarkedString) MarshalJSON() ([]byte, error) + type MarkedStringLanguage struct + Language string + Value string + type MarkupContent struct + Kind MarkupKind + Value string + type MarkupKind = string + const MarkupKindMarkdown + const MarkupKindPlainText + type MessageActionItem struct + Title string + type MessageActionItemClientCapabilities struct + AdditionalPropertiesSupport *bool + type MessageType = Integer + const MessageTypeDebug + const MessageTypeError + const MessageTypeInfo + const MessageTypeLog + const MessageTypeWarning + type Method = string + type Moniker struct + Identifier string + Kind *MonikerKind + Scheme string + Unique UniquenessLevel + type MonikerClientCapabilities struct + DynamicRegistration *bool + type MonikerHandlerFunc func(ctx *common.LSPContext, params *MonikerParams) ([]Moniker, error) + type MonikerKind = string + var MonikerKindExport MonikerKind = "export" + var MonikerKindImport MonikerKind = "import" + var MonikerKindLocal MonikerKind = "local" + type MonikerOptions struct + type MonikerParams struct + type MonikerRegistrationOptions struct + type NotebookCell struct + Document DocumentURI + ExecutionSummary *NotebookCellExecutionSummary + Kind NotebookCellKind + Metadata LSPObject + type NotebookCellArrayChange struct + Cells []NotebookCell + DeleteCount UInteger + Start UInteger + type NotebookCellChanges struct + Data []NotebookCell + Structure *NotebookCellChangesStructure + TextContent []NotebookCellChangesTextContent + type NotebookCellChangesStructure struct + Array NotebookCellArrayChange + DidClose []TextDocumentIdentifier + DidOpen []TextDocumentItem + type NotebookCellChangesTextContent struct + Changes []TextDocumentContentChangeEvent + Document VersionedTextDocumentIdentifier + type NotebookCellExecutionSummary struct + ExecutionOrder UInteger + Success *bool + type NotebookCellKind = Integer + const NotebookCellKindCode + const NotebookCellKindMarkup + type NotebookCellLanguage struct + Language string + type NotebookDocument struct + Cells []NotebookCell + Metadata LSPObject + NotebookType string + URI URI + Version Integer + type NotebookDocumentChangeEvent struct + Cells *NotebookCellChanges + Metadata LSPObject + type NotebookDocumentClientCapabilities struct + Synchronization *NotebookDocumentSyncClientCapabilities + type NotebookDocumentDidChangeHandlerFunc func(ctx *common.LSPContext, params *DidChangeNotebookDocumentParams) error + type NotebookDocumentDidCloseHandlerFunc func(ctx *common.LSPContext, params *DidCloseNotebookDocumentParams) error + type NotebookDocumentDidOpenHandlerFunc func(ctx *common.LSPContext, params *DidOpenNotebookDocumentParams) error + type NotebookDocumentDidSaveHandlerFunc func(ctx *common.LSPContext, params *DidSaveNotebookDocumentParams) error + type NotebookDocumentFilter struct + NotebookType string + Pattern *string + Scheme *string + type NotebookDocumentIdentifier struct + URI URI + type NotebookDocumentSyncClientCapabilities struct + DynamicRegistration *bool + ExecutionSummarySupport *bool + type NotebookDocumentSyncOptions struct + NotebookSelector []*NotebookSelectorItem + Save *bool + type NotebookDocumentSyncRegistrationOptions struct + type NotebookSelectorItem struct + Cells []NotebookCellLanguage + Notebook any + type OptionalVersionedTextDocumentIdentifier struct + Version *Integer + type ParameterInformation struct + Documentation any + Label any + func (p *ParameterInformation) UnmarshalJSON(data []byte) error + type ParameterInformationCapabilities struct + LabelOffsetSupport *bool + type PartialResultParams struct + PartialResultToken *ProgressToken + type Position struct + Character UInteger + Line UInteger + func (p Position) EndOfLineIn(content string, posEncodingKind PositionEncodingKind) Position + func (p Position) IndexIn(text string, posEncodingKind PositionEncodingKind) int + type PositionEncodingKind string + const PositionEncodingKindUTF16 + const PositionEncodingKindUTF32 + const PositionEncodingKindUTF8 + type PrepareCallHierarchyHandlerFunc func(ctx *common.LSPContext, params *CallHierarchyPrepareParams) ([]CallHierarchyItem, error) + type PrepareRenameDefaultBehavior struct + DefaultBehavior bool + type PrepareRenameParams struct + type PrepareSupportDefaultBehavior = Integer + const PrepareSupportDefaultBehaviorIdentifier + type PrepareTypeHierarchyHandlerFunc func(ctx *common.LSPContext, params *TypeHierarchyPrepareParams) ([]TypeHierarchyItem, error) + type PreviousResultID struct + URI DocumentURI + Value string + type ProgressHandlerFunc func(ctx *common.LSPContext, params *ProgressParams) error + type ProgressParams struct + Token *ProgressToken + Value LSPAny + type ProgressToken = IntOrString + type PublishDiagnosticsClientCapabilities struct + CodeDescriptionSupport *bool + DataSupport *bool + RelatedInformation *bool + TagSupport *DiagnosticTagSupport + VersionSupport *bool + type PublishDiagnosticsParams struct + Diagnostics []Diagnostic + URI DocumentURI + Version *Integer + type Range struct + End Position + Start Position + func (r Range) IndexesIn(content string, posEncodingKind PositionEncodingKind) (int, int) + type RangeWithPlaceholder struct + Placeholder string + Range Range + type ReferenceClientCapabilities struct + DynamicRegistration *bool + type ReferenceContext struct + IncludeDeclaration bool + type ReferenceOptions struct + type ReferencesParams struct + Context ReferenceContext + type Registration struct + ID string + Method string + RegisterOptions LSPAny + type RegistrationParams struct + Registrations []Registration + type RegularExpressionsClientCapabilities struct + Engine string + Version *string + type RelatedFullDocumentDiagnosticReport struct + RelatedDocuments map[string]any + func (r *RelatedFullDocumentDiagnosticReport) UnmarshalJSON(data []byte) error + type RelatedUnchangedDocumentDiagnosticReport struct + RelatedDocuments map[string]any + func (r *RelatedUnchangedDocumentDiagnosticReport) UnmarshalJSON(data []byte) error + type RenameClientCapabilities struct + DynamicRegistration *bool + HonorsChangeAnnotations *bool + PrepareSupport *bool + PrepareSupportDefaultBehavior *PrepareSupportDefaultBehavior + type RenameFile struct + AnnotationID *ChangeAnnotationIdentifier + Kind string + NewURI DocumentURI + OldURI DocumentURI + Options *RenameFileOptions + type RenameFileOptions struct + IgnoreIfExists *bool + Overwrite *bool + type RenameFilesParams struct + Files []FileRename + type RenameOptions struct + PrepareProvider *bool + type RenameParams struct + NewName string + type ResourceOperationKind = string + const ResourceOperationKindCreate + const ResourceOperationKindDelete + const ResourceOperationKindRename + type SelectionRange struct + Parent *SelectionRange + Range Range + type SelectionRangeClientCapabilities struct + DynamicRegistration *bool + type SelectionRangeHandlerFunc func(ctx *common.LSPContext, params *SelectionRangeParams) ([]SelectionRange, error) + type SelectionRangeOptions struct + type SelectionRangeParams struct + Positions []Position + TextDocument TextDocumentIdentifier + type SelectionRangeRegistrationOptions struct + type SemanticDelta struct + Delta *bool + type SemanticTokenModifier string + type SemanticTokenType = string + type SemanticTokens struct + Data []UInteger + ResultID *string + type SemanticTokensClientCapabilities struct + AugmentsSyntaxTokens *bool + DynamicRegistration *bool + Formats []TokenFormat + MultilineTokenSupport *bool + OverlappingTokenSupport *bool + Requests SemanticTokensRequests + ServerCancelSupport *bool + TokenModifiers []string + TokenTypes []string + func (c *SemanticTokensClientCapabilities) UnmarshalJSON(data []byte) error + type SemanticTokensDelta struct + Edits []SemanticTokensEdit + ResultID *string + type SemanticTokensDeltaParams struct + PreviousResultID string + TextDocument TextDocumentIdentifier + type SemanticTokensEdit struct + Data []UInteger + DeleteCount UInteger + Start UInteger + type SemanticTokensFullDeltaHandlerFunc func(ctx *common.LSPContext, params *SemanticTokensDeltaParams) (*SemanticTokensDelta, error) + type SemanticTokensFullHandlerFunc func(ctx *common.LSPContext, params *SemanticTokensParams) (*SemanticTokens, error) + type SemanticTokensLegend struct + TokenModifiers []string + TokenTypes []string + type SemanticTokensOptions struct + Full any + Legend SemanticTokensLegend + Range any + type SemanticTokensParams struct + TextDocument TextDocumentIdentifier + type SemanticTokensRangeHandlerFunc func(ctx *common.LSPContext, params *SemanticTokensRangeParams) (*SemanticTokens, error) + type SemanticTokensRangeParams struct + Range Range + TextDocument TextDocumentIdentifier + type SemanticTokensRegistrationOptions struct + func (s *SemanticTokensRegistrationOptions) UnmarshalJSON(data []byte) error + type SemanticTokensRequests struct + Full any + Range any + type SemanticTokensWorkspaceClientCapabilities struct + RefreshSupport *bool + type ServerCapabilities struct + CallHierarchyProvider any + CodeActionProvider any + CodeLensProvider *CodeLensOptions + ColorProvider any + CompletionProvider *CompletionOptions + DeclarationProvider any + DefinitionProvider any + DiagnosticProvider any + DocumentFormattingProvider any + DocumentHighlightProvider any + DocumentLinkProvider *DocumentLinkOptions + DocumentOnTypeFormattingProvider *DocumentOnTypeFormattingOptions + DocumentRangeFormattingProvider any + DocumentSymbolProvider any + ExecuteCommandProvider *ExecuteCommandOptions + Experimental LSPAny + FoldingRangeProvider any + HoverProvider any + ImplementationProvider any + InlayHintProvider any + InlineValueProvider any + LinkedEditingRangeProvider any + MonikerProvider any + NotebookDocumentSync any + PositionEncoding PositionEncodingKind + ReferencesProvider any + RenameProvider any + SelectionRangeProvider any + SemanticTokensProvider any + SignatureHelpProvider *SignatureHelpOptions + TextDocumentSync any + TypeDefinitionProvider any + TypeHierarchyProvider any + Workspace *ServerWorkspaceCapabilities + WorkspaceSymbolProvider any + func (s *ServerCapabilities) UnmarshalJSON(data []byte) error + type ServerWorkspaceCapabilities struct + FileOperations *WorkspaceFileOperationServerCapabilities + WorkspaceFolders *WorkspaceFoldersServerCapabilities + type SetTraceHandlerFunc func(ctx *common.LSPContext, params *SetTraceParams) error + type SetTraceParams struct + Value TraceValue + type ShowDocumentClientCapabilities struct + Support *bool + type ShowMessageParams struct + Message string + Type MessageType + type ShowMessageRequestClientCapabilities struct + MessageActionItem *MessageActionItemClientCapabilities + type ShowMessageRequestParams struct + Actions []MessageActionItem + Message string + Type MessageType + type ShutdownHandlerFunc func(ctx *common.LSPContext) error + type SignatureHelp struct + ActiveParameter *UInteger + ActiveSignature *UInteger + Signatures []*SignatureInformation + type SignatureHelpClientCapabilities struct + ContextSupport *bool + DynamicRegistration *bool + SignatureInformation *SignatureInformationCapabilities + type SignatureHelpContext struct + ActiveSignatureHelp *SignatureHelp + IsRetrigger bool + TriggerCharacter *string + TriggerKind SignatureHelpTriggerKind + type SignatureHelpHandlerFunc func(ctx *common.LSPContext, params *SignatureHelpParams) (*SignatureHelp, error) + type SignatureHelpOptions struct + RetriggerCharacters []string + TriggerCharacters []string + type SignatureHelpParams struct + Context *SignatureHelpContext + type SignatureHelpTriggerKind = Integer + const SignatureHelpTriggerKindContentChange + const SignatureHelpTriggerKindInvoked + const SignatureHelpTriggerKindTriggerCharacter + type SignatureInformation struct + ActiveParameter *UInteger + Documentation any + Label string + Parameters []*ParameterInformation + func (si *SignatureInformation) UnmarshalJSON(data []byte) error + type SignatureInformationCapabilities struct + ActiveParameterSupport *bool + DocumentationFormat []MarkupKind + ParameterInformation *ParameterInformationCapabilities + type StaleRequestSupport struct + Cancel bool + RetryOnContentModified []string + type StaticRegistrationOptions struct + ID *string + type SymbolInformation struct + ContainerName *string + Deprecated *bool + Kind SymbolKind + Location Location + Name string + Tags []SymbolTag + type SymbolKind = Integer + const SymbolKindArray + const SymbolKindBoolean + const SymbolKindClass + const SymbolKindConstant + const SymbolKindConstructor + const SymbolKindEnum + const SymbolKindEnumMember + const SymbolKindEvent + const SymbolKindField + const SymbolKindFile + const SymbolKindFunction + const SymbolKindInterface + const SymbolKindKey + const SymbolKindMethod + const SymbolKindModule + const SymbolKindNamespace + const SymbolKindNull + const SymbolKindNumber + const SymbolKindObject + const SymbolKindOperator + const SymbolKindPackage + const SymbolKindProperty + const SymbolKindString + const SymbolKindStruct + const SymbolKindTypeParameter + const SymbolKindVariable + type SymbolKindCapabilities struct + ValueSet []SymbolKind + type SymbolTag = Integer + const SymbolTagDeprecated + type SymbolTagSupport struct + ValueSet []SymbolTag + type TelemetryEventParams = interface + type TextDocumentClientCapabilities struct + CallHierarchy *CallHierarchyClientCapabilities + CodeAction *CodeActionClientCapabilities + CodeLens *CodeLensClientCapabilities + ColorProvider *DocumentColorClientCapabilities + Completion *CompletionClientCapabilities + Declaration *DeclarationClientCapabilities + Definition *DefinitionClientCapabilities + Diagnostics *DiagnosticClientCapabilities + DocumentHighlight *DocumentHighlightClientCapabilities + DocumentLink *DocumentLinkClientCapabilities + DocumentSymbol *DocumentSymbolClientCapabilities + FoldingRange *FoldingRangeClientCapabilities + Formatting *DocumentFormattingClientCapabilities + Hover *HoverClientCapabilities + Implementation *ImplementationClientCapabilities + InlayHint *InlayHintClientCapabilities + InlineValue *InlineValueClientCapabilities + LinkedEditingRange *LinkedEditingRangeClientCapabilities + Moniker *MonikerClientCapabilities + OnTypeFormatting *DocumentOnTypeFormattingClientCapabilities + PublishDiagnostics *PublishDiagnosticsClientCapabilities + RangeFormatting *DocumentRangeFormattingClientCapabilities + References *ReferenceClientCapabilities + Rename *RenameClientCapabilities + SelectionRange *SelectionRangeClientCapabilities + SemanticTokens *SemanticTokensClientCapabilities + SignatureHelp *SignatureHelpClientCapabilities + Synchronization *TextDocumentSyncClientCapabilities + TypeDefinition *TypeDefinitionClientCapabilities + TypeHierarchy *TypeHierarchyClientCapabilities + type TextDocumentContentChangeEvent struct + Range *Range + RangeLength *UInteger + Text string + type TextDocumentContentChangeEventWhole struct + Text string + type TextDocumentDidChangeHandlerFunc func(ctx *common.LSPContext, params *DidChangeTextDocumentParams) error + type TextDocumentDidCloseHandlerFunc func(ctx *common.LSPContext, params *DidCloseTextDocumentParams) error + type TextDocumentDidOpenHandlerFunc func(ctx *common.LSPContext, params *DidOpenTextDocumentParams) error + type TextDocumentDidSaveHandlerFunc func(ctx *common.LSPContext, params *DidSaveTextDocumentParams) error + type TextDocumentEdit struct + Edits []any + TextDocument OptionalVersionedTextDocumentIdentifier + type TextDocumentIdentifier struct + URI DocumentURI + type TextDocumentItem struct + LanguageID string + Text string + URI DocumentURI + Version Integer + type TextDocumentPositionParams struct + Position Position + TextDocument TextDocumentIdentifier + type TextDocumentRegistrationOptions struct + DocumentSelector *DocumentSelector + type TextDocumentSaveReason Integer + const TextDocumentSaveReasonAfterDelay + const TextDocumentSaveReasonFocusOut + const TextDocumentSaveReasonManual + type TextDocumentSyncClientCapabilities struct + DidSave *bool + DynamicRegistration *bool + WillSave *bool + WillSaveWaitUntil *bool + type TextDocumentSyncKind Integer + var TextDocumentSyncKindFull TextDocumentSyncKind = 1 + var TextDocumentSyncKindIncremental TextDocumentSyncKind = 2 + var TextDocumentSyncKindNone TextDocumentSyncKind = 0 + type TextDocumentSyncOptions struct + Change *TextDocumentSyncKind + OpenClose *bool + Save any + WillSave *bool + WillSaveWaitUntil *bool + type TextDocumentWillSaveHandlerFunc func(ctx *common.LSPContext, params *WillSaveTextDocumentParams) error + type TextDocumentWillSaveWaitUntilHandlerFunc func(ctx *common.LSPContext, params *WillSaveTextDocumentParams) ([]TextEdit, error) + type TextEdit struct + NewText string + Range *Range + type TokenFormat = string + const TokenFormatRelative + type TraceServerLogger interface + LogMessage func(params LogMessageParams) error + type TraceService struct + func NewTraceService(logger *zap.Logger) *TraceService + func (s *TraceService) CreateSetTraceHandler() SetTraceHandlerFunc + func (s *TraceService) GetTraceValue() TraceValue + func (s *TraceService) Trace(serverLogger TraceServerLogger, mType MessageType, message string) error + type TraceValue string + type TypeDefinitionClientCapabilities struct + DynamicRegistration *bool + LinkSupport *bool + type TypeDefinitionOptions struct + type TypeDefinitionParams struct + type TypeDefinitionRegistrationOptions struct + type TypeHierarchyClientCapabilities struct + DynamicRegistration *bool + type TypeHierarchyItem struct + Data LSPAny + Detail *string + Kind SymbolKind + Name string + Range Range + SelectionRange Range + Tags []SymbolTag + URI DocumentURI + type TypeHierarchyOptions struct + type TypeHierarchyPrepareParams struct + type TypeHierarchyRegistrationOptions struct + type TypeHierarchySubtypesHandlerFunc func(ctx *common.LSPContext, params *TypeHierarchySubtypesParams) ([]TypeHierarchyItem, error) + type TypeHierarchySubtypesParams struct + Item TypeHierarchyItem + type TypeHierarchySupertypesHandlerFunc func(ctx *common.LSPContext, params *TypeHierarchySupertypesParams) ([]TypeHierarchyItem, error) + type TypeHierarchySupertypesParams struct + Item TypeHierarchyItem + type UInteger = uint32 + type URI = string + type UnchangedDocumentDiagnosticReport struct + Kind DocumentDiagnosticReportKind + ResultID string + type UniquenessLevel = string + const UniquenessLevelDocument + const UniquenessLevelGlobal + const UniquenessLevelGroup + const UniquenessLevelProject + const UniquenessLevelScheme + type Unregistration struct + ID string + Method string + type UnregistrationParams struct + Unregistrations []Unregistration + type VersionedNotebookDocumentIdentifier struct + URI URI + Version Integer + type VersionedTextDocumentIdentifier struct + Version Integer + type WillSaveTextDocumentParams struct + Reason TextDocumentSaveReason + TextDocument TextDocumentIdentifier + type WindowClientCapabilities struct + ShowDocument *ShowDocumentClientCapabilities + ShowMessage *ShowMessageRequestClientCapabilities + WorkDoneProgress *bool + type WindowWorkDoneProgressCancelHandler func(context *common.LSPContext, params *WorkDoneProgressCancelParams) error + type WorkDoneProgressBegin struct + Cancellable *bool + Kind string + Message *string + Percentage *UInteger + Title string + type WorkDoneProgressCancelParams struct + Token *ProgressToken + type WorkDoneProgressCreateParams struct + Token *ProgressToken + type WorkDoneProgressEnd struct + Kind string + Message *string + type WorkDoneProgressOptions struct + WorkDoneProgress *bool + type WorkDoneProgressParams struct + WorkDoneToken *ProgressToken + type WorkDoneProgressReport struct + Cancellable *bool + Kind string + Message *string + Percentage *UInteger + type WorkspaceDiagnosticHandlerFunc func(ctx *common.LSPContext, params *WorkspaceDiagnosticParams) (*WorkspaceDiagnosticReport, error) + type WorkspaceDiagnosticParams struct + Identifier *string + PreviousResultIDs []PreviousResultID + type WorkspaceDiagnosticReport struct + Items []any + func (r *WorkspaceDiagnosticReport) UnmarshalJSON(data []byte) error + type WorkspaceDidChangeConfigurationHandlerFunc func(context *common.LSPContext, params *DidChangeConfigurationParams) error + type WorkspaceDidChangeFoldersHandlerFunc func(context *common.LSPContext, params *DidChangeWorkspaceFoldersParams) error + type WorkspaceDidChangeWatchedFilesHandlerFunc func(context *common.LSPContext, params *DidChangeWatchedFilesParams) error + type WorkspaceDidCreateFilesHandlerFunc func(context *common.LSPContext, params *CreateFilesParams) error + type WorkspaceDidDeleteFilesHandlerFunc func(context *common.LSPContext, params *DeleteFilesParams) error + type WorkspaceDidRenameFilesHandlerFunc func(context *common.LSPContext, params *RenameFilesParams) error + type WorkspaceEdit struct + ChangeAnnotations map[ChangeAnnotationIdentifier]ChangeAnnotation + Changes map[DocumentURI][]TextEdit + DocumentChanges []any + type WorkspaceEditClientCapabilities struct + ChangeAnnotationSupport *ChangeAnnotationSupport + DocumentChanges *bool + FailureHandling FailureHandlingKind + NormalizesLineEndings *bool + ResourceOperations []ResourceOperationKind + type WorkspaceExecuteCommandHandlerFunc func(context *common.LSPContext, params *ExecuteCommandParams) (LSPAny, error) + type WorkspaceFileOperationServerCapabilities struct + DidCreate *FileOperationRegistrationOptions + DidDelete *FileOperationRegistrationOptions + DidRename *FileOperationRegistrationOptions + WillCreate *FileOperationRegistrationOptions + WillDelete *FileOperationRegistrationOptions + WillRename *FileOperationRegistrationOptions + type WorkspaceFolder struct + Name string + URI URI + type WorkspaceFoldersChangeEvent struct + Added []WorkspaceFolder + Removed []WorkspaceFolder + type WorkspaceFoldersServerCapabilities struct + ChangeNotifications *BoolOrString + Supported *bool + type WorkspaceFullDocumentDiagnosticReport struct + URI DocumentURI + Version *Integer + type WorkspaceSymbol struct + ContainerName *string + Data LSPAny + Kind SymbolKind + Location any + Name string + Tags []SymbolTag + func (w *WorkspaceSymbol) UnmarshalJSON(data []byte) error + type WorkspaceSymbolClientCapabilities struct + DynamicRegistration *bool + ResolveSupport *WorkspaceSymbolResolveSupport + SymbolKind *SymbolKindCapabilities + TagSupport *SymbolTagSupport + type WorkspaceSymbolHandlerFunc func(context *common.LSPContext, params *WorkspaceSymbolParams) (any, error) + type WorkspaceSymbolOptions struct + ResolveProvider *bool + type WorkspaceSymbolParams struct + Query string + type WorkspaceSymbolResolveHandlerFunc func(context *common.LSPContext, params *WorkspaceSymbol) (*WorkspaceSymbol, error) + type WorkspaceSymbolResolveSupport struct + Properties []string + type WorkspaceUnchangedDocumentDiagnosticReport struct + URI DocumentURI + Version *Integer + type WorkspaceWillCreateFilesHandlerFunc func(context *common.LSPContext, params *CreateFilesParams) (*WorkspaceEdit, error) + type WorkspaceWillDeleteFilesHandlerFunc func(context *common.LSPContext, params *DeleteFilesParams) (*WorkspaceEdit, error) + type WorkspaceWillRenameFilesHandlerFunc func(context *common.LSPContext, params *RenameFilesParams) (*WorkspaceEdit, error)