about summary refs log tree commit diff
path: root/crates/vfs/src
AgeCommit message (Collapse)AuthorLines
2021-10-21Migrate to edition 2021Lukas Wirth-1/+0
2021-10-12Merge #10423bors[bot]-0/+6
10423: Internal: refactor for mdbook plugin r=Veykril a=HKalbasi This PR is for upstreaming changes that I made for mdbook plugin. Changes are adding inlay hints to `StaticIndex` and changing some functions for working around privacy of crates. Aside this, is it okay if I bring the plugin in tree? It is a simple binary crate. I feel it will better maintained here and become resistant to api changes. Co-authored-by: hamidreza kalbasi <hamidrezakalbasi@protonmail.com>
2021-10-12internal changes for mdbookhamidreza kalbasi-0/+6
2021-10-03Fix miscellaneous Clippy lintsAramis Razzaghipour-2/+1
2021-10-03Add semicolons for consistencyAramis Razzaghipour-3/+3
`clippy::semicolon_if_nothing_returned`
2021-09-28Update crates/vfs/src/vfs_path.rs龙方淞-3/+1
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-09-28initial commitlongfangsong-0/+3
2021-08-11internal: document that ascription is preferred to a turbo fishAleksey Kladov-1/+1
2021-08-10Fix: revert strange usage of `?` operatorBasti Ortiz-9/+8
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-08-10Refactor: use `filter_map` when iterating over stored IDs andBasti Ortiz-7/+6
2021-08-10Chore: use short-circuiting for file ID getterBasti Ortiz-1/+3
2021-07-17internal: make it easier to isolate IOAleksey Kladov-0/+1
2021-06-17Nest all the or-patterns!Lukas Wirth-1/+1
2021-06-13clippy::redudant_borrowMaan2003-1/+1
2021-04-06Avoid duplicating VfsPath in vfs::path_interner::PathInterner by using an ↵Alexandru Macovei-13/+16
IndexSet
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-2/+117
2021-01-12Document vfs public itemsArnaud-2/+204
2021-01-07Use `file_set::FileSet` and `FileSet` consistently in docArnaud-5/+5
The first occurrence of `FileSet` has the full path (`file_set::FileSet`), while every other is simply `FileSet`.
2021-01-07Use intra-doc links in `vfs` crate documentationArnaud-20/+26
2021-01-07Remove the reference to `WalkdirLoaderHandle` in vfs documentationArnaud-3/+0
This structure was deleted in commit #dad1333
2020-12-09Merge #6785bors[bot]-4/+5
6785: Fix "no value set for FileTextQuery(FileId(..))" r=jonas-schievink a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/6622 Let's hope I got it right this time, but I feel like I slowly begin to understand the main loop logic. bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2020-12-09Fix "no value set for FileTextQuery(FileId(..))"Jonas Schievink-4/+5
2020-12-09.Aleksey Kladov-5/+48
2020-12-01Extract tests module to file in vfs crateDaiki Ihara-82/+74
2020-11-02Remove more unreachable pubsAleksey Kladov-2/+2
2020-11-02Deny unreachable-pubAleksey Kladov-1/+1
It's very useful when `pub` is equivalent to "this is crate's public API", let's enforce this! Ideally, we should enforce it for local `cargo test`, and only during CI, but that needs https://github.com/rust-lang/cargo/issues/5034.
2020-09-10Rename the method to avoid false promisesKirill Bulatov-12/+10
2020-09-10Add VirtualPath testsKirill Bulatov-3/+38
2020-09-10Move rust-related logic from vfs to base_db levelKirill Bulatov-60/+5
2020-09-10Properly handle special cases (binaries, mod.rs)Kirill Bulatov-26/+58
2020-09-10Implement file name & extension retrieval method for VirtualPathKirill Bulatov-2/+20
2020-09-10Small refactoringKirill Bulatov-11/+11
2020-09-10Happy path implementedKirill Bulatov-13/+17
2020-09-10Properly use FileSet APIKirill Bulatov-28/+41
2020-09-10Better APIKirill Bulatov-14/+29
2020-09-10First steps for mod<|> completionKirill Bulatov-2/+25
2020-08-14Sophisticate Windows path encodingArmin Sander-7/+132
2020-07-26Add one more testAleksey Kladov-21/+50
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-07-14Minor, push allocations downAleksey Kladov-3/+3
2020-07-10Optimize VFS processingAleksey Kladov-1/+1
2020-07-10Also reload when adding new examples, tests, etcAleksey Kladov-1/+1