Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more interfaces to lsp-interface-alist #805

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 123 additions & 23 deletions eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -357,42 +357,142 @@ This can be useful when using docker to run a language server.")
(eval-and-compile
(defvar eglot--lsp-interface-alist
`(
(CodeAction (:title) (:kind :diagnostics :edit :command :isPreferred))
(AnnotatedTextEdit (:range :newtext) (:annotationId))
(ChangeAnnotation
((:label . string))
((:needsConfirmation . boolean) (:description . string)))
(CodeAction
(:title)
(:kind :diagnostics :isPreferred :disabled :edit :command :data))
(CodeDescription (:href) ())
(ConfigurationItem () (:scopeUri :section))
(Command ((:title . string) (:command . string)) (:arguments))
(CompletionItem (:label)
(:kind :detail :documentation :deprecated :preselect
:sortText :filterText :insertText :insertTextFormat
:textEdit :additionalTextEdits :commitCharacters
:command :data))
(Diagnostic (:range :message) (:severity :code :source :relatedInformation :codeDescription :tags))
(CompletionItem
(:label)
( :kind :detail :documentation :deprecated :preselect :sortText
:filterText :insertText :insertTextFormat :textEdit
:additionalTextEdits :commitCharacters :command :data))
(CreateFile ((:kind . string) :uri) (:options :annotationId))
(CreateFileOptions
()
((:overwrite . boolean) (:ignoreIfExists . boolean)))
(DeleteFile ((:kind . string) :uri) (:options :annotationId))
(DeleteFileOptions
()
((:recursive . boolean) (:ignoreIfNotExists . boolean)))
(Diagnostic
(:range :message)
( :severity :code :codeDescription (:source . string) (:message . string)
:tags :relatedInformation :data))
(DiagnosticRelatedInformation (:location (:message . string)) ())
(DocumentHighlight (:range) (:kind))
(FileSystemWatcher (:globPattern) (:kind))
(Hover (:contents) (:range))
(InitializeResult (:capabilities) (:serverInfo))
(Location (:uri :range))
(LocationLink (:targetUri :targetRange :targetSelectionRange) (:originSelectionRange))
(LogMessageParams (:type :message))
(MarkupContent (:kind :value))
(Location (:uri :range) ())
(LocationLink
(:targetUri :targetRange :targetSelectionRange)
(:originSelectionRange))
(LogMessageParams (:type :message) ())
(MarkupContent (:kind :value) ())
(MarkdownClientCapabilities ((:parser . string)) ((:version . string)))
(ParameterInformation (:label) (:documentation))
(Position (:line :character))
(Range (:start :end))
(Position (:line :character) ())
(Range (:start :end) ())
(Registration (:id :method) (:registerOptions))
(RegistrationParams (:registrations) ())
(Unregistration (:id :method) ())
(RegistrationParams
(:unregisterations) ;; sic - woop!
())
(RenameFile ((:kind . string) :oldUri :newUri) (:options :annotationId))
(RenameFileOptions
()
((:overwrite . boolean) (:ignoreIfExists . boolean)))
(ResponseError (:code :message) (:data))
(ShowMessageParams (:type :message))
(ShowMessageParams (:type :message) ())
(ShowMessageRequestParams (:type :message) (:actions))
(ShowMessageRequestClientCapabilities () (:messageActionItem))
(MessageActionItem (:title) ())
(ShowDocumentClientCapabilities (:support) ())
(ShowDocumentParams (:uri) (:external :takeFocus :selection))
(ShowDocumentResult (:success) ())
(LogMessageParams (:type :message) ())
(SignatureHelp (:signatures) (:activeSignature :activeParameter))
(SignatureInformation (:label) (:documentation :parameters :activeParameter))
(SymbolInformation (:name :kind :location)
(:deprecated :containerName))
(DocumentSymbol (:name :range :selectionRange :kind)
;; `:containerName' isn't really allowed , but
;; it simplifies the impl of `eglot-imenu'.
(:detail :deprecated :children :containerName))
(SignatureInformation
(:label)
(:documentation :parameters :activeParameter))
(SymbolInformation (:name :kind :location) (:deprecated :containerName))
(DocumentSymbol
(:name :range :selectionRange :kind)
;; `:containerName' isn't really allowed , but
;; it simplifies the impl of `elsp-imenu'.
(:detail :deprecated :children :containerName))
(LogTraceParams (:message) (:verbose))
(SetTraceParams (:value) ())
(TextDocumentClientCapabilities
()
( :synchronization :completion :hover :signatureHelp :declaration
:definition :typeDefinition :implementation :references
:documentHighlight :documentSymbol :codeAction :codeLens
:documentLink :colorProvider :formatting :rangeFormatting
:onTypeFormatting :rename :publishDiagnostics :foldingRange
:selectionRange :linkedEditingRange :callHierarchy :semanticTokens
:moniker))
(ClientCapabilities
()
(:workspace :textDocument :window :general :experimental))
(ServerCapabilities
()
( :textDocumentSync :completionProvider :hoverProvider
:signatureHelpProvider :declarationProvider :definitionProvider
:typeDefinitionProvider :implementationProvider :referencesProvider
:documentHighlightProvider :documentSymbolProvider :codeActionProvider
:codeLensProvider :documentLinkProvider :colorProvider
:documentFormattingProvider :documentRangeFormattingProvider
:documentOnTypeFormattingProvider :renameProvider :foldingRangeProvider
:executeCommandProvider :selectionRangeProvider
:linkedEditingRangeProvider :callHierarchyProvider
:semanticTokensProvider :monikerProvider :workspaceSymbolProvider
:workspace :experimental))
(InitializeResult (:capabilities) (:serverInfo))
(InitializeError (:retry) ())
(InitializedParams () ())
(TextDocumentEdit (:textDocument :edits) ())
(TextEdit (:range :newText))
(TextDocumentIdentifier (:uri) ())
(VersionedTextDocumentIdentifier (:uri :version) ())
(WorkspaceEdit () (:changes :documentChanges))
(OptionalVersionedTextDocumentIdentifier (:uri) (:version))
(TextDocumentItem
(:uri (:languageId . string) (:version . integer) (:text . string))
())
(TextDocumentPositionParams (:textDocument :position) ())
(TextDocumentRegistrationOptions (:documentSelector) ())
(DocumentFilter
()
((:language . string) (:scheme . string) (:pattern . string)))
(TextEdit (:range :newText) ())
(StaticRegistrationOptions () ((:id . string)))
(WorkspaceEdit () (:changes :documentChanges :changeAnnotations))
(WorkspaceEditClientCapabilities
()
((:documentChanges . boolean) :resourceOperations :failureHandling
(:normalizesEndings . boolean) :changeAnnotationSupport))
(WorkDoneProgressCreateParams (:token) ())
(WorkDoneProgressCancelParams (:token) ())
(WorkDoneProgressBegin
((:kind . string) (:title . string))
((:cancellable . boolean) (:message . string) (:percentage . integer)))
(WorkDoneProgressReport
((:kind . string))
((:cancellable . boolean) (:message . string) (:percentage . integer)))
(WorkDoneProgressEnd ((:kind . string) (:message . string)) ())
(WorkDoneProgressParams () (:workDoneToken))
(WorkDoneProgressOptions () ((:workDoneProgress . boolean)))
(PartialResultParams () (:partialResultToken))
(InitializeParams
(:processId)
( :clentInfo :locale :rootPath :rootUri :initializationOptions
:capabilities :trace :workspaceFolders :workDoneToken))
)
"Alist (INTERFACE-NAME . INTERFACE) of known external LSP interfaces.

Expand Down