diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-07-23 14:59:26 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-23 14:59:26 +0000 |
| commit | 6494193adb5524e3df729b1a8b4043d25ff9db36 (patch) | |
| tree | 000d6df6aeee4ba77d888e792fb416c502425cfb /editors/code/src/debug.ts | |
| parent | 4107106e674ae699ba1b5d50e44e6c8c3f37698b (diff) | |
| parent | c8d915e2ea704ab349600b81bdad18e75d67cbd6 (diff) | |
| download | rust-6494193adb5524e3df729b1a8b4043d25ff9db36.tar.gz rust-6494193adb5524e3df729b1a8b4043d25ff9db36.zip | |
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>
Diffstat (limited to 'editors/code/src/debug.ts')
0 files changed, 0 insertions, 0 deletions
