Skip to content

Commit 5f6fc39

Browse files
committed
Check diagnostic refresh support from client capability
1 parent bcd9443 commit 5f6fc39

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

crates/ruff_server/src/session/capabilities.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,12 @@ impl ResolvedClientCapabilities {
3737
.and_then(|workspace_edit| workspace_edit.document_changes)
3838
.unwrap_or_default();
3939

40-
let workspace_refresh = true;
41-
42-
// TODO(jane): Once the bug involving workspace.diagnostic(s) deserialization has been fixed,
43-
// uncomment this.
44-
/*
4540
let workspace_refresh = client_capabilities
4641
.workspace
4742
.as_ref()
48-
.and_then(|workspace| workspace.diagnostic.as_ref())
43+
.and_then(|workspace| workspace.diagnostics.as_ref())
4944
.and_then(|diagnostic| diagnostic.refresh_support)
5045
.unwrap_or_default();
51-
*/
5246

5347
let pull_diagnostics = client_capabilities
5448
.text_document

0 commit comments

Comments
 (0)