Skip to content

Commit

Permalink
Check diagnostic refresh support from client capability
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Dec 16, 2024
1 parent bcd9443 commit 5f6fc39
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/ruff_server/src/session/capabilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,12 @@ impl ResolvedClientCapabilities {
.and_then(|workspace_edit| workspace_edit.document_changes)
.unwrap_or_default();

let workspace_refresh = true;

// TODO(jane): Once the bug involving workspace.diagnostic(s) deserialization has been fixed,
// uncomment this.
/*
let workspace_refresh = client_capabilities
.workspace
.as_ref()
.and_then(|workspace| workspace.diagnostic.as_ref())
.and_then(|workspace| workspace.diagnostics.as_ref())
.and_then(|diagnostic| diagnostic.refresh_support)
.unwrap_or_default();
*/

let pull_diagnostics = client_capabilities
.text_document
Expand Down

0 comments on commit 5f6fc39

Please sign in to comment.