aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* WIP: Expand signature helpJeremy Kolb2019-10-282-8/+60
| | | | This is hacky but works for tuple structs. Proof of concept.
* Merge #2097bors[bot]2019-10-281-8/+32
|\ | | | | | | | | | | | | | | | | | | 2097: Be more precise with function signatures r=matklad a=kjeremy Finds the closest call expr. Fixes #2093 Co-authored-by: Jeremy Kolb <[email protected]>
| * Be more precise with function signaturesJeremy Kolb2019-10-271-8/+32
| | | | | | | | Fixes #2093
* | Preserve whitespace at the end of doc commentsJeremy Kolb2019-10-272-4/+27
| | | | | | | | | | | | | | | | Whitespace can have special meaning in markdown. For instance ending a line with three spaces will render a new line. Note that this behavior diverges from RLS. Fixes #1997
* | Merge #2099bors[bot]2019-10-271-4/+35
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2099: Fix panic on raw string assist r=matklad a=aee11 Strings that do not contain two quotation marks would cause a slice indexing panic because `find_usual_string_range` would return a range that only contained a single quotation mark. Panic example: ``` fn main() { let s = "<|> } ``` I noticed a lot of panics from the `make_raw_string` assist while working on another issue today. Co-authored-by: Alexander Elís Ebenesersson <[email protected]>
| * | Fix panic on raw string assistAlexander Elís Ebenesersson2019-10-271-4/+35
| | | | | | | | | | | | | | | | | | | | | | | | Strings that do not contain two quotation marks would cause a slice indexing panic because code was assuming `find_usual_string_range` would return a string with two quotes, but it would incorrectly also return text ranges containing only a single quote.
* | | further simplify assistsAleksey Kladov2019-10-272-82/+37
| | |
* | | move all assists to use generated docsAleksey Kladov2019-10-272-5/+31
| | |
* | | simplify AssistCtx APIAleksey Kladov2019-10-2722-160/+105
| | | | | | | | | | | | | | | We never actually use ability to create multiple actions out of a single context
* | | simplifyAleksey Kladov2019-10-271-30/+13
| |/ |/|
* | Merge #2090bors[bot]2019-10-272-101/+101
|\ \ | | | | | | | | | | | | | | | | | | | | | 2090: move public stuff to top r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | move public stuff to topAleksey Kladov2019-10-271-26/+26
| | |
| * | rename auto_import -> add_importAleksey Kladov2019-10-272-75/+75
| |/ | | | | | | We are long way from auto imports at the moment
* | use new api for flip_trait_bound assistAleksey Kladov2019-10-273-12/+46
| |
* | Add tests for the trait bound flip assist.Wesley Norris2019-10-271-0/+76
| | | | | | | | Co-authored-by: vlthr <[email protected]>
* | Fixes #2054.Wesley Norris2019-10-272-0/+34
| | | | | | | | This adds the `flip_trait_bound` assist which allows for the swapping of two trait bounds in a trait list that are next to each other.
* | extend selection in trait bound extends to plusAlexander Elís Ebenesersson2019-10-271-10/+72
|/ | | | | | When multiple traits bounds are present, expanded selection from a single trait bound will include the nearest plus sign (and whitespace after) before including the whole trait bound.
* remove relative_path_buf workaroundAleksey Kladov2019-10-272-14/+4
| | | | The upstream problem was fixed with the change to 1.0
* document almost all assistsAleksey Kladov2019-10-275-9/+240
|
* lightly document assist_ctx moduleAleksey Kladov2019-10-271-1/+1
|
* use more consistent namingAleksey Kladov2019-10-2717-18/+18
| | | | | I think this is the first time I use global rename for rust-analyzer itself :-)
* extract assist helper for getting a specific tokenAleksey Kladov2019-10-274-15/+12
|
* raw string assists work in macrosAleksey Kladov2019-10-271-49/+58
|
* document some more assistsAleksey Kladov2019-10-274-6/+186
|
* use unicode bar for drawing the cursorAleksey Kladov2019-10-262-2/+2
|
* support range selection in assist docsAleksey Kladov2019-10-264-9/+68
|
* avoid TextEditorBuilder for simple editsAleksey Kladov2019-10-265-37/+21
|
* check style for assist docsAleksey Kladov2019-10-268-11/+106
|
* use correct spacing for enum patternAleksey Kladov2019-10-263-5/+5
|
* document a couple of assistsAleksey Kladov2019-10-263-2/+74
|
* add blank lines for readabilityAleksey Kladov2019-10-265-0/+10
|
* Upgrade Chalk (without using its dyn/impl Trait support)Florian Diebold2019-10-263-46/+76
|
* generate more assists docsAleksey Kladov2019-10-257-20/+262
|
* Merge #2069bors[bot]2019-10-254-24/+73
|\ | | | | | | | | | | | | | | 2069: auto-generate assists docs and tests r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * auto-generate assists docs and testsAleksey Kladov2019-10-254-24/+73
| |
* | Merge #2066bors[bot]2019-10-256-278/+358
|\ \ | | | | | | | | | | | | | | | | | | | | | 2066: insert space after `->` r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | disable the new typing handler for `->`Aleksey Kladov2019-10-251-0/+9
| | | | | | | | | | | | It doesn't actually work with LSP
| * | insert space after `->`Aleksey Kladov2019-10-253-112/+119
| | |
| * | refactor typing_handlersAleksey Kladov2019-10-252-35/+41
| | |
| * | introduce SingleFileChangeAleksey Kladov2019-10-253-35/+64
| | |
| * | move source change to a dedicated fileAleksey Kladov2019-10-252-95/+104
| | |
| * | make typing infra slightly more extensibleAleksey Kladov2019-10-253-54/+74
| |/
* / Specify working chalk revisions in manifestLaurențiu Nicola2019-10-251-3/+3
|/
* document feature flagsAleksey Kladov2019-10-251-5/+9
|
* bump instakjeremy2019-10-242-2/+2
|
* Merge #2059bors[bot]2019-10-245-35/+135
|\ | | | | | | | | | | | | | | 2059: for highlighting, search only the current file r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * for highlighting, search only the current fileAleksey Kladov2019-10-245-29/+112
| |
| * add search scope stuctAleksey Kladov2019-10-241-13/+30
| |
* | add --with-deps option to analysis-statsAleksey Kladov2019-10-242-8/+10
|/
* add some profiling callsAleksey Kladov2019-10-243-0/+10
|