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.
2 parents be3cf01 + 9297f4d commit 5659009Copy full SHA for 5659009
crates/ra_ide/src/completion/complete_scope.rs
@@ -867,4 +867,38 @@ mod tests {
867
"###
868
);
869
}
870
+
871
+ #[test]
872
+ fn completes_unresolved_uses() {
873
+ assert_debug_snapshot!(
874
+ do_reference_completion(
875
+ r"
876
+ use spam::Quux;
877
878
+ fn main() {
879
+ <|>
880
+ }
881
+ "
882
+ ),
883
+ @r###"
884
+ [
885
+ CompletionItem {
886
+ label: "Quux",
887
+ source_range: [82; 82),
888
+ delete: [82; 82),
889
+ insert: "Quux",
890
+ },
891
892
+ label: "main()",
893
894
895
+ insert: "main()$0",
896
+ kind: Function,
897
+ lookup: "main",
898
+ detail: "fn main()",
899
900
+ ]
901
+ "###
902
+ );
903
904
0 commit comments