Skip to content

Commit

Permalink
Temporarily disable diagnostics provider workspace settings
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JohnnyMorganz committed Jun 20, 2022
1 parent 992ca70 commit be4f81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LanguageServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit be4f81e

Please sign in to comment.