rust-analyzer/crates
bors[bot] 6ce6744e18
Merge #1796
1796: Support completion for macros r=matklad a=uHOOCCOOHu

This is based on #1795 , and fixes #1727 

Also prettify hover text of macros.

Some screenshorts below:

Completion in item place.
<img width="416" alt="Screenshot_20190910_134056" src="https://user-images.githubusercontent.com/14816024/64587159-fa72da00-d3d0-11e9-86bb-c98f169ec08d.png">

After pressing `tab`.
<img width="313" alt="Screenshot_20190910_134111" src="https://user-images.githubusercontent.com/14816024/64587160-fa72da00-d3d0-11e9-9464-21e3f6957bd7.png">

Complete macros from `std`.
<img width="588" alt="Screenshot_20190910_134147" src="https://user-images.githubusercontent.com/14816024/64587161-fb0b7080-d3d0-11e9-866e-5161f0d1b546.png">

Hover text.
<img width="521" alt="Screenshot_20190910_134242" src="https://user-images.githubusercontent.com/14816024/64587162-fb0b7080-d3d0-11e9-8f09-ad17e3f6702a.png">



Co-authored-by: uHOOCCOOHu <hooccooh1896@gmail.com>
2019-09-11 14:49:57 +00:00
..
ra_arena cleanup 2019-08-06 10:57:16 +02:00
ra_assists Minor typo fix for ra_assists code doc 2019-09-08 02:10:53 -07:00
ra_batch document module 2019-09-09 17:31:11 +03:00
ra_cli refactor(args): Apply comments 2019-09-10 16:17:11 +01:00
ra_db introduce hir debugging infra 2019-09-09 12:32:16 +03:00
ra_fmt fix hir for new block syntax 2019-09-02 21:23:19 +03:00
ra_hir Merge #1796 2019-09-11 14:49:57 +00:00
ra_ide_api Split out complete_macro_in_item_position 2019-09-11 22:44:44 +08:00
ra_lsp_server introduce hir debugging infra 2019-09-09 12:32:16 +03:00
ra_mbe cleanup expansion to item list 2019-09-10 22:22:57 +03:00
ra_parser cleanup dollar handling in expressions 2019-09-10 21:28:27 +03:00
ra_prof ⬆️ once_cell 2019-09-01 23:18:15 +03:00
ra_project_model introduce hir debugging infra 2019-09-09 12:32:16 +03:00
ra_syntax add a jointness parser tests 2019-09-10 15:57:51 +03:00
ra_text_edit allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ra_tools refactor(args): Apply comments 2019-09-10 16:17:11 +01:00
ra_tt allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ra_vfs_glob add option to disable notify 2019-09-06 17:21:29 +03:00
test_utils translate \n -> \r\n on the way out 2019-08-20 19:53:05 +03:00