about summary refs log tree commit diff
path: root/crates/vfs/src/loader.rs
AgeCommit message (Collapse)AuthorLines
2021-08-11internal: document that ascription is preferred to a turbo fishAleksey Kladov-1/+1
2021-08-10Fix: prefer the usage of `for` loops over `fold`Basti Ortiz-9/+8
2021-08-10Chore: add comments to explicitly express two-step checkBasti Ortiz-0/+3
See https://github.com/rust-analyzer/rust-analyzer/pull/9836#discussion_r685953381
2021-08-10Fix: revert complex conditional in `Directories::contains_file`Basti Ortiz-1/+4
This reverts commit 6d0336b2e41703254b31f5d9a1358eb7e15cee3f.
2021-08-10Refactor: use iterator methods over `for` loopsBasti Ortiz-14/+12
2021-08-10Refactor: simplify logic for `Directories::contains_file`Basti Ortiz-4/+1
The logic was simply inverted to accomodate for the short-circuiting `&&` operator.
2021-02-12Fix slow tests sometimes failingFlorian Diebold-2/+6
In some situations we reloaded the workspace in the tests after having reported to be ready. There's two fixes here: 1. Add a version to the VFS config and include that version in progress reports, so that we don't think we're done prematurely; 2. Delay status transitions until after changes are applied. Otherwise the last change during loading can potentially trigger a workspace reload, if it contains interesting changes.
2021-01-12Document vfs private itemsArnaud-0/+15
2021-01-12Document vfs public itemsArnaud-0/+65
2020-07-21Expose package roots more directlyAleksey Kladov-1/+1
2020-07-20SimplifyAleksey Kladov-9/+5
2020-07-18Simplify exclusion logicAleksey Kladov-9/+73
2020-06-24Less error-prone namingAleksey Kladov-4/+4
2020-06-24Cleanup project.json deserializationAleksey Kladov-2/+2
2020-06-23New VFSAleksey Kladov-10/+12
2020-06-16New VFS APIAleksey Kladov-0/+69