aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/ /
* | fix: don't duplicate Progerss::Finised for cache primingAleksey Kladov2021-05-021-0/+1
| |
* | internal: fix naming polarityAleksey Kladov2021-04-301-3/+3
|/ | | | | Type Constructors have *parameters*, when they are substituted with type *arguments*, we have a type.
* Fixed formattingBastian Kersting2021-04-261-1/+1
|
* Added mutable semantic token modifier for &mut self methodsBastian Kersting2021-04-262-4/+9
|
* Check more carefully for cases where a rename can't be doneDanny Zhu2021-04-252-6/+105
| | | | | | | | | | | Attempting to rename an element of a tuple field would previously replace the type with the new name, which doesn't make sense; now it fails instead. The check is done in both `prepare_rename` and `rename` so that the case is caught before the user is prompted for a new name. Some other existing failure cases are also now additionally checked in `prepare_rename`.
* Simplify highlight token match guardsLukas Wirth2021-04-232-102/+92
|
* Sort HlMod variants and ALL constLukas Wirth2021-04-236-46/+45
|
* Tag `yield` and `await` as ControlFlow in semantic highlightingLukas Wirth2021-04-232-5/+13
|
* fix: no more Registering progress handler for token rustAnalyzer/Indexing ↵Aleksey Kladov2021-04-201-2/+1
| | | | failed.
* Merge #8586bors[bot]2021-04-191-14/+9
|\ | | | | | | | | | | | | | | 8586: Replace SyntaxRewriter usage with ted in eager::eager_macro_recur r=Veykril a=Veykril Co-authored-by: Lukas Wirth <[email protected]>
| * Replace SyntaxRewriter with ted in exppand_macro::expand_macro_recurLukas Wirth2021-04-191-14/+9
| |
* | Merge #8582bors[bot]2021-04-192-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | 8582: Fix typo: comparision -> comparison r=kjeremy a=stanciuadrian Closes #8576 Co-authored-by: Adrian Stanciu <[email protected]>
| * | Fix typo: comparision -> comparisonAdrian Stanciu2021-04-192-3/+3
| |/
* / Support crates/module roots in external_docsLukas Wirth2021-04-191-17/+41
|/
* Check for rust doc code attributes like rustdoc doesLukas Wirth2021-04-192-23/+3
|
* Don't require all doc fences to be valid for identifying rust codeLukas Wirth2021-04-191-1/+3
|
* Merge #8540bors[bot]2021-04-191-0/+6
|\ | | | | | | | | | | | | | | | | | | 8540: Prevent being able to rename items that are not part of the workspace r=Veykril a=Veykril This change causes renames that happen on items coming from crates outside the workspace to fail. I believe this should be the right approach, but usage of cargo's workspace might not be entirely correct for preventing these kinds of refactoring from touching things they shouldn't. I'm not entirely sure? cc #6623, this is one of the bigger footguns when it comes to refactoring, especially in combination with import aliases people tend to rename items coming from a crates dependency which this prevents. Co-authored-by: Lukas Wirth <[email protected]>
| * Prevent being able to rename items that are not part of the workspaceLukas Wirth2021-04-181-0/+6
| |
* | Accept `E<error_number>` notation in doctestsChayim Refael Friedman2021-04-181-2/+8
| | | | | | | | | | | | | | ```compile_fail,E0000 ``` The code was stolen from rustdoc at https://github.com/rust-lang/rust/blob/392ba2ba1a7d6c542d2459fb8133bebf62a4a423/src/librustdoc/html/markdown.rs#L866-L867
* | Include path in `unresolved-macro-call` diagnosticJonas Schievink2021-04-161-1/+1
|/
* Move cursor position when using item moversJonas Schievink2021-04-131-32/+68
|
* internal: follow test style guide in typing.rsJonas Schievink2021-04-131-96/+104
|
* Merge #8354bors[bot]2021-04-135-17/+72
|\ | | | | | | | | | | | | | | 8354: Distinguishing between different operators in semantic highlighting r=matklad a=chetankhilosiya Co-authored-by: Chetan Khilosiya <[email protected]>
| * 8279: Fix the not operator use and test case fix.Chetan Khilosiya2021-04-083-10/+3
| |
| * 8279: Added initial implementation forChetan Khilosiya2021-04-083-15/+77
| | | | | | | | Operator semantic highlighting.
* | Merge #8489bors[bot]2021-04-131-11/+199
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8489: Indent block expressions on enter r=matklad a=jonas-schievink This improves on https://github.com/rust-analyzer/rust-analyzer/pull/8388 by also indenting the created block expression on enter. ![on enter](https://user-images.githubusercontent.com/1786438/114444123-cb38d600-9bce-11eb-8af2-8e8d1c0f9908.gif) Co-authored-by: Jonas Schievink <[email protected]>
| * | Add a cov_markJonas Schievink2021-04-121-0/+2
| | |
| * | Simplify multiline checkJonas Schievink2021-04-121-18/+4
| | |
| * | Indent block expressions on enterJonas Schievink2021-04-121-12/+212
| | |
* | | Merge #8500bors[bot]2021-04-131-81/+17
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8500: internal: fix flakiness of accidentally quadratic test r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | internal: fix flakiness of accidentally quadratic testAleksey Kladov2021-04-131-81/+17
| | | |
* | | | internal: don't use `#[should_panic]` for testsAleksey Kladov2021-04-131-8/+10
|/ / /
* | | feat: improve performance by delaying computation of fixes for diagnosticsAleksey Kladov2021-04-134-38/+70
| | |
* | | Ensure that listing&resolving code actions use the same set of actionsAleksey Kladov2021-04-131-0/+28
| | |
* | | Fix typo: liner -> linearJakub Kądziołka2021-04-121-1/+1
|/ / | | | | :see_no_evil:
* | internal: prepare for lazy diagnosticsAleksey Kladov2021-04-125-66/+83
| |
* | Support macros in pattern positionJonas Schievink2021-04-111-0/+26
| |