rust/crates
bors[bot] 4029628f15
Merge #4729 #4748
4729: Hover actions r=matklad a=vsrs

This PR adds a `hoverActions` LSP extension and a `Go to Implementations` action as an example:
![hover_actions_impl](https://user-images.githubusercontent.com/62505555/83335732-6d9de280-a2b7-11ea-8cc3-75253d062fe0.gif)



4748: Add an `ImportMap` and use it to resolve item paths in `find_path` r=matklad a=jonas-schievink

Removes the "go faster" queries I added in https://github.com/rust-analyzer/rust-analyzer/pull/4501 and https://github.com/rust-analyzer/rust-analyzer/pull/4506. I've checked this PR on the rustc code base and the assists are still fast.

This should fix https://github.com/rust-analyzer/rust-analyzer/issues/4515.

Note that this does introduce a change in behavior: We now always refer to items defined in external crates using paths through the external crate. Previously we could also use a local path (if for example the extern crate was reexported locally), as seen in the changed test. If that is undesired I can fix that, but the test didn't say why the previous behavior would be preferable.

Co-authored-by: vsrs <vit@conrlab.com>
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
2020-06-05 15:14:35 +00:00
..
ra_arena Extract messy tree handling out of profiling code 2020-04-25 21:22:40 +02:00
ra_assists introduce_named_lifetime assist wasn't applicable when type parameter 2020-06-04 17:31:21 -05:00
ra_cfg add support of feature flag for runnables #4464 2020-05-23 20:59:18 +02:00
ra_db Merge #4729 #4748 2020-06-05 15:14:35 +00: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 Measure memory usage of ImportMap 2020-06-05 13:10:43 +02:00
ra_hir_def Merge #4729 #4748 2020-06-05 15:14:35 +00:00
ra_hir_expand More direct signature for resolve_path 2020-06-05 15:07:30 +02:00
ra_hir_ty More direct signature for resolve_path 2020-06-05 15:07:30 +02:00
ra_ide Merge #4729 #4748 2020-06-05 15:14:35 +00:00
ra_ide_db Merge #4729 #4748 2020-06-05 15:14:35 +00:00
ra_mbe Reuse Vec allocations 2020-05-16 22:20:44 +02:00
ra_parser Move default const test out of line 2020-06-04 13:06:57 -04: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 Document rust-project.json 2020-06-03 15:17:26 +02:00
ra_syntax Move default const test out of line 2020-06-04 13:06:57 -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 Merge #4729 #4748 2020-06-05 15:14:35 +00:00
stdx Use split1 when formatting function signature params 2020-06-03 07:26:15 -04:00
test_utils Use split1 when formatting function signature params 2020-06-03 07:26:15 -04:00