aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/references.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Show reason for failed rename refactoringRĂ¼diger Herrmann2020-10-101-0/+1
| | | | | | | | | | | Return an error with a meaningful message for requests to `textDocument/rename` if the operation cannot be performed. Pass errors raised by rename handling code to the LSP runtime. As a consequence, the VS Code client shows and logs the request as if a server-side programming error occured. Resolves https://github.com/rust-analyzer/rust-analyzer/issues/3981
* adt: correctly inherit field visibility from enumJonas Schievink2020-10-091-0/+24
| | | | | | | Previously, "find all references" on a variant field wouldn't find any references outside the defining module. This is because variant fields were incorrectly assumed to be private, like struct fields without explicit visibility, but they actually inherit the enum's visibility.
* Treat `ast::Name` in field patterns as useJonas Schievink2020-10-091-0/+46
|
* Fix source_to_def for named enum variant fieldsJonas Schievink2020-10-091-0/+17
|
* rename mock_analysis -> fixtureAleksey Kladov2020-10-021-2/+2
|
* Get rid of MockAnalysisAleksey Kladov2020-10-021-60/+58
|
* Expectify find_references testsAleksey Kladov2020-10-021-176/+181
|
* Future proof find-usages APIAleksey Kladov2020-08-191-1/+3
| | | | | | We might want to provide more efficient impls for check if usages exist, limiting the search, filtering and cancellation, so let's violate YAGNI a bit here.
* Rename ra_ide -> ideAleksey Kladov2020-08-131-0/+694