aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* Fix symbol search in salsaAleksey Kladov2020-07-071-19/+90
| | | | | | | | | | | | | | | | | | | | | | Previous solution for binning paths into disjoint directories was simple and fast -- just a single binary search. Unfortunatelly, it wasn't coorrect: if the ditr are /d /d/a /d/c then partitioning the file /d/b/lib.rs won't pick /d as a correct directory. The correct solution here is a trie, but it requires exposing path components. So, we use a poor man's substitution -- a *vector* of sorted paths, such that each bucket is prefix-free closes #5246
* Upstream salsaAleksey Kladov2020-07-071-1/+1
|
* Merge #5244bors[bot]2020-07-074-1/+30
|\ | | | | | | | | | | | | | | | | | | 5244: Add a command to compute memory usage statistics r=matklad a=jonas-schievink This allows inspecting memory usage on a live rust-analyzer instance after it has been used interactively. This will only work with `--features jemalloc`, so maybe it should print something more useful when that's not available? Right now it will just print 0 Bytes for every query. Co-authored-by: Jonas Schievink <[email protected]>
| * Add a command to compute memory usage statisticsJonas Schievink2020-07-074-1/+30
| |
* | Merge #5247bors[bot]2020-07-075-1217/+417
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5247: Modernize unqualified reference completion tests r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | Modernize unqualified reference completion testsAleksey Kladov2020-07-075-1214/+415
| | |
| * | cleanupAleksey Kladov2020-07-071-3/+2
| |/
* | Merge #5245bors[bot]2020-07-072-8/+8
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | 5245: Refactor AssistBuilder to manage a SourceChange r=matklad a=theduke `AssistBuilder` now managaes a full `SourceChange` instead of a `Vec<SourceFileEdit>`. This prepares AssistBuilder to handle creation of new files. Co-authored-by: Christoph Herzog <[email protected]>
| * Refactor AssistBuilder to manage a SourceChangeChristoph Herzog2020-07-072-8/+8
| | | | | | | | | | | | | | `AssistBuilder`` now managaes a full `SourceChange` instead of a Vec<SourceFileEdit>. This prepares AssistBuilder to handle creation of new files.
| |
| \
*-. \ Merge #5235 #5236 #5241bors[bot]2020-07-076-16/+9
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5235: Don't ping people in PRs r=matklad a=lnicola 5236: Disable ES module interop r=matklad a=lnicola 5241: Clippy perf warnings r=matklad a=kjeremy Removes redundant clones Co-authored-by: LaurenÈ›iu Nicola <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]> Co-authored-by: kjeremy <[email protected]>
| | * Clippy perf warningskjeremy2020-07-066-16/+9
| |/ | | | | | | Removes redundant clones
* / Switch to fully dynamically dispatched salsaAleksey Kladov2020-07-0714-98/+83
|/ | | | This improves compile times quite a bit
* Simplify file watcherAleksey Kladov2020-07-061-29/+14
|
* Merge #5228bors[bot]2020-07-052-6/+6
|\ | | | | | | | | | | | | | | | | | | | | 5228: Fix typo r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * Fix typoAleksey Kladov2020-07-052-6/+6
| |
* | AbsPathAleksey Kladov2020-07-051-3/+3
|/
* Modernise item completion testsAleksey Kladov2020-07-041-265/+199
|
* Fallback to target in cfg if not specified in project json configPaul Daniel Faria2020-07-041-1/+1
|
* Add optional target to crates in json project, lookup default cfgs per ↵Paul Daniel Faria2020-07-043-1/+23
| | | | target when generating cfg list
* Alight details in comkplation listAleksey Kladov2020-07-047-50/+63
|
* Modernize qual path completion testsAleksey Kladov2020-07-043-1105/+475
|
* Modernize snippet completion testsAleksey Kladov2020-07-041-77/+29
|
* Add Item change to the set of benchesAleksey Kladov2020-07-041-0/+13
|
* Fix bench to work with relative pathsAleksey Kladov2020-07-042-15/+14
|
* Modernize postfix completion testsAleksey Kladov2020-07-041-512/+123
|
* Modernize pattern completion testsAleksey Kladov2020-07-041-88/+37
|
* Fix lookup in testsAleksey Kladov2020-07-043-0/+11
|
* Macro testsAleksey Kladov2020-07-042-119/+70
|
* Modernize testsAleksey Kladov2020-07-041-64/+60
|
* Cleanup dot completiont testsAleksey Kladov2020-07-044-720/+407
|
* CommentsAleksey Kladov2020-07-042-2/+3
|
* Better tests for completion scoringAleksey Kladov2020-07-043-192/+61
|
* Modernize completion presentation testsAleksey Kladov2020-07-041-393/+340
|
* Unify namingAleksey Kladov2020-07-041-8/+8
|
* Cleanup testsAleksey Kladov2020-07-041-172/+62
|
* Merge #5197bors[bot]2020-07-045-191/+243
|\ | | | | | | | | | | | | | | | | | | | | 5197: SSR internal refactorings r=davidlattimore a=davidlattimore - Extract error code out to a separate module - Improve error reporting when a test fails - Refactor matching code - Update tests so that all paths in search patterns can be resolved Co-authored-by: David Lattimore <[email protected]>
| * SSR: Update tests so that all paths in patterns can be resolvedDavid Lattimore2020-07-031-67/+97
| |
| * SSR: Refactor matching code.David Lattimore2020-07-031-80/+75
| | | | | | | | | | | | Mutable state is now stored in the enum Phase. MatchState, since it now has no mutable state is renamed Matcher. MatchInputs is merged into Matcher
| * SSR: Improve error reporting when a test failsDavid Lattimore2020-07-032-21/+36
| |
| * SSR: Extract error code out to a separate moduleDavid Lattimore2020-07-033-23/+35
| | | | | | | | | | This is to make reusing it outside of parsing easier in a subsequent change.
* | Cleanup more completion testsAleksey Kladov2020-07-033-331/+177
| |
* | Cleanup presentation testsAleksey Kladov2020-07-032-146/+59
| |
* | Add AssistKind::GenerateAleksey Kladov2020-07-037-26/+32
| |
* | Unify naming of generating assistsAleksey Kladov2020-07-037-206/+215
| |
* | Merge #5212bors[bot]2020-07-031-554/+489
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5212: Fix module renaming r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | Fix module renamingAleksey Kladov2020-07-031-6/+53
| | |
| * | Compress rename testsAleksey Kladov2020-07-031-101/+142
| | |
| * | Use expect for rename testsAleksey Kladov2020-07-031-193/+57
| | |
| * | Adhere to code style in rename testsAleksey Kladov2020-07-031-341/+324
| | |
* | | Merge #5211bors[bot]2020-07-032-8/+48
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | 5211: Fix inference of indexing argument (partly) r=flodiebold a=flodiebold We need to add the `T: Index<Arg>` obligation to be resolved later as well, otherwise we can't make inferences about `Arg` later based on the `Index` impls. This still doesn't fix indexing with integer variables though; there's a further problem with Chalk floundering because of the variable, I think. Co-authored-by: Florian Diebold <[email protected]>