Skip to content

Commit

Permalink
Merge pull request #579 from koic/fix_incorrect_diagnostic_provider_v…
Browse files Browse the repository at this point in the history
…alue_of_lsp
  • Loading branch information
searls authored Aug 30, 2023
2 parents d7868a2 + 07214dd commit 3d754f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/standard/lsp/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/standard/runners/lsp_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 3d754f8

Please sign in to comment.