aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/db.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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