+9
-3
lines changedFilter options
+9
-3
lines changed Original file line number Diff line number Diff line change
@@ -439,14 +439,20 @@ for k, fn in pairs(M) do
439
439
})
440
440
441
441
if err then
442
-
local client = vim.lsp.get_client_by_id(ctx.client_id)
443
-
local client_name = client and client.name or string.format("client_id=%d", ctx.client_id)
444
442
-- LSP spec:
445
443
-- interface ResponseError:
446
444
-- code: integer;
447
445
-- message: string;
448
446
-- data?: string | number | boolean | array | object | null;
449
-
return err_message(client_name .. ': ' .. tostring(err.code) .. ': ' .. err.message)
447
+
448
+
-- Per LSP, don't show ContentModified error to the user.
449
+
if err.code ~= protocol.ErrorCodes.ContentModified then
450
+
local client = vim.lsp.get_client_by_id(ctx.client_id)
451
+
local client_name = client and client.name or string.format("client_id=%d", ctx.client_id)
452
+
453
+
err_message(client_name .. ': ' .. tostring(err.code) .. ': ' .. err.message)
454
+
end
455
+
return
450
456
end
451
457
452
458
return fn(err, result, ctx, config)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4