Skip to content

Language Server Protocol support

Snjeza edited this page Feb 26, 2018 · 6 revisions

The current implementation of JDT.LS supports most of Language Server Protocol v3, as described below :

Message Supported
↩️ initialize
↩️ shutdown
➡️ exit
➡️ $/cancelRequest
⬅️ window/showMessage
↪️ window/showMessageRequest
⬅️ window/logMessage
⬅️ telemetry/event
➡️ window/didChangeConfiguration
➡️ window/didChangeWatchedFiles
⬅️ textDocument/publishDiagnostics
➡️ textDocument/didChange
➡️ textDocument/didClose
➡️ textDocument/didOpen
➡️ textDocument/didSave
↩️ textDocument/completion
↩️ completionItem/resolve
↩️ textDocument/hover
↩️ textDocument/signatureHelp
↩️ textDocument/references
↩️ textDocument/documentHighlight
↩️ textDocument/documentSymbol
↩️ textDocument/formatting
↩️ textDocument/rangeFormatting
↩️ textDocument/onTypeFormatting
↩️ textDocument/definition
↩️ textDocument/codeAction
↩️ textDocument/codeLens
↩️ codeLens/resolve
↩️ textDocument/documentLink
↩️ documentLink/resolve
↩️ textDocument/rename

The initialize request recognizes the following options (initializationOptions):

  • bundles - a list of Java LS extensions
  • workspaceFolders - a list of workspace folders
  • settings - Java LS configuration settings - Java LS configuration

But JDT.LS also enhances the default Language Server Protocol by adding specific messages

Clone this wiki locally