Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add go to type definition for struct fields within struct | Jade | 2021-05-25 | 1 | -0/+32 |
| | | | | | | | | | | | | | | | Example: ```rust struct A; struct B { a/*<- cursor*/: A, } ``` Go to type definition used to not work on this position. It now goes to `A` as expected. | ||||
* | Merge #8942 | bors[bot] | 2021-05-25 | 7 | -30/+121 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | 8942: Add `library` semantic token modifier to items from other crates r=arzg a=arzg Closes #5772. A lot of code here is pretty repetitive; please let me know if you have any ideas how to improve it, or whether it’s fine as-is. Side-note: How can I add tests for this? I don’t see a way for the test Rust code in `test_highlighting` to reference other crates to observe the new behaviour. Co-authored-by: Aramis Razzaghipour <[email protected]> | ||||
| * | Refactor application of `library` semantic token modifier | Aramis Razzaghipour | 2021-05-25 | 1 | -62/+15 |
| | | |||||
| * | Remove superfluous early-returns | Aramis Razzaghipour | 2021-05-24 | 1 | -18/+22 |
| | | |||||
| * | Rename ‘foreign’ semantic token modifier to ‘library’ | Aramis Razzaghipour | 2021-05-24 | 3 | -18/+18 |
| | | |||||
| * | Add testing of foreign item highlighting | Aramis Razzaghipour | 2021-05-24 | 2 | -1/+55 |
| | | |||||
| * | Highlight foreign modules as such | Aramis Razzaghipour | 2021-05-24 | 1 | -1/+9 |
| | | |||||
| * | Remove hir krate methods | Aramis Razzaghipour | 2021-05-24 | 3 | -11/+11 |
| | | |||||
| * | Add highlighting of items from other crates | Aramis Razzaghipour | 2021-05-24 | 3 | -12/+84 |
| | | |||||
* | | Bump misc deps | Laurențiu Nicola | 2021-05-24 | 1 | -3/+3 |
| | | |||||
* | | Correctly resolve crate name in use paths when import shadows itself | Lukas Tobias Wirth | 2021-05-23 | 1 | -0/+20 |
| | | |||||
* | | Minor: fix comment style | Aleksey Kladov | 2021-05-23 | 1 | -1/+3 |
|/ | | | | See https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/style.md#documentation | ||||
* | Give ‘unsafe’ semantic token modifier to unsafe traits | Aramis Razzaghipour | 2021-05-23 | 4 | -3/+16 |
| | |||||
* | Add more docs | Aleksey Kladov | 2021-05-22 | 2 | -3/+5 |
| | |||||
* | Add a "Debug ItemTree" LSP request | Jonas Schievink | 2021-05-21 | 2 | -0/+21 |
| | |||||
* | Fix prepare_rename failing for modules | Lukas Tobias Wirth | 2021-05-19 | 1 | -5/+7 |
| | |||||
* | Add pub mod option for UnlinkedFile | rainy-me | 2021-05-18 | 12 | -121/+158 |
| | |||||
* | fix: don't add extra whitespace around fields | Aleksey Kladov | 2021-05-17 | 1 | -0/+25 |
| | | | | closes #8785 | ||||
* | minor: add missing tests | Aleksey Kladov | 2021-05-17 | 2 | -0/+52 |
| | |||||
* | internal: scalable module structure for fixits | Aleksey Kladov | 2021-05-17 | 8 | -766/+693 |
| | |||||
* | minor: extract fix to file | Aleksey Kladov | 2021-05-17 | 2 | -44/+196 |
| | |||||
* | Merge #8853 | bors[bot] | 2021-05-16 | 2 | -4/+4 |
|\ | | | | | | | | | | | | | | | | | 8853: Tag Self in impls as a TypeAlias r=matklad a=Veykril bors r+ Fixes #4398 Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Tag Self in impls as a TypeAlias | Lukas Wirth | 2021-05-16 | 2 | -4/+4 |
| | | |||||
* | | internal: use mutable syntax trees when filling fields | Aleksey Kladov | 2021-05-16 | 2 | -6/+7 |
| | | |||||
* | | Merge #8813 | bors[bot] | 2021-05-16 | 2 | -2/+2 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8813: Get some more array lengths! r=lf- a=lf- This is built on #8799 and thus contains its changes. I'll rebase it onto master when that one gets merged. It adds support for r-a understanding the length of: * `let a: [u8; 2] = ...` * `let a = b"aaa"` * `let a = [0u8; 4]` I have added support for getting the values of byte strings, which was not previously there. I am least confident in the correctness of this part and it probably needs some more tests, as we currently have only one test that exercised that part (!). Fixes #2922. Co-authored-by: Jade <[email protected]> | ||||
| * | | Support length for ByteStrings | Jade | 2021-05-13 | 2 | -2/+2 |
| | | | | | | | | | | | | I am not confident that my added byte string parsing is right. | ||||
* | | | Attach comments to ast::Impl | Lukas Wirth | 2021-05-15 | 2 | -1/+25 |
| | | | |||||
* | | | simplify | Lukas Wirth | 2021-05-15 | 2 | -10/+8 |
| |/ |/| | |||||
* | | Address comments | hi-rustin | 2021-05-14 | 3 | -3/+25 |
| | | |||||
* | | Apply async semantic token modifier to async/await keywords | hi-rustin | 2021-05-14 | 2 | -0/+11 |
| | | | | | | | | Only async semantic token modifier | ||||
* | | Merge #8823 | bors[bot] | 2021-05-13 | 1 | -4/+4 |
|\ \ | |/ |/| | | | | | | | | | | | 8823: Enable OPTION::ENABLE_TASKLISTS in pulldown_cmark r=Veykril a=Veykril Closes #8821 Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Enable OPTION::ENABLE_TASKLISTS in pulldown_cmark | Lukas Wirth | 2021-05-13 | 1 | -4/+4 |
| | | |||||
* | | Merge #8799 | bors[bot] | 2021-05-12 | 1 | -1/+1 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8799: Add basic support for array lengths in types r=flodiebold a=lf- This recognizes `let a = [1u8, 2, 3]` as having type `[u8; 3]` instead of the previous `[u8; _]`. Byte strings and `[0u8; 2]` kinds of range array declarations are unsupported as before. I don't know why a bunch of our rustc tests had single quotes inside strings un-escaped by `UPDATE_EXPECT=1 cargo t`, but I don't think it's bad? Maybe something in a nightly? Co-authored-by: Jade <[email protected]> | ||||
| * | | Add basic support for array lengths in types | Jade | 2021-05-11 | 1 | -1/+1 |
| |/ | | | | | | | | | | | | | | | | | | | This recognizes `let a = [1u8, 2, 3]` as having type `[u8; 3]` instead of the previous `[u8; _]`. Byte strings and `[0u8; 2]` kinds of range array declarations are unsupported as before. I don't know why a bunch of our rustc tests had single quotes inside strings un-escaped by `UPDATE_EXPECT=1 cargo t`, but I don't think it's bad? Maybe something in a nightly? | ||||
* | | Move `dot` invocation to rust-analyzer crate | Jonas Schievink | 2021-05-11 | 2 | -23/+3 |
| | | |||||
* | | Better node label/shapes | Jonas Schievink | 2021-05-11 | 1 | -3/+11 |
| | | |||||
* | | Only include workspace crates | Jonas Schievink | 2021-05-11 | 1 | -8/+30 |
| | | |||||
* | | Update crates/ide/src/view_crate_graph.rs | Jonas Schievink | 2021-05-11 | 1 | -2/+2 |
| | | | | | | Co-authored-by: bjorn3 <[email protected]> | ||||
* | | Distinguish crates with identical name | Jonas Schievink | 2021-05-11 | 1 | -1/+1 |
| | | |||||
* | | Allow viewing the crate graph in a webview | Jonas Schievink | 2021-05-11 | 3 | -0/+87 |
|/ | |||||
* | feat: auto-indent use tree lists | Jonas Schievink | 2021-05-10 | 1 | -0/+115 |
| | |||||
* | feat: auto-insert `}` when typing `{` in use item | Jonas Schievink | 2021-05-09 | 1 | -19/+131 |
| | |||||
* | minor: fix test style | Aleksey Kladov | 2021-05-09 | 1 | -12/+0 |
| | |||||
* | fix: join lines doesn't add space before closing quote | Aleksey Kladov | 2021-05-09 | 1 | -0/+30 |
| | |||||
* | fix: join lines doesn't add space before closing quote | Aleksey Kladov | 2021-05-09 | 1 | -9/+32 |
| | |||||
* | Don't handle Self as a usage for TraitDefs | Lukas Wirth | 2021-05-08 | 1 | -22/+27 |
| | |||||
* | Correctly support SelfType when searching for usages | Lukas Wirth | 2021-05-08 | 2 | -3/+69 |
| | |||||
* | fix: use raw idents in `make::name{_ref}` with keywords | Jonas Schievink | 2021-05-07 | 1 | -0/+20 |
| | |||||
* | Merge #8745 | bors[bot] | 2021-05-06 | 1 | -0/+12 |
|\ | | | | | | | | | | | | | | | | | 8745: Support goto_type_definition for types r=matklad a=Veykril I'm unsure if the approach of lowering an `ast::Type` to a `hir::Type` is a good idea, it seems fine to me at least. Fixes #2882 Co-authored-by: Lukas Tobias Wirth <[email protected]> | ||||
| * | Support goto_type_definition for types | Lukas Tobias Wirth | 2021-05-06 | 1 | -0/+12 |
| | |