Skip to content

Commit d7f137e

Browse files
committed
Fix checking for false labelDetailsSupport value.
1 parent 7dad963 commit d7f137e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/capabilities.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ impl ClientCapabilities {
212212
.label_details_support
213213
.as_ref()
214214
})()
215-
.is_some()
215+
.copied()
216+
.unwrap_or_default()
216217
}
217218

218219
fn completion_item(&self) -> Option<CompletionOptionsCompletionItem> {

0 commit comments

Comments
 (0)