From be4f81e9c2dafb8de79f5ad081fbe79be4c132ed Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Mon, 20 Jun 2022 13:28:22 +0100 Subject: [PATCH] Temporarily disable diagnostics provider workspace settings We need to investigate this better. Currently we immediately close the workspace diagnostic request, which causes the client to retrigger this. This becomes very resource intensive. We should add partial response support, as recommended in the spec --- src/LanguageServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LanguageServer.cpp b/src/LanguageServer.cpp index e0cfe120..e6f94ee2 100644 --- a/src/LanguageServer.cpp +++ b/src/LanguageServer.cpp @@ -71,7 +71,7 @@ lsp::ServerCapabilities LanguageServer::getServerCapabilities() // Rename Provider capabilities.renameProvider = true; // Diagnostics Provider - capabilities.diagnosticProvider = {"luau", /* interFileDependencies: */ true, /* workspaceDiagnostics: */ true}; + capabilities.diagnosticProvider = {"luau", /* interFileDependencies: */ true, /* workspaceDiagnostics: */ false}; // Workspaces lsp::WorkspaceFoldersServerCapabilities workspaceFolderCapabilities{true, false}; capabilities.workspace = lsp::WorkspaceCapabilities{workspaceFolderCapabilities};