We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1df4dd3 commit 494cbd4Copy full SHA for 494cbd4
crates/ide-completion/src/completions.rs
@@ -599,6 +599,7 @@ impl Completions {
599
/// fn with no param that returns itself
600
/// fn with param that returns itself
601
pub(crate) fn sort_new_first(&mut self) {
602
+ // ToDo: Ensure these fn returns Self
603
fn creates_self(item: &CompletionItem) -> Option<bool> {
604
item.detail.as_ref().filter(|d| d.starts_with("fn() -> ")).map(|_| false)
605
}
0 commit comments