aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db
Commit message (Collapse)AuthorAgeFilesLines
* Remove RelativePathBuf from fixtureAleksey Kladov2020-06-221-5/+5
| | | | | The paths in fixture are not really relative (the default one is `/main.rs`), so it doesn't make sense to use `RelativePathBuf` here.
* Don't panic on crates depending on themselvesFlorian Diebold2020-06-191-5/+30
| | | | Fixes #3883.
* Make relevant_crates return a SetAleksey Kladov2020-06-112-12/+16
|
* SimplifyAleksey Kladov2020-06-092-9/+5
|
* Merge #4760bors[bot]2020-06-051-29/+24
|\ | | | | | | | | | | | | | | | | | | | | 4760: Minimize FileLoader interface r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * Minimize FileLoader interfaceAleksey Kladov2020-06-051-29/+24
| |
| |
| \
*-. \ Merge #4729 #4748bors[bot]2020-06-051-2/+2
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]> Co-authored-by: Jonas Schievink <[email protected]> Co-authored-by: Jonas Schievink <[email protected]>
| | * Add an ImportMapJonas Schievink2020-06-041-2/+2
| |/
* | More direct signature for resolve_pathAleksey Kladov2020-06-051-8/+13
| |
* | Rename resolve_relative_path -> resolve_pathAleksey Kladov2020-06-051-7/+2
|/ | | | For things like `concant!(env!("OUT_DIR"))`, we need to support abs paths
* Fix some clippy perf warningsJeremy Kolb2020-05-251-2/+2
|
* Merge pull request #4495 from vsrs/fixture_metaAleksey Kladov2020-05-242-49/+36
|\ | | | | Test fixtures parsing improvements
| * Propogate fixture meta to AnalysisHostvsrs2020-05-162-8/+17
| | | | | | | | Except crate name.
| * Remove temporary FixtureEntry parsed_meta field.vsrs2020-05-161-2/+2
| |
| * Reimplement ra_db::fixture::ParsedMetavsrs2020-05-161-48/+26
| | | | | | | | in terms of test_utils::FixtureMeta
* | Expand fixture documentation a littleTimo Freiberg2020-05-101-3/+17
|/
* Add fixture doc commentTimo Freiberg2020-05-061-1/+45
|
* Convert code to text-sizeAleksey Kladov2020-04-251-2/+2
|
* Some clippy fixesJeremy Kolb2020-04-192-2/+2
|
* Merge #3727bors[bot]2020-03-264-1/+38
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 3727: Introduce ra_proc_macro r=matklad a=edwin0cheng This PR implemented: 1. Reading dylib path of proc-macro crate from cargo check , similar to how `OUTDIR` is obtained. 2. Added a new crate `ra_proc_macro` and implement the foot-work for reading result from external proc-macro expander. 3. Added a struct `ProcMacroClient` , which will be responsible to the client side communication to the External process. Co-authored-by: Edwin Cheng <[email protected]>
| * Remove deps on tt_mbeEdwin Cheng2020-03-263-5/+21
| |
| * Add ProcMacroClientEdwin Cheng2020-03-254-1/+22
| |
* | Minor incremental tests cleanupAleksey Kladov2020-03-261-2/+2
|/
* Support loading OUT_DIR from cargo check at launchEmil Lauridsen2020-03-171-10/+11
|
* Use `dyn Trait` for working with databseAleksey Kladov2020-03-161-0/+4
| | | | | | | It improves compile time in `--release` mode quite a bit, it doesn't really slow things down and, conceptually, it seems closer to what we want the physical architecture to look like (we don't want to monomorphise EVERYTHING in a single leaf crate).
* Use Display instead of a custom methodKirill Bulatov2020-03-161-2/+5
|
* Fix crate display name dashesKirill Bulatov2020-03-162-4/+11
|
* Add extern sourceEdwin Cheng2020-03-113-7/+33
|
* Add resolve_extern_path in DBEdwin Cheng2020-03-101-1/+17
|
* Add ExternSourceId and env functionsEdwin Cheng2020-03-101-0/+27
|
* Add fixture meta for single file fixtureEdwin Cheng2020-03-102-15/+48
|
* SimplifyAleksey Kladov2020-03-091-7/+1
|
* SimplifyAleksey Kladov2020-03-091-18/+8
|
* Minimize APIAleksey Kladov2020-03-091-6/+2
|
* Use `Index` for CrateGraphAleksey Kladov2020-03-091-7/+10
|
* Less abstract CrateData apiKirill Bulatov2020-03-091-33/+27
|
* Consider crate declaration namesKirill Bulatov2020-03-082-23/+87
|
* Source map returns a resultAleksey Kladov2020-03-061-2/+2
| | | | cc #2236
* ra_db: removed a couple of explicit lifetimesVeetaha2020-02-221-5/+2
|
* Update versionsKirill Bulatov2020-02-181-1/+1
|
* Run cargo +nightly fix --clippy -Z unstable-optionsKirill Bulatov2020-02-181-1/+1
|
* Rename the binary to rust-analyzerAleksey Kladov2020-02-181-1/+1
|
* Apply the reviews suggestionsKirill Bulatov2020-02-053-17/+30
|
* Normalize dashes in crate namesKirill Bulatov2020-02-051-8/+33
|
* Remove the Default impl for SourceRootMichal Terepeta2020-01-082-7/+7
| | | | | | | | | Let's be always explicit whether we create a library (i.e., an immutable dependency) or a local `SourceRoot`, since it can have a large impact on the validation performance in salsa. (we found it the hard way recently, where the `Default` instance made it quite tricky to spot a bug) Signed-off-by: Michal Terepeta <[email protected]>
* Run rustfmt with respect to Cargo.toml editionVincent Rouillé2019-12-041-0/+9
|
* rename ra_ide_api -> ra_ideAleksey Kladov2019-11-271-1/+1
|
* :arrow_up: salsaAleksey Kladov2019-11-261-1/+1
|
* Pull macro upAleksey Kladov2019-11-241-0/+14
|
* ReorderAleksey Kladov2019-11-221-37/+37
|