aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
Commit message (Collapse)AuthorAgeFilesLines
* Minor: fix comment styleAleksey Kladov2021-05-231-1/+3
| | | | See https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/style.md#documentation
* Give ‘unsafe’ semantic token modifier to unsafe traitsAramis Razzaghipour2021-05-234-3/+16
|
* Add more docsAleksey Kladov2021-05-222-3/+5
|
* Add a "Debug ItemTree" LSP requestJonas Schievink2021-05-212-0/+21
|
* Fix prepare_rename failing for modulesLukas Tobias Wirth2021-05-191-5/+7
|
* Add pub mod option for UnlinkedFilerainy-me2021-05-1812-121/+158
|
* fix: don't add extra whitespace around fieldsAleksey Kladov2021-05-171-0/+25
| | | | closes #8785
* minor: add missing testsAleksey Kladov2021-05-172-0/+52
|
* internal: scalable module structure for fixitsAleksey Kladov2021-05-178-766/+693
|
* minor: extract fix to fileAleksey Kladov2021-05-172-44/+196
|
* Merge #8853bors[bot]2021-05-162-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 TypeAliasLukas Wirth2021-05-162-4/+4
| |
* | internal: use mutable syntax trees when filling fieldsAleksey Kladov2021-05-162-6/+7
| |
* | Merge #8813bors[bot]2021-05-162-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 ByteStringsJade2021-05-132-2/+2
| | | | | | | | | | | | I am not confident that my added byte string parsing is right.
* | | Attach comments to ast::ImplLukas Wirth2021-05-152-1/+25
| | |
* | | simplifyLukas Wirth2021-05-152-10/+8
| |/ |/|
* | Address commentshi-rustin2021-05-143-3/+25
| |
* | Apply async semantic token modifier to async/await keywordshi-rustin2021-05-142-0/+11
| | | | | | | | Only async semantic token modifier
* | Merge #8823bors[bot]2021-05-131-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_cmarkLukas Wirth2021-05-131-4/+4
| |
* | Merge #8799bors[bot]2021-05-121-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 typesJade2021-05-111-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 crateJonas Schievink2021-05-112-23/+3
| |
* | Better node label/shapesJonas Schievink2021-05-111-3/+11
| |
* | Only include workspace cratesJonas Schievink2021-05-111-8/+30
| |
* | Update crates/ide/src/view_crate_graph.rsJonas Schievink2021-05-111-2/+2
| | | | | | Co-authored-by: bjorn3 <[email protected]>
* | Distinguish crates with identical nameJonas Schievink2021-05-111-1/+1
| |
* | Allow viewing the crate graph in a webviewJonas Schievink2021-05-113-0/+87
|/
* feat: auto-indent use tree listsJonas Schievink2021-05-101-0/+115
|
* feat: auto-insert `}` when typing `{` in use itemJonas Schievink2021-05-091-19/+131
|
* minor: fix test styleAleksey Kladov2021-05-091-12/+0
|
* fix: join lines doesn't add space before closing quoteAleksey Kladov2021-05-091-0/+30
|
* fix: join lines doesn't add space before closing quoteAleksey Kladov2021-05-091-9/+32
|
* Don't handle Self as a usage for TraitDefsLukas Wirth2021-05-081-22/+27
|
* Correctly support SelfType when searching for usagesLukas Wirth2021-05-082-3/+69
|
* fix: use raw idents in `make::name{_ref}` with keywordsJonas Schievink2021-05-071-0/+20
|
* Merge #8745bors[bot]2021-05-061-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 typesLukas Tobias Wirth2021-05-061-0/+12
| |
* | Merge #8674bors[bot]2021-05-051-0/+45
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 8674: fix for #8664: Emit folding ranges for multi-line where clauses r=matklad a=m5tfi #8664 I added a test that assert folding multi-line where clauses while leaving single lined one. Please, let me know if the code needs further improvements. Co-authored-by: m5tfi <[email protected]>
| * | remove unneeded `visited_where_clauses`m5tfi2021-05-051-11/+3
| | |
| * | add folding for where clausesm5tfi2021-04-301-0/+53
| | |
* | | simplifyLukas Tobias Wirth2021-05-051-3/+1
| |/ |/|
* | Merge #8719bors[bot]2021-05-042-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | 8719: Fix block comment intra doc link injection ranges r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Tobias Wirth <[email protected]>
| * | Fix block comment intra doc link injection rangesLukas Tobias Wirth2021-05-042-0/+4
| | |
* | | Small fixesKirill Bulatov2021-05-031-1/+1
| | |
* | | Tests addedKirill Bulatov2021-05-031-1/+0
| | |
* | | Add docs and use better namingKirill Bulatov2021-05-031-1/+3
| | |
* | | Resolve single assist onlyKirill Bulatov2021-05-035-18/+18
| | |
* | | Add a way to resolve certain assistsKirill Bulatov2021-05-035-68/+123
|/ /