aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_editor
Commit message (Collapse)AuthorAgeFilesLines
* move node at offset to aglo alreadyAleksey Kladov2019-01-083-9/+3
|
* assist to convert if-let to matchAleksey Kladov2019-01-083-1/+119
|
* itroduce trait for ast tokensAleksey Kladov2019-01-081-1/+1
|
* migrate ra_editor to rowan 0.2Aleksey Kladov2019-01-0811-96/+83
|
* Merge #442bors[bot]2019-01-072-5/+166
|\ | | | | | | | | | | | | | | | | | | | | | | 442: WIP: indent on typing dot r=matklad a=simonvandel Fixes #439. The unit test passes, but I can't seem to make VS code perform the action. The existing action on "=" doesn't work either on my end either though. I didn't add any smart way of detecting the current indent level. Any ideas how I would do that? Co-authored-by: Simon Vandel Sillesen <[email protected]>
| * my formatting tool locally messes things upSimon Vandel Sillesen2019-01-071-1/+1
| |
| * fix nitsSimon Vandel Sillesen2019-01-071-10/+8
| |
| * formattingSimon Vandel Sillesen2019-01-061-1/+1
| |
| * fix testsSimon Vandel Sillesen2019-01-061-10/+72
| |
| * add more testsSimon Vandel Sillesen2019-01-061-1/+54
| |
| * format codeSimon Vandel Sillesen2019-01-061-1/+1
| |
| * rename unused variableSimon Vandel Sillesen2019-01-061-1/+1
| |
| * indent on typing dot. fixes #439Simon Vandel Sillesen2019-01-052-4/+52
| |
* | split_import intention correctly works with use treesAleksey Kladov2019-01-061-1/+13
|/
* change visibility can change pub to pub(crate)Aleksey Kladov2019-01-051-2/+30
|
* split import assistAleksey Kladov2019-01-052-0/+47
|
* Merge #427bors[bot]2019-01-051-2/+58
|\ | | | | | | | | | | | | | | 427: Remove extra space when joining lines in use items r=matklad a=alanhdu Fixes #423. Co-authored-by: Alan Du <[email protected]>
| * Fix join_lines use_items right w/ and w/o commaAlan Du2019-01-051-3/+22
| |
| * Address join lines use items right }Alan Du2019-01-051-3/+21
| |
| * Remove extra space when joining lines in use itemsAlan Du2019-01-041-0/+19
| |
* | Rename ImplItem to ImplBlockFlorian Diebold2019-01-041-3/+3
|/ | | | | rustc uses the name ImplItem for items in impls, not the impl {} block itself, which could lead to confusion.
* add pub(crate) works for named fieldsAleksey Kladov2019-01-031-18/+37
|
* fix the testAleksey Kladov2019-01-031-5/+0
|
* more enterprisey assists APIAleksey Kladov2019-01-038-193/+277
|
* split assists over several filesAleksey Kladov2019-01-037-402/+487
|
* rename code-actions -> assistsAleksey Kladov2019-01-032-2/+2
|
* extend selection inside a string literal should select a word firstgfreezy2019-01-021-4/+20
|
* move symbols to ra_analysisAleksey Kladov2019-01-023-248/+131
|
* Merge #395bors[bot]2018-12-312-11/+7
|\ | | | | | | | | | | | | | | 395: generalize r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * generalize highlighting to work with nodesAleksey Kladov2018-12-311-3/+3
| |
| * generalize extend selection to work with nodesAleksey Kladov2018-12-311-8/+4
| |
* | Make modules with tests runnableJan Jansen2018-12-311-59/+1
|/ | | | Fixes #154
* avoid allocating an unnecessary intermediate vector & not traverse multiple ↵gfreezy2018-12-301-62/+72
| | | | times
* implement struct shorthand initialization diagnosticgfreezy2018-12-302-112/+268
|
* highlight macro identsAleksey Kladov2018-12-281-3/+32
|
* Bump itertools from 0.7.11 to 0.8.0dependabot[bot]2018-12-271-1/+1
| | | | | | | Bumps [itertools](https://github.com/bluss/rust-itertools) from 0.7.11 to 0.8.0. - [Release notes](https://github.com/bluss/rust-itertools/releases) - [Commits](https://github.com/bluss/rust-itertools/compare/0.7.11...0.8.0) Signed-off-by: dependabot[bot] <[email protected]>
* Merge #325bors[bot]2018-12-274-104/+545
|\ | | | | | | | | | | | | | | | | | | 325: implement translate_offset_with_edit r=matklad a=vemoo - Implement `translate_offset_with_edit` to resolve #105 - Add proptest impls for text, offsets and edits and use them in tests for `translate_offset_with_edit` and `LineIndex` - Added benchmark for `translate_offset_with_edit` Co-authored-by: Bernardo <[email protected]>
| * test code and dependency cleanupBernardo2018-12-252-4/+2
| |
| * change to `TextEdit` to avoid allocation and sortBernardo2018-12-251-47/+39
| | | | | | | | rename newline to step where applicable
| * remove benchmark and simplify testsBernardo2018-12-254-144/+41
| |
| * use new translate_offset_with_edit for TryConvWithBernardo2018-12-252-1/+2
| | | | | | | | doc comments
| * add line_index proptestBernardo2018-12-252-106/+132
| |
| * make criterion args work, small simplificationBernardo2018-12-253-18/+18
| |
| * fix arbitrary offset generation, col translation workingBernardo2018-12-252-39/+92
| |
| * column translation implemented but not quite working yetBernardo2018-12-253-50/+70
| |
| * iterate over `Step`s which are either, newlines or multibyte charsBernardo2018-12-252-26/+121
| |
| * simplify newline check with macroBernardo2018-12-251-20/+14
| |
| * remove slower impl, add benchmarksBernardo2018-12-254-199/+119
| |
| * final iteration, faster a bit simplerBernardo2018-12-251-171/+209
| | | | | | | | the main thing is we iterate over inserted newlines at once for each edit
| * simplified versionBernardo2018-12-251-0/+139
| |