aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
| |
* | Let's try testing for "is not quadratic" conditionAleksey Kladov2021-04-101-0/+96
| |
* | Shrink `unlinked-file` diagnostic to 3 charactersJonas Schievink2021-04-091-7/+9
| |
* | Merge #8429bors[bot]2021-04-091-0/+20
|\ \ | | | | | | | | | | | | | | | | | | | | | 8429: 8425: Added documentation for on enter covering //! doc comments. r=jonas-schievink a=chetankhilosiya Also added passing test case. Co-authored-by: Chetan Khilosiya <[email protected]>
| * | 8425: Added documentation for on enter covering //! doc comments.Chetan Khilosiya2021-04-081-0/+20
| |/ | | | | | | Also added passing test case.
* / 8024: Added the trait modifier for assoc types.Chetan Khilosiya2021-04-081-2/+12
|/
* Merge #8421bors[bot]2021-04-081-13/+30
|\ | | | | | | | | | | | | | | 8421: Reduce allocations in "Expand macro" formatter r=edwin0cheng a=lnicola Co-authored-by: LaurenČ›iu Nicola <[email protected]>
| * Reduce allocations in Expand macroLaurențiu Nicola2021-04-081-13/+30
| |
* | Emit folding ranges for multiline array literalsLukas Wirth2021-04-071-0/+17
| |
* | Document `}` insertionJonas Schievink2021-04-071-0/+1
| |
* | Make better use of `stdx::always`Jonas Schievink2021-04-071-7/+21
| |
* | Rewrite, reparse modified fileJonas Schievink2021-04-071-49/+114
| |
* | simplifyJonas Schievink2021-04-071-8/+6
| |
* | Use stdx::alwaysJonas Schievink2021-04-071-5/+5
| |
* | Complete braces more aggressivelyJonas Schievink2021-04-071-20/+35
| |
* | Autoclose blocks when typing `{`Jonas Schievink2021-04-071-1/+46
|/
* Add space after lifetimeEmmanuel Thompson2021-04-071-0/+3
| | | | In macro expansion, this lead to invalid syntax
* Merge #8245bors[bot]2021-04-056-155/+167
|\ | | | | | | | | | | | | | | | | | | 8245: Properly resolve intra doc links in hover and goto_definition r=matklad a=Veykril Unfortunately involves a bit of weird workarounds due to pulldown_cmark's incorrect lifetimes on `BrokenLinkCallback`... I should probably open an issue there asking for the fixes to be pushed to a release since they already exist in the repo for quite some time it seems. Fixes #8258, Fixes #8238 Co-authored-by: Lukas Wirth <[email protected]>
| * Replace Range<usize> usage with TextRangeLukas Wirth2021-03-301-4/+13
| |
| * Use new new docs string source mapping in goto_def and hoverLukas Wirth2021-03-304-119/+73
| |
| * Implement basic Documentation source to syntax range mappingLukas Wirth2021-03-304-34/+42
| |
| * Properly resolve intra doc links in hover and goto_definitionLukas Wirth2021-03-303-39/+80
| |
* | Add and start using TraitRef and ProjectionTy buildersFlorian Diebold2021-04-041-1/+1
| |
* | Fix joinLines panic if run on the empty last lineEdwin Cheng2021-04-031-2/+16
| |
* | Only populate prelude for crate-level DefMapsJonas Schievink2021-04-021-0/+42
| |
* | Merge #8283bors[bot]2021-04-011-0/+63
|\ \ | | | | | | | | | | | | | | | | | | | | | 8283: Resolve associated types r=flodiebold a=Veykril Prior we were only resolving paths until the first type was found, then discarding the result if the path wasn't fully consumed. That of course causes associated types to not resolve. Fixes #5003 Co-authored-by: Lukas Wirth <[email protected]>
| * | Resolve associated types with type anchorsLukas Wirth2021-04-011-1/+22
| | |
| * | Resolve associated typesLukas Wirth2021-04-011-0/+42
| | |
* | | Additional syntax highlighting screenshot in manualAyomide Bamidele2021-03-311-0/+1
| | |
* | | Gif of "let = " typing assistAyomide Bamidele2021-03-311-0/+1
| | |
* | | Gifs and screenshots for features in manual (syntax highlighting and typing)Ayomide Bamidele2021-03-312-0/+4
|/ /
* | Merge #8267bors[bot]2021-03-3120-0/+37
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8267: Adding gifs and screenshots for features in manual r=matklad a=MozarellaMan For #6539 This includes most of gif or screenshot examples of most items in the "Features" header. With the exceptions of: - **On Typing Assists** - couldn't get it to work for a demo, I'm probably missing something? - **Structural search and replace** - looked to be already a visual example of the feature - **Workspace symbol** - wasn't sure how best to show this, all of the examples maybe? Also wasn't sure of the best code example to show it off - **Semantic Syntax Highlighting** - seemed obvious enough to not need a screenshot, but I could easily add this All the gifs/pngs are hosted in this [comment](https://github.com/rust-analyzer/rust-analyzer/issues/6539#issuecomment-809574840). Please let me know if any of them aren't suitable (and why) and I'll improve it! Or if you don't like the theme/font Co-authored-by: Ayomide Bamidele <[email protected]>