aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/db.rs
Commit message (Collapse)AuthorAgeFilesLines
* Reexport relative_path from ra_dbAleksey Kladov2019-11-031-3/+2
|
* fix compilationAleksey Kladov2019-10-301-0/+1
|
* relative-path 1.0kjeremy2019-10-171-1/+1
|
* Merge #2008bors[bot]2019-10-141-1/+20
|\ | | | | | | | | | | | | | | 2008: Prepare SourceDatabase API for lazy file loading r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Prepare SourceDatabase API for lazy file loadingAleksey Kladov2019-10-141-1/+20
| |
* | Use correct db typekjeremy2019-10-111-1/+1
|/
* Added test for check doc strings in crates.Alexander Andreev2019-09-301-0/+2
| | | | #1856
* allow compiling ra_ide_api on wasmAleksey Kladov2019-09-201-5/+5
|
* introduce hir debugging infraAleksey Kladov2019-09-091-1/+30
| | | | | | | | | | | | This is to make debugging rust-analyzer easier. The idea is that `dbg!(krate.debug(db))` will print the actual, fuzzy crate name, instead of precise ID. Debug printing infra is a separate thing, to make sure that the actual hir doesn't have access to global information. Do not use `.debug` for `log::` logging: debugging executes queries, and might introduce unneded dependencies to the crate graph
* implement feature flagsAleksey Kladov2019-08-221-3/+6
|
* implement durabilityAleksey Kladov2019-08-151-4/+4
|
* Some clippy fixes for 1.36Jeremy Kolb2019-07-041-2/+2
|
* allow rustfmt to reorder importsAleksey Kladov2019-07-041-6/+6
| | | | | | 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
* collect more macros, they are heavyAleksey Kladov2019-06-301-0/+1
|
* make sure that CrateDefMap is independent from syntaxAleksey Kladov2019-06-261-0/+1
|
* check for cancellation when executing queriesAleksey Kladov2019-06-121-2/+6
| | | | | | | Note that we can't just remove CheckCanceled trait altogether: sometimes it's useful to check for cancellation while the query is running! We do this, for example, in the name resolution fixed-point loop.
* make LRU cache configurableAleksey Kladov2019-06-121-3/+9
|
* make LRU_CAP configurable for batch dbAleksey Kladov2019-06-121-2/+3
|
* use salsa's LRU for syntax treesAleksey Kladov2019-06-121-1/+3
|
* add AstDatabaseAleksey Kladov2019-06-021-2/+3
|
* cancel salsa's validationAleksey Kladov2019-05-301-0/+5
| | | | | | | | | | | | | | | | | | | This small fix should improve rust-analyzer resopnsivness for real-time operations like onEnter handling. Turns out, salsa's validation can take hundreds of milliseconds, and, in case no changes were made, it won't be triggering any queries. Because we check for cancellation in queries, that means that validation is not cancellable! What this PR does is injecting check_canceled checks into validation, by using salsa's event API, which wasn't meant to be used like this, but, hey, it works! Here's the onEnter handling before and after this change: https://youtu.be/7-ffPzgvH7o
* migrate to salsas interningAleksey Kladov2019-04-091-9/+0
|
* rename persistent hir database -> def databaseAleksey Kladov2019-03-231-1/+1
|
* make HirDatabase object-safeAleksey Kladov2019-02-031-2/+0
|
* split HirDatabase apicsmoe2019-02-011-1/+2
|
* automatically collect garbageAleksey Kladov2019-01-271-1/+10
|
* rename FilesDatabase -> SourceDatabaseAleksey Kladov2019-01-261-4/+4
|
* move ide queries to ide dbAleksey Kladov2019-01-261-9/+6
|
* fold syntax database into files databaseAleksey Kladov2019-01-261-4/+3
|
* :arrow_up: salsaAleksey Kladov2019-01-251-6/+6
|
* :arrow_up salsaAleksey Kladov2019-01-251-49/+7
|
* pack enum variants into arenaAleksey Kladov2019-01-251-1/+0
|
* Change ids strategyAleksey Kladov2019-01-241-0/+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
* encapsulate hir locationsAleksey Kladov2019-01-241-28/+8
|
* Generics -> GenericParamsFlorian Diebold2019-01-191-1/+1
|
* Implement beginnings of genericsFlorian Diebold2019-01-191-0/+1
| | | | | | | - add HIR for generic params - resolve generic params in type paths - add substitions for ADTs - insert type variables for substitutions
* rename LoweredImport -> ImportIdAleksey Kladov2019-01-191-1/+0
|
* switched to lowerd moduleAleksey Kladov2019-01-191-0/+3
|
* :arrow_up: salsaAleksey Kladov2019-01-171-10/+9
|
* Implement basic inherent method resolutionFlorian Diebold2019-01-121-0/+1
|
* Implement type inference for enum variantsMarcus Klaas de Vries2019-01-101-0/+1
|
* use unwinding for cancelationAleksey Kladov2019-01-101-1/+4
|
* fix usages after renameAleksey Kladov2019-01-081-0/+128