Skip to content

LSP method coverage ​

Generated from internal/server/methods.go by go test ./internal/server -run TestMethodDocs -update. The conformance tests in methods_test.go check that every implemented method has a handler and an advertised capability, and that nothing else is handled or advertised.

Client → server requests ​

MethodStatusCapabilityNotes
initializeimplementednegotiates position encoding, pull or push diagnostics, workspace folders and settings
shutdownimplementedlater requests fail with InvalidRequest
textDocument/willSaveWaitUntilnot advertisedtextDocumentSync.willSaveWaitUntilformatting is offered through textDocument/formatting instead
textDocument/declarationimplementeddeclarationProvider
textDocument/definitionimplementeddefinitionProvider
textDocument/typeDefinitionimplementedtypeDefinitionProviderarray and associative array declarations; in Nix, the type given to an option
textDocument/implementationimplementedimplementationProviderevery definition of a function across the sourced chain and workspace
textDocument/referencesimplementedreferencesProvider
textDocument/prepareCallHierarchyimplementedcallHierarchyProvider
callHierarchy/incomingCallsimplementedcallHierarchyProvider
callHierarchy/outgoingCallsimplementedcallHierarchyProvider
textDocument/prepareTypeHierarchynot advertisedtypeHierarchyProvidershell has no types with supertypes or subtypes
typeHierarchy/supertypesnot advertisedtypeHierarchyProvidershell has no types with supertypes or subtypes
typeHierarchy/subtypesnot advertisedtypeHierarchyProvidershell has no types with supertypes or subtypes
textDocument/documentHighlightimplementeddocumentHighlightProvider
textDocument/documentLinkimplementeddocumentLinkProvider
documentLink/resolvenot advertiseddocumentLinkProvider.resolveProviderlinks are complete when returned
textDocument/hoverimplementedhoverProvider
textDocument/codeLensimplementedcodeLensProvider
codeLens/resolveimplementedcodeLensProvider.resolveProviderreference counts are computed on resolve; Bats run lenses arrive resolved
textDocument/foldingRangeimplementedfoldingRangeProvider
textDocument/selectionRangeimplementedselectionRangeProvider
textDocument/documentSymbolimplementeddocumentSymbolProvider
textDocument/semanticTokens/fullimplementedsemanticTokensProvider.full
textDocument/semanticTokens/full/deltaimplementedsemanticTokensProvider.full.delta
textDocument/semanticTokens/rangeimplementedsemanticTokensProvider.range
textDocument/inlineValueimplementedinlineValueProvider
textDocument/inlayHintimplementedinlayHintProvider
inlayHint/resolveimplementedinlayHintProvider.resolveProvidertooltips are filled in on resolve
textDocument/monikerimplementedmonikerProvider
textDocument/completionimplementedcompletionProvider
completionItem/resolveimplementedcompletionProvider.resolveProviderman page documentation for commands
textDocument/diagnosticimplementeddiagnosticProvider
workspace/diagnosticimplementeddiagnosticProvider.workspaceDiagnosticslints every shell file under the workspace folders, reporting unchanged files by result id
textDocument/signatureHelpimplementedsignatureHelpProvider
textDocument/codeActionimplementedcodeActionProvideredits that span files carry a needsConfirmation change annotation when the client supports them
codeAction/resolveimplementedcodeActionProvider.resolveProviderrefactor edits are computed on resolve
textDocument/documentColornot advertisedcolorProvidershell has no color literals
textDocument/colorPresentationnot advertisedcolorProvidershell has no color literals
textDocument/formattingimplementeddocumentFormattingProvider
textDocument/rangeFormattingimplementeddocumentRangeFormattingProviderthe lines the range touches and what must move with them; in Nix files the Nix around a string, never the shell in it
textDocument/rangesFormattingimplementeddocumentRangeFormattingProvider.rangesSupportthe lines the range touches and what must move with them; in Nix files the Nix around a string, never the shell in it
textDocument/onTypeFormattingimplementeddocumentOnTypeFormattingProviderin Nix files, formats the binding a ; ends; shfmt formats whole statements, not keystrokes, so shell is left alone
textDocument/renameimplementedrenameProvider
textDocument/prepareRenameimplementedrenameProvider.prepareProvider
textDocument/linkedEditingRangeimplementedlinkedEditingRangeProviderheredoc delimiters
textDocument/inlineCompletionnot advertisedinlineCompletionProvidercompletion items cover the same ground
workspace/symbolimplementedworkspaceSymbolProvider
workspaceSymbol/resolvenot advertisedworkspaceSymbolProvider.resolveProvidersymbols carry full locations
shellLsp/documentDialectimplementedshell-lsp extension: the dialect a document is linted as, what decided it, and whether that was a guess
shellLsp/setDialectimplementedshell-lsp extension: the edit that sets or removes the document's # shellcheck shell= directive
workspace/executeCommandimplementedexecuteCommandProvidershellLsp.fixAll, shellLsp.applyEdit, shellLsp.showReferences, shellLsp.runBats, shellLsp.runRecipe, shellLsp.listRecipes
workspace/willCreateFilesnot advertisedworkspace.fileOperations.willCreatenothing to edit before a file exists
workspace/willRenameFilesimplementedworkspace.fileOperations.willRenamerewrites source paths and shebangs
workspace/willDeleteFilesnot advertisedworkspace.fileOperations.willDeletenothing to edit before a file is deleted
workspace/textDocumentContentnot advertisedworkspace.textDocumentContentthe server owns no virtual documents

Client → server notifications ​

MethodStatusCapabilityNotes
initializedimplementedpulls configuration and registers file watchers
exitimplementedexit code 0 after shutdown, 1 otherwise
$/cancelRequestimplemented
$/setTraceimplemented
window/workDoneProgress/cancelimplemented
textDocument/didOpenimplementedtextDocumentSync.openClose
textDocument/didChangeimplementedtextDocumentSync.changeincremental
textDocument/willSavenot advertisedtextDocumentSync.willSavenothing depends on saves
textDocument/didSaveimplementedtextDocumentSync.savethe open document stays authoritative; a save only warms the Nix evaluator
textDocument/didCloseimplementedtextDocumentSync.openClose
notebookDocument/didOpennot advertisednotebookDocumentSyncno shell notebook format
notebookDocument/didChangenot advertisednotebookDocumentSyncno shell notebook format
notebookDocument/didSavenot advertisednotebookDocumentSyncno shell notebook format
notebookDocument/didClosenot advertisednotebookDocumentSyncno shell notebook format
workspace/didChangeWorkspaceFoldersimplementedworkspace.workspaceFolders.changeNotifications
workspace/didChangeConfigurationimplemented
workspace/didChangeWatchedFilesimplementedwatchers are registered dynamically
workspace/didCreateFilesimplementedworkspace.fileOperations.didCreate
workspace/didRenameFilesimplementedworkspace.fileOperations.didRename
workspace/didDeleteFilesimplementedworkspace.fileOperations.didDelete

Server → client requests ​

MethodStatusCapabilityNotes
window/workDoneProgress/createsentworkspace indexing and Bats run progress
window/showMessageRequestnever sentthe server never needs a decision from the user
window/showDocumentnever sent
client/registerCapabilitysentfile watchers
client/unregisterCapabilitynever sentregistrations live for the whole session
workspace/workspaceFoldersnever sentfolders come from initialize and change notifications
workspace/configurationsent
workspace/applyEditsent
workspace/codeLens/refreshsentafter settings change
workspace/semanticTokens/refreshsentafter settings change
workspace/inlayHint/refreshsentafter settings change
workspace/inlineValue/refreshnever sentinline values are computed per request
workspace/diagnostic/refreshsentafter settings change, after a Bats run, and when a background pass proves shell strings in a Nix file
workspace/foldingRange/refreshnever sentfolding depends only on the document
workspace/textDocumentContent/refreshnever sentthe server owns no virtual documents

Server → client notifications ​

MethodStatusCapabilityNotes
window/showMessagesentrejected configuration and Bats run summaries
window/logMessagesentone-time notices such as a failed file watcher registration
telemetry/eventnever sentthe server collects no telemetry
textDocument/publishDiagnosticssentonly for clients without pull diagnostics
$/progresssent
$/logTracesentwhen $/setTrace enables tracing