rust/crates
bors[bot] 6494193adb
Merge #9681
9681: Respect `#[doc(hidden)]` in dot-completion r=jonas-schievink a=jonas-schievink

This adds `CompletionContext::is_visible` as a convenience method that checks visibility, presence of `doc(hidden)`, and whether the completed item is in the same crate as the completion site or not. We only complete `doc(hidden)` items from the same crate.

This doesn't yet work for *all* completions: `qualified_path` completions use `Module::scope` and `ScopeDef`, which doesn't work with this.

Part of https://github.com/rust-analyzer/rust-analyzer/issues/7718

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2021-07-23 14:59:26 +00:00
..
base_db minor: remove dead code 2021-07-20 20:22:56 +03:00
cfg internal: add simple smoke test for project model 2021-07-20 16:23:57 +03:00
flycheck internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
hir Respect #[doc(hidden)] in dot-completion 2021-07-23 15:36:43 +02:00
hir_def Fix formatting and use Iterator::any 2021-07-23 16:45:14 +02:00
hir_expand Add Limit struct. 2021-07-19 13:26:11 +01:00
hir_ty Resolve tuple variants in value namespace 2021-07-22 13:40:18 +02:00
ide Added tests to ensure config behavior. 2021-07-22 19:35:47 -06:00
ide_assists Merge #9453 2021-07-22 10:33:05 +00:00
ide_completion Fix formatting and use Iterator::any 2021-07-23 16:45:14 +02:00
ide_db Correctly classify Rename Names 2021-07-23 02:14:59 +02:00
ide_diagnostics internal: remove one more needless extern crate 2021-07-11 15:48:49 +03:00
ide_ssr minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
limit Add Limit struct. 2021-07-19 13:26:11 +01:00
mbe minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
parser Fix some more basic clippy lints 2021-07-21 20:52:08 +02:00
paths Fix AbsPath::ends_with 2021-07-18 10:25:14 +03:00
proc_macro_api internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
proc_macro_srv internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00
proc_macro_test cargo_metadata 0.14 2021-07-09 11:01:55 -04:00
profile minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
project_model internal: add simple smoke test for project model 2021-07-20 16:23:57 +03:00
rust-analyzer Updated docs. 2021-07-22 19:35:47 -06:00
sourcegen minor: make sure that project_root works correctly 2021-07-13 15:02:29 +03:00
stdx Remove proc macro management thread 2021-07-08 16:43:39 +02:00
syntax Fix some more basic clippy lints 2021-07-21 20:52:08 +02:00
test_utils Update inline_call assist doc example 2021-07-05 14:24:25 +02:00
text_edit minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
toolchain minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
tt minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
vfs internal: make it easier to isolate IO 2021-07-17 17:55:16 +03:00
vfs-notify internal: a bit more of cwd safety for flycheck 2021-07-17 18:13:35 +03:00