diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-02 14:42:17 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-01-02 14:42:17 +0100 |
| commit | 9c0a9b4fdcb2f0912b8ec3b9f7127d660565f898 (patch) | |
| tree | 2ba92af21bb9b93b9996ebd000ff0d604f05ba50 | |
| parent | dcaf81f511c47ca8be9860e4237c1faae0fd3a89 (diff) | |
| download | vis-lspc-9c0a9b4fdcb2f0912b8ec3b9f7127d660565f898.tar.gz vis-lspc-9c0a9b4fdcb2f0912b8ec3b9f7127d660565f898.zip | |
fix initialized notification parameters
LSP defines the parameters of the initialized notifications as empty
object.
The dart language server expects that the initialize notification has an
empty params object.
Therefore, pass an empty parameter table to the initialized notification.
Tested with our fallback json implementation as well as dkjson.
Fixes !37.
| -rw-r--r-- | init.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -863,7 +863,10 @@ local function ls_handle_method_response(ls, method_response, req) elseif method == 'initialize' then ls.initialized = true ls.capabilities = result.capabilities - ls_send_notification(ls, 'initialized') + params = {} + setmetatable(params, {__jsontype = 'object'}) + + ls_send_notification(ls, 'initialized', params) elseif method == 'textDocument/completion' then lspc_handle_completion_method_response(win, result, req.ctx) |
