From cf32dbd9bf20ac4fb4a28f4f7abb7d6a3484cef0 Mon Sep 17 00:00:00 2001 From: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> Date: Sat, 20 Feb 2021 15:16:05 +0100 Subject: feat(completion): add doc(hidden) completion for attributes Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> --- crates/ide_completion/src/completions/attribute.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ide_completion/src/completions/attribute.rs b/crates/ide_completion/src/completions/attribute.rs index ab25a8c58..3a5bc4381 100644 --- a/crates/ide_completion/src/completions/attribute.rs +++ b/crates/ide_completion/src/completions/attribute.rs @@ -101,6 +101,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[ ), attr(r#"doc(alias = "…")"#, Some("docalias"), Some(r#"doc(alias = "${0:docs}")"#)), attr(r#"doc = "…""#, Some("doc"), Some(r#"doc = "${0:docs}""#)), + attr(r#"doc(hidden)"#, Some("dochidden"), Some(r#"doc(hidden)"#)), attr("feature(…)", Some("feature"), Some("feature(${0:flag})")).prefer_inner(), attr("forbid(…)", Some("forbid"), Some("forbid(${0:lint})")), // FIXME: resolve through macro resolution? @@ -471,6 +472,7 @@ struct Test {} at export_name = "…" at doc(alias = "…") at doc = "…" + at doc(hidden) at forbid(…) at ignore = "…" at inline @@ -519,6 +521,7 @@ struct Test {} at export_name = "…" at doc(alias = "…") at doc = "…" + at doc(hidden) at feature(…) at forbid(…) at global_allocator -- cgit v1.2.3