Skip to content

Commit 6f8e75a

Browse files
authored
Merge pull request rust-lang#18388 from jaboatman/master
Fix checking for `false` `labelDetailsSupport` value.
2 parents 7dad963 + bc6b2ec commit 6f8e75a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ impl ClientCapabilities {
210210
.completion_item
211211
.as_ref()?
212212
.label_details_support
213-
.as_ref()
214-
})()
215-
.is_some()
213+
})() == Some(true)
216214
}
217215

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

0 commit comments

Comments
 (0)