Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
theothornhill committed Jan 16, 2022
1 parent 51b6208 commit 74ffece
Showing 1 changed file with 78 additions and 192 deletions.
270 changes: 78 additions & 192 deletions eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -357,256 +357,142 @@ This can be useful when using docker to run a language server.")
(eval-and-compile
(defvar eglot--lsp-interface-alist
`(
(AnnotatedTextEdit
(:range :newtext)
(:annotationId))
(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))
(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))
(CreateFile
((:kind . string) :uri)
(:options :annotationId))
( :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))
(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)
())
( :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)
())
(MarkdownClientCapabilities
((:parser . string))
((:version . string)))
(ParameterInformation
(:label)
(:documentation))
(Position
(:line :character)
())
(Range
(:start :end)
())
(Registration
(:id :method)
(:registerOptions))
(RegistrationParams
(:registrations)
())
(Unregistration
(:id :method)
())
(LogMessageParams (:type :message) ())
(MarkupContent (:kind :value) ())
(MarkdownClientCapabilities ((:parser . string)) ((:version . string)))
(ParameterInformation (:label) (:documentation))
(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))
(RenameFile ((:kind . string) :oldUri :newUri) (:options :annotationId))
(RenameFileOptions
()
((:overwrite . boolean) (:ignoreIfExists . boolean)))
(ResponseError
(:code :message)
(:data))
(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))
(ResponseError (:code :message) (:data))
(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))
(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)
())
(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))
( :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)
())
(TextDocumentIdentifier
(:uri)
())
(VersionedTextDocumentIdentifier
(:uri :version)
())
(OptionalVersionedTextDocumentIdentifier
(:uri)
(:version))
( :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) ())
(TextDocumentIdentifier (:uri) ())
(VersionedTextDocumentIdentifier (:uri :version) ())
(OptionalVersionedTextDocumentIdentifier (:uri) (:version))
(TextDocumentItem
(:uri (:languageId . string) (:version . integer) (:text . string))
())
(TextDocumentPositionParams
(:textDocument :position)
())
(TextDocumentRegistrationOptions
(:documentSelector)
())
(TextDocumentPositionParams (:textDocument :position) ())
(TextDocumentRegistrationOptions (:documentSelector) ())
(DocumentFilter
()
((:language . string) (:scheme . string) (:pattern . string)))
(TextEdit
(:range :newText)
())
(StaticRegistrationOptions
()
((:id . string)))
(WorkspaceEdit
()
(:changes :documentChanges :changeAnnotations))
(TextEdit (:range :newText) ())
(StaticRegistrationOptions () ((:id . string)))
(WorkspaceEdit () (:changes :documentChanges :changeAnnotations))
(WorkspaceEditClientCapabilities
()
((:documentChanges . boolean) :resourceOperations :failureHandling
(:normalizesEndings . boolean) :changeAnnotationSupport))
(WorkDoneProgressCreateParams
(:token)
())
(WorkDoneProgressCancelParams
(:token)
())
(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))
(WorkDoneProgressEnd ((:kind . string) (:message . string)) ())
(WorkDoneProgressParams () (:workDoneToken))
(WorkDoneProgressOptions () ((:workDoneProgress . boolean)))
(PartialResultParams () (:partialResultToken))
(InitializeParams
(:processId)
(:clentInfo :locale :rootPath :rootUri :initializationOptions
:capabilities :trace :workspaceFolders :workDoneToken))
( :clentInfo :locale :rootPath :rootUri :initializationOptions
:capabilities :trace :workspaceFolders :workDoneToken))
)
"Alist (INTERFACE-NAME . INTERFACE) of known external LSP interfaces.
Expand Down

0 comments on commit 74ffece

Please sign in to comment.