Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | Implement constructor usage search for almost all items | Lukas Wirth | 2021-02-12 | 1 | -105/+189 | |
| | | | | | | | | | | | | | | | | | | | | | For all struct kinds, unions and enums, as well as for record- and tuple-variants but not for unit-variants, as these have no trailing character we can anchor the search to. Functionality wise it is implemented though. | |||||
* | | | Merge #7668 | bors[bot] | 2021-02-14 | 1 | -48/+131 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7668: Finalize rename infra rewrite r=matklad a=Veykril This should be the final PR in regards to rewriting rename stuff, #4290. It addresses 3 things: - Currently renaming import aliases causes some undesired behavior(see #5198) which is why this PR causes us to just return an error if an attempt at renaming an alias is made for the time being. Though this only prevents it from happening when the alias import is renamed, so its not too helpful. - Fixes #6898 - If we are inside a macro file simply rename the input name node as there isn't really a way to do any of the fancy shorthand renames and similar things as for that we would have to exactly know what the macro generates and what not. Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | | Don't rename field record patterns directly | Lukas Wirth | 2021-02-13 | 1 | -36/+71 | |
| | | | | ||||||
| * | | | Fallback to renaming input NameRef node for macros when inside macro | Lukas Wirth | 2021-02-13 | 1 | -16/+53 | |
| | | | | ||||||
| * | | | Prevent aliases from being renamed for now | Lukas Wirth | 2021-02-13 | 1 | -13/+24 | |
| | | | | ||||||
* | | | | Don't classify attribute macros as their path unless it's a function with ↵ | Lukas Wirth | 2021-02-13 | 1 | -0/+35 | |
|/ / / | | | | | | | | | | the proc_macro_attribute attribute | |||||
* | | | Make annotations tests similar to those in runnables | ivan770 | 2021-02-13 | 1 | -188/+707 | |
| | | | ||||||
* | | | Improve runnable annotations order, fix incorrect ignore detection | ivan770 | 2021-02-13 | 1 | -5/+13 | |
| | | | ||||||
* | | | Added annotation tests | ivan770 | 2021-02-13 | 1 | -0/+267 | |
| | | | ||||||
* | | | Fix incorrect references annotation | ivan770 | 2021-02-13 | 1 | -2/+3 | |
| | | | ||||||
* | | | Moved CodeLens to ide crate | ivan770 | 2021-02-13 | 2 | -0/+156 | |
|/ / | ||||||
* | | Update references test output | Lukas Wirth | 2021-02-12 | 1 | -2/+2 | |
| | | ||||||
* | | Use NameLike in FileReference directly as its not exported from ide anymore | Lukas Wirth | 2021-02-12 | 3 | -14/+8 | |
| | | ||||||
* | | Refactor reference searching to work with the ast | Lukas Wirth | 2021-02-12 | 4 | -256/+310 | |
| | | ||||||
* | | Remove unused ReferenceSearchResult functions | Lukas Wirth | 2021-02-12 | 1 | -24/+5 | |
| | | ||||||
* | | Merge #7644 | bors[bot] | 2021-02-12 | 2 | -4/+3 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 7644: Primitive completion r=jonas-schievink a=jonas-schievink Fixes https://github.com/rust-analyzer/rust-analyzer/issues/7642 Co-authored-by: Jonas Schievink <[email protected]> | |||||
| * | | Wrap `BuiltinType` in code model | Jonas Schievink | 2021-02-11 | 2 | -4/+3 | |
| | | | ||||||
* | | | Pin Rust to 1.49.0 on CI | Jonas Schievink | 2021-02-12 | 1 | -3/+3 | |
|/ / | ||||||
* | | Update fixed tests | Jonas Schievink | 2021-02-10 | 1 | -0/+1 | |
| | | ||||||
* | | Resolve TupleStructPat in SourceAnalyzer::resolve_path | Lukas Wirth | 2021-02-10 | 1 | -0/+23 | |
| | | ||||||
* | | Add parsing benchmark | Aleksey Kladov | 2021-02-09 | 1 | -5/+32 | |
| | | ||||||
* | | Infra for "unit" benchmarking | Aleksey Kladov | 2021-02-09 | 1 | -10/+12 | |
| | | ||||||
* | | restore accidentally deleted test | Aleksey Kladov | 2021-02-09 | 1 | -0/+13 | |
| | | ||||||
* | | More precise navigation to parent | Aleksey Kladov | 2021-02-09 | 3 | -10/+13 | |
| | | ||||||
* | | Cleanup tests | Aleksey Kladov | 2021-02-09 | 3 | -55/+53 | |
| | | ||||||
* | | Cleanup test | Aleksey Kladov | 2021-02-09 | 1 | -20/+21 | |
| | | ||||||
* | | Modernize tests | Aleksey Kladov | 2021-02-09 | 1 | -197/+169 | |
| | | ||||||
* | | AdtDef -> Adt | Aleksey Kladov | 2021-02-07 | 1 | -5/+5 | |
| | | ||||||
* | | Increase Highlights highlight range to covering element | Lukas Wirth | 2021-02-04 | 1 | -1/+1 | |
| | | ||||||
* | | Show alias underlying type | lumenian | 2021-02-02 | 1 | -1/+5 | |
| | | ||||||
* | | Return inner attributes of outline mod declarations in `attrs_query` | Lukas Wirth | 2021-01-31 | 1 | -0/+16 | |
| | | ||||||
* | | Classify function calls as functions when shadowed by types | Lukas Wirth | 2021-01-28 | 2 | -0/+8 | |
| | | ||||||
* | | Merge #7465 | bors[bot] | 2021-01-27 | 1 | -1/+19 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7465: Only hide parameter hints for path, field and methodcall expressions r=SomeoneToIgnore a=Veykril Doing this check for other expressions makes little sense to me. Fixes #7458 Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | Only hide parameter hints for path, field and methodcall expressions | Lukas Wirth | 2021-01-27 | 1 | -1/+19 | |
| | | | ||||||
* | | | Make always-assert crate reusable | Aleksey Kladov | 2021-01-26 | 1 | -3/+3 | |
|/ / | ||||||
* | | Shorten hir::TypeParam full_range in NavigationTarget | Lukas Wirth | 2021-01-26 | 2 | -4/+23 | |
| | | ||||||
* | | Support unions in symbol search | Lukas Wirth | 2021-01-24 | 1 | -0/+1 | |
| | | ||||||
* | | Remove use of SourceFileEdit | Phil Ellison | 2021-01-23 | 1 | -2/+1 | |
| | | ||||||
* | | cargo fmt | Phil Ellison | 2021-01-23 | 1 | -1/+5 | |
| | | ||||||
* | | Address review comments | Phil Ellison | 2021-01-23 | 1 | -9/+4 | |
| | | ||||||
* | | cargo fmt | Phil Ellison | 2021-01-23 | 1 | -2/+7 | |
| | | ||||||
* | | Implement fix, add tests | Phil Ellison | 2021-01-23 | 1 | -18/+11 | |
| | | ||||||
* | | Add diagnostic for filter_map followed by next | Phil Ellison | 2021-01-23 | 2 | -1/+35 | |
| | | ||||||
* | | Merge #7353 | bors[bot] | 2021-01-22 | 8 | -35/+12 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7353: Add LifetimeParam and ConstParam to CompletionItemKind r=matklad a=Veykril Adds `LifetimeParam` and `ConstParam` to `CompletionItemKind` and maps them both to `TypeParam` in the protocol conversion as there are no equivalents, so nothing really changes there. `ConstParam` could be mapped to `Const` I guess but I'm split on whether that would be better? Additions were solely inspired by (the single) test output for const params. Also sorts the variants of `CompletionItemKind` and its to_proto match. Co-authored-by: Lukas Wirth <[email protected]> | |||||
| * | | Move SymbolKind to ide_db | Lukas Wirth | 2021-01-20 | 8 | -35/+12 | |
| | | | ||||||
* | | | Merge #7348 | bors[bot] | 2021-01-22 | 2 | -3/+49 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7348: Fix broken link in intra-doc r=edwin0cheng a=sasurau4 Fix #5546 The intra-doc link doesn't work fine for trait associated method. Co-authored-by: Daiki Ihara <[email protected]> | |||||
| * | | | Fix broken link in intra-doc | Daiki Ihara | 2021-01-22 | 2 | -3/+49 | |
| | | | | ||||||
* | | | | Cleanup tests | Aleksey Kladov | 2021-01-22 | 1 | -12/+12 | |
| | | | | ||||||
* | | | | Remove index based fallback for goto def | Aleksey Kladov | 2021-01-22 | 1 | -48/+18 | |
|/ / / | | | | | | | | | | | | | We are so precise that the fallback creates more confusion, when you can goto def on an unresolved reference. | |||||
* | | | Include `countme` crate to count important data structures. | Aleksey Kladov | 2021-01-21 | 1 | -0/+2 | |
| | | |