Skip to content

LSP Client: Add more default language server configurations

Eric Armbruster requested to merge eric/kate:work/eric/morelangservers into master

Commit 1: Adds default language server configurations for Kotlin, Lua, HTML, YAML and Docker.

Commit 2: The Kotlin LSP server starts scanning the whole $HOME dir immediately if an empty list of workspace folders is sent. This might take a very long time and does not seem to be interrupted by update notifications. To avoid this, send the current workspace folders also on the initial response.

Not entirely sure if this is the correct approach, though. According to LSP Specification:

The workspace/workspaceFolders request is sent from the server to the client to fetch the current open list of workspace folders. Returns null in the response if only a single file is open in the tool. Returns an empty array if a workspace is open but no folders are configured.

Does this mean the server is allowed to make assumptions like setting workspace folders to $HOME or not? If so, this is a bug in the Kotlin LSP server.

Edited by Eric Armbruster

Merge request reports