Lua LSP: Add callback if server fails to start

Change-Id: I422baeffff96cf56a110cbf74716352c9104c5ef
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Marcus Tillmanns
2024-05-08 10:48:46 +02:00
parent 29822d1a2b
commit 898203aa6e
4 changed files with 91 additions and 50 deletions

View File

@@ -11,6 +11,7 @@ local lsp = {}
---@field startBehavior? "AlwaysOn"|"RequiresFile"|"RequiresProject"
---@field initializationOptions? table|string The initialization options to pass to the language server, either a json string, or a table
---@field settings? AspectContainer
---@field onStartFailed? function This callback is called when client failed to start.
local ClientOptions = {}
---@class LanguageFilter