aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/assists/raw_string.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix casingJeremy Kolb2020-01-141-4/+4
|
* More UI friendly labelsJeremy Kolb2020-01-141-3/+3
|
* Add ast for plain and raw string literalsAleksey Kladov2019-11-161-46/+13
|
* Some clippy fixeskjeremy2019-10-301-1/+1
|
* 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.
* | simplify AssistCtx APIAleksey Kladov2019-10-271-16/+12
|/ | | | | We never actually use ability to create multiple actions out of a single context
* document almost all assistsAleksey Kladov2019-10-271-2/+60
|
* extract assist helper for getting a specific tokenAleksey Kladov2019-10-271-12/+5
|
* raw string assists work in macrosAleksey Kladov2019-10-271-49/+58
|
* Merge #1922bors[bot]2019-10-081-18/+92
|\ | | | | | | | | | | | | | | 1922: feat(assists): Make raw string unescaped r=matklad a=Geobert Last piece of https://github.com/rust-analyzer/rust-analyzer/issues/1730 Co-authored-by: Geobert Quach <[email protected]>
| * feat(assists): Address some PR commentsGeobert Quach2019-10-041-25/+24
| |
| * feat(assists): Even smarter with hashesGeobert Quach2019-10-011-12/+44
| | | | | | | | Count `"#*` streak only, extract the counting in a function, unit test this function
| * feat(assists): Be smart about hashesGeobert Quach2019-09-301-1/+36
| | | | | | | | Add max_hashes_streak + 1 hashes to the raw string
| * feat(assists): Keep only one version of make_raw_stringGeobert Quach2019-09-291-82/+13
| |
| * feat(assists): Make raw string unescapedGeobert Quach2019-09-261-0/+77
| |
* | Added test for check doc strings in crates.Alexander Andreev2019-09-301-0/+2
|/ | | | #1856
* move assists to subdirAleksey Kladov2019-09-251-0/+370