aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* SimplifyAleksey Kladov2020-06-091-1/+1
|
* 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
* Convert code to text-sizeAleksey Kladov2020-04-251-2/+2
|
* Remove deps on tt_mbeEdwin Cheng2020-03-261-1/+0
|
* Add ProcMacroClientEdwin Cheng2020-03-251-1/+2
|
* 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).
* Add extern sourceEdwin Cheng2020-03-111-2/+2
|
* Add resolve_extern_path in DBEdwin Cheng2020-03-101-1/+17
|
* Apply the reviews suggestionsKirill Bulatov2020-02-051-1/+3
|
* rename ra_ide_api -> ra_ideAleksey Kladov2019-11-271-1/+1
|
* Pull macro upAleksey Kladov2019-11-241-0/+14
|
* Add support for environment to CrateGraphAleksey Kladov2019-11-221-1/+1
|
* Introduce ra_db::fixture fixture moduleAleksey Kladov2019-11-031-1/+2
| | | | The goal here is to share more testing infrastructure between crates.
* remove relative_path_buf workaroundAleksey Kladov2019-10-271-4/+1
| | | | The upstream problem was fixed with the change to 1.0
* Prepare SourceDatabase API for lazy file loadingAleksey Kladov2019-10-141-34/+60
|
* remove last traces of source roots from hirAleksey Kladov2019-10-111-1/+25
|
* replace horrible hack with a slightly less horrible oneAleksey Kladov2019-09-271-3/+2
|
* make source_root API more abstractAleksey Kladov2019-09-061-3/+2
|
* make Parse genericAleksey Kladov2019-07-181-3/+3
|
* allow rustfmt to reorder importsAleksey Kladov2019-07-041-6/+4
| | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
* make LRU_CAP configurable for batch dbAleksey Kladov2019-06-121-0/+2
|
* fix syntax errors in testsAleksey Kladov2019-05-281-3/+3
|
* add profile calls to parsing/expansion routinesAleksey Kladov2019-05-221-1/+4
|
* Assert that DB is unwind-safe, instead of provingAleksey Kladov2019-05-181-3/+4
| | | | | | | | | | | | | Unfortunately, that `: RefUnwindSafe` bound gives rustc a hard time, so let's remove it for know. See * https://github.com/rust-analyzer/rust-analyzer/issues/1283 * https://github.com/rust-lang/rust/pull/60444 * https://github.com/rust-lang/rust/issues/58291 closes #1283
* drop old interning infraAleksey Kladov2019-04-091-5/+1
|
* Fixed typo in `Interner`’s name (`Intener`)Vincent Esche2019-03-201-1/+1
|
* Keep track of crate editionFlorian Diebold2019-02-131-1/+1
|
* reformat the worldAleksey Kladov2019-02-081-5/+2
|
* move assists to a separate crateAleksey Kladov2019-02-061-1/+1
|
* make HirDatabase object-safeAleksey Kladov2019-02-031-11/+16
|
* remove dead codeAleksey Kladov2019-01-271-1/+0
|
* rename source_file -> parseAleksey Kladov2019-01-261-2/+2
|
* rename FilesDatabase -> SourceDatabaseAleksey Kladov2019-01-261-4/+6
|
* move ide queries to ide dbAleksey Kladov2019-01-261-8/+0
|
* fold syntax database into files databaseAleksey Kladov2019-01-261-8/+5
|
* :arrow_up: salsaAleksey Kladov2019-01-251-2/+2
|
* :arrow_up salsaAleksey Kladov2019-01-251-14/+54
|
* Change ids strategyAleksey Kladov2019-01-241-1/+1
| | | | | | | this is a part of larghish hir refactoring which aims to * replace per-source-root module trees with per crate trees * switch from a monotyped DedId to type-specific ids
* move SyntaxPtr to ra_syntaxAleksey Kladov2019-01-231-2/+0
|
* :arrow_up: salsaAleksey Kladov2019-01-171-6/+4
|
* remove Canceled from API implAleksey Kladov2019-01-151-1/+1
|
* check_canceled does not return ResultAleksey Kladov2019-01-151-2/+14
|
* update salsaAleksey Kladov2019-01-151-2/+3
|
* rename TreePtr -> TreeArcAleksey Kladov2019-01-111-3/+3
| | | | This is much clearer about the semantics
* implement RefUnwindSafeAleksey Kladov2019-01-101-3/+2
|