From d22d8b0ecfefcd5dcc821fb7ee6390a019ba77ef Mon Sep 17 00:00:00 2001 From: xinyan Date: Tue, 2 Apr 2019 23:54:26 +0800 Subject: [PATCH] lspserver: Use empty object for publishDiagnostics. --- persper/analytics/lsp_graph_server/languageclient/lspserver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/persper/analytics/lsp_graph_server/languageclient/lspserver.py b/persper/analytics/lsp_graph_server/languageclient/lspserver.py index e40c9d7c6f6..dc3abbeac44 100644 --- a/persper/analytics/lsp_graph_server/languageclient/lspserver.py +++ b/persper/analytics/lsp_graph_server/languageclient/lspserver.py @@ -39,7 +39,8 @@ "workspaceFolders": False }, "textDocument": { - "publishDiagnostics": None, + # ccls requires we use an object here, though LSP allows null. + "publishDiagnostics": {}, "synchronization": { "dynamicRegistration": True, "willSave": True,