diff --git a/lib/standard/lsp/routes.rb b/lib/standard/lsp/routes.rb index d688e924..3afad197 100644 --- a/lib/standard/lsp/routes.rb +++ b/lib/standard/lsp/routes.rb @@ -27,7 +27,10 @@ def for(name) @writer.write(id: request[:id], result: Proto::Interface::InitializeResult.new( capabilities: Proto::Interface::ServerCapabilities.new( document_formatting_provider: true, - diagnostic_provider: true, + diagnostic_provider: LanguageServer::Protocol::Interface::DiagnosticOptions.new( + inter_file_dependencies: false, + workspace_diagnostics: false + ), text_document_sync: Proto::Interface::TextDocumentSyncOptions.new( change: Proto::Constant::TextDocumentSyncKind::FULL, open_close: true diff --git a/test/standard/runners/lsp_test.rb b/test/standard/runners/lsp_test.rb index fc443915..4d013baf 100644 --- a/test/standard/runners/lsp_test.rb +++ b/test/standard/runners/lsp_test.rb @@ -18,7 +18,7 @@ def test_server_initializes_and_responds_with_proper_capabilities result: {capabilities: { textDocumentSync: {openClose: true, change: 1}, documentFormattingProvider: true, - diagnosticProvider: true + diagnosticProvider: {interFileDependencies: false, workspaceDiagnostics: false} }}, jsonrpc: "2.0" }