Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #3542 | bors[bot] | 2020-03-11 | 1 | -5/+23 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3542: Renames work on struct field shorthands r=matklad a=m-n When renaming either a local or a struct field, struct field shorthands are now renamed correctly. Happy to refactor this if it doesn't fit the design of the code. Thanks for adding the suggestion of where to start on the issue. I wasn't sure if I should also look at the behavior of renaming when placing the cursor at the field shorthand; the following describes the behavior with this patch: ```rust #[test] fn test_rename_field_shorthand_for_unspecified() { // when renaming a shorthand, should we have a way to specify // between renaming the field and the local? // // If not is this the correct default? test_rename( r#" struct Foo { i: i32, } impl Foo { fn new(i: i32) -> Self { Self { i<|> } } } "#, "j", r#" struct Foo { i: i32, } impl Foo { fn new(j: i32) -> Self { Self { i: j } } } "#, ); } ``` Resolves #3431 Co-authored-by: Matt Niemeir <[email protected]> | ||||
| * | find_usages limited to actual usages again | Matt Niemeir | 2020-03-11 | 1 | -14/+14 |
| | | |||||
| * | Renaming a local renames struct field shorthand | Matt Niemeir | 2020-03-10 | 1 | -9/+15 |
| | | |||||
| * | Struct field rename renames field in constructor field shorthand | Matt Niemeir | 2020-03-10 | 1 | -5/+17 |
| | | |||||
* | | Move FeatureFlags | Aleksey Kladov | 2020-03-10 | 2 | -84/+3 |
| | | |||||
* | | Pull completion options up to the rust-analyzer | Aleksey Kladov | 2020-03-10 | 1 | -0/+4 |
| | | |||||
* | | :arrow_up: fst | Aleksey Kladov | 2020-03-10 | 1 | -2/+2 |
|/ | |||||
* | Consider crate declaration names | Kirill Bulatov | 2020-03-08 | 2 | -11/+1 |
| | |||||
* | Show mod path in hover tooltip | Kirill Bulatov | 2020-03-07 | 1 | -0/+4 |
| | |||||
* | Normalize waiting queries names | Aleksey Kladov | 2020-03-06 | 1 | -3/+3 |
| | |||||
* | Don't reuse the Chalk solver | Florian Diebold | 2020-03-06 | 1 | -1/+0 |
| | | | | | This slows down analysis-stats a bit (~5% in my measurement), but improves incremental checking a lot because we can reuse trait solve results. | ||||
* | Don't creat public APIs with typos | Aleksey Kladov | 2020-03-06 | 1 | -1/+1 |
| | |||||
* | Concise mode for parameter hints | Aleksey Kladov | 2020-03-06 | 1 | -0/+1 |
| | | | | | This works around VS Code bug where it tries to cram everything in a tiny popup, and brings experience closer to Intellij. | ||||
* | Feature flag for arg snippets | Aleksey Kladov | 2020-03-06 | 1 | -0/+1 |
| | |||||
* | Fix docs | Aleksey Kladov | 2020-03-04 | 1 | -4/+10 |
| | |||||
* | Cleanup API | Aleksey Kladov | 2020-03-04 | 1 | -47/+47 |
| | |||||
* | Fix tests | Aleksey Kladov | 2020-03-04 | 2 | -1/+3 |
| | |||||
* | Use method instead of a free function | Aleksey Kladov | 2020-03-04 | 1 | -61/+64 |
| | |||||
* | Move find_refs_to_def | Aleksey Kladov | 2020-03-04 | 1 | -3/+146 |
| | |||||
* | Move ReferenceKind | Aleksey Kladov | 2020-03-04 | 1 | -1/+20 |
| | |||||
* | Move SearchScope | Aleksey Kladov | 2020-03-04 | 2 | -0/+148 |
| | |||||
* | Support cross-crate marks | Aleksey Kladov | 2020-03-04 | 3 | -0/+16 |
| | |||||
* | Move reference classification to ra_ide_db | Aleksey Kladov | 2020-03-03 | 1 | -3/+75 |
| | | | | Lost some marks along the way :-( | ||||
* | Rename NameDefinition -> Definition | Aleksey Kladov | 2020-03-03 | 2 | -46/+47 |
| | |||||
* | Refactor reference search a bit | Aleksey Kladov | 2020-03-03 | 1 | -1/+27 |
| | |||||
* | Simplify: remove couple of useless functions | Aleksey Kladov | 2020-03-02 | 1 | -19/+11 |
| | |||||
* | Rename ast::ImplBlock -> ast::ImplDef | Aleksey Kladov | 2020-02-29 | 1 | -2/+2 |
| | |||||
* | Fix highlighting of const patterns | Aleksey Kladov | 2020-02-28 | 1 | -0/+6 |
| | |||||
* | Classify name takes const patterns into account | Aleksey Kladov | 2020-02-28 | 2 | -2/+28 |
| | |||||
* | Fix union classification | Aleksey Kladov | 2020-02-28 | 1 | -0/+4 |
| | |||||
* | Ensure that semantic tokens are single-line | Aleksey Kladov | 2020-02-27 | 1 | -1/+43 |
| | |||||
* | Refactor primary IDE API | Aleksey Kladov | 2020-02-26 | 2 | -49/+27 |
| | | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax. | ||||
* | Merge NameDefinition and NameKind | Aleksey Kladov | 2020-02-19 | 2 | -40/+23 |
| | |||||
* | Derive visibility as well | Aleksey Kladov | 2020-02-19 | 1 | -39/+44 |
| | |||||
* | Don't store deriveable Module info in NameDefinition | Aleksey Kladov | 2020-02-19 | 1 | -43/+37 |
| | |||||
* | Run cargo +nightly fix --clippy -Z unstable-options | Kirill Bulatov | 2020-02-18 | 1 | -1/+1 |
| | |||||
* | Remove unicase dependency | Aleksey Kladov | 2020-02-18 | 1 | -7/+13 |
| | |||||
* | Rename the binary to rust-analyzer | Aleksey Kladov | 2020-02-18 | 1 | -1/+1 |
| | |||||
* | Drop proptest tests | Aleksey Kladov | 2020-02-17 | 2 | -102/+0 |
| | | | | | | | It takes waaay to long to compile. We should add quickcheck tests when we touch the relevant code next time. | ||||
* | Rename | Aleksey Kladov | 2020-02-07 | 2 | -5/+5 |
| | |||||
* | Remove irrelevant distinction | Aleksey Kladov | 2020-02-07 | 1 | -28/+4 |
| | |||||
* | Remove the leftovers after ImportLocator removal | Kirill Bulatov | 2020-02-06 | 1 | -2/+2 |
| | |||||
* | Fix tests | Aleksey Kladov | 2020-02-06 | 1 | -1/+1 |
| | |||||
* | Make assists use ImportsLocator directly | Aleksey Kladov | 2020-02-06 | 1 | -24/+21 |
| | |||||
* | Move imports locator to ide_db | Aleksey Kladov | 2020-02-06 | 2 | -0/+76 |
| | |||||
* | Add a fixme note | Aleksey Kladov | 2020-02-06 | 1 | -0/+2 |
| | |||||
* | Move NameKind up | Aleksey Kladov | 2020-02-06 | 2 | -0/+195 |
| | |||||
* | Docs | Aleksey Kladov | 2020-02-06 | 5 | -75/+84 |
| | |||||
* | Cleanup | Aleksey Kladov | 2020-02-06 | 4 | -79/+7 |
| | |||||
* | cleanup imports | Aleksey Kladov | 2020-02-06 | 1 | -1/+2 |
| |