rust-analyzer/crates
bors[bot] c6b739bad0
Merge #4660
4660: Enable hover and autocomplete docs on macro generated items r=aloucks a=aloucks

Enable hover and autocomplete docs on macro generated items. This de-sugars doc comments into `doc` attributes in some cases, but not all. Comments and `doc` attributes are then merged together. 

This PR is essentially a partial implementation of what's being suggested #3182, but it's not all the way there yet. ~I still need to add unit tests~, but I wanted to first get feedback on whether or not this was an acceptable path forward.

Fixes #4564
Fixes #3984
Fixes #3180
Related #3182

![macro_item_docs](https://user-images.githubusercontent.com/221559/83336760-15012200-a284-11ea-8d0d-b6a615850044.gif)



Co-authored-by: Aaron Loucks <aloucks@cofront.net>
2020-06-03 11:05:52 +00:00
..
ra_arena Extract messy tree handling out of profiling code 2020-04-25 21:22:40 +02:00
ra_assists Rename assist 2020-06-01 15:41:16 +02:00
ra_cfg add support of feature flag for runnables #4464 2020-05-23 20:59:18 +02:00
ra_db Fix some clippy perf warnings 2020-05-25 13:35:52 -04:00
ra_flycheck Cleanups 2020-05-15 02:09:30 +02:00
ra_fmt Introduce EffectExpr 2020-05-02 11:21:39 +02:00
ra_hir Add highlight support for unsafe fn calls and raw ptr deref 2020-06-02 18:54:00 -04:00
ra_hir_def Consolidate documentation expansion and merging 2020-06-03 06:54:41 -04:00
ra_hir_expand Enable hover and autocomplete docs on macro generated items 2020-06-03 06:46:07 -04:00
ra_hir_ty correctly infer labelled breaks 2020-05-31 11:40:18 +02:00
ra_ide Consolidate documentation expansion and merging 2020-06-03 06:54:41 -04:00
ra_ide_db recursively search submodules 2020-05-31 12:05:54 -04:00
ra_mbe Reuse Vec allocations 2020-05-16 22:20:44 +02:00
ra_parser Update a comment for the new source organization 2020-05-31 16:04:52 -07:00
ra_proc_macro proc_macro: add ability to log to stderr and view output in vscode 2020-04-23 01:57:02 +03:00
ra_proc_macro_srv Fix tests, apply code review proposals 2020-05-31 03:10:23 +03:00
ra_prof Simplify profiler impl (bubble up Option and shorten code 2020-04-26 00:55:49 +03:00
ra_project_model Rename ProjectRoot -> ProjectManifest 2020-06-03 12:05:50 +02:00
ra_syntax Enable hover and autocomplete docs on macro generated items 2020-06-03 06:46:07 -04:00
ra_text_edit Formalize JoinLines protocol extension 2020-05-21 20:05:33 +02:00
ra_toolchain Simplify match 2020-05-09 22:20:11 +03:00
ra_tt Reduce reallocations in ra_tt::buffer::TokenBuffer::new_inner 2020-05-16 22:20:44 +02:00
rust-analyzer Drop test for old format 2020-06-03 12:39:11 +02:00
stdx Use snippets in add function 2020-05-20 01:23:05 +02:00
test_utils Merge pull request #4495 from vsrs/fixture_meta 2020-05-24 15:32:52 +02:00