rust-analyzer/crates/ra_ide_db/src
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
..
change.rs Measure memory usage of ImportMap 2020-06-05 13:10:43 +02:00
defs.rs Add hover actions as LSP extension 2020-06-05 14:59:26 +03:00
imports_locator.rs Use more generic public api 2020-03-24 10:43:22 +02:00
lib.rs More direct signature for resolve_path 2020-06-05 15:07:30 +02:00
line_index.rs Fix column conversion for supplementary plane characters 2020-05-05 20:30:52 +03:00
search.rs recursively search submodules 2020-05-31 12:05:54 -04:00
source_change.rs KISS SourceChange 2020-05-22 18:04:26 +02:00
symbol_index.rs Generate features docs from source 2020-05-31 01:54:54 +02:00
wasm_shims.rs Docs 2020-02-06 15:10:17 +01:00