Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'master' of github.com:rust-analyzer/rust-analyzer | Benjamin Coenen | 2020-04-18 | 7 | -18/+140 |
|\ | |||||
| * | Merge #4026 | bors[bot] | 2020-04-18 | 1 | -1/+10 |
| |\ | | | | | | | | | | | | | | | | | | | | | | 4026: Omit more parameter hints in the presence of underscores r=matklad a=lnicola Fixes #4017. Co-authored-by: Laurențiu Nicola <[email protected]> | ||||
| | * | Omit more parameter hints in the presence of underscores | Laurențiu Nicola | 2020-04-18 | 1 | -1/+10 |
| | | | |||||
| * | | Fix incorrect order of syntax highlight ranges | Leander Tentrup | 2020-04-17 | 2 | -1/+14 |
| |/ | |||||
| * | Don\t suggest import itself as a completion for import | Aleksey Kladov | 2020-04-17 | 2 | -1/+40 |
| | | |||||
| * | Merge #4010 | bors[bot] | 2020-04-17 | 1 | -6/+66 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | 4010: Fix handling of ranges in diagnostics r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| | * | Correctly highlight ranges of diagnostics from macros | Aleksey Kladov | 2020-04-17 | 1 | -6/+66 |
| | | | | | | | | | | | | closes #2799 | ||||
| * | | Better snippet when completing trait method | Aleksey Kladov | 2020-04-17 | 1 | -9/+10 |
| |/ | |||||
* | | feat: improve dot completions with scoring | Benjamin Coenen | 2020-04-17 | 1 | -5/+1 |
| | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | ||||
* | | Merge branch 'master' of github.com:rust-analyzer/rust-analyzer | Benjamin Coenen | 2020-04-17 | 1 | -1/+1 |
|\| | |||||
| * | Don't expose SyntaxNodePtr impl details | Aleksey Kladov | 2020-04-16 | 1 | -1/+1 |
| | | |||||
* | | feat: improve dot completions with scoring | Benjamin Coenen | 2020-04-17 | 4 | -77/+52 |
| | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | ||||
* | | feat: improve dot completions with scoring | Benjamin Coenen | 2020-04-16 | 6 | -108/+91 |
| | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | ||||
* | | feat: improve dot completions in a struct literal expression | Benjamin Coenen | 2020-04-15 | 4 | -31/+196 |
| | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | ||||
* | | Merge branch 'master' of github.com:rust-analyzer/rust-analyzer | Benjamin Coenen | 2020-04-14 | 5 | -11/+37 |
|\| | |||||
| * | Merge #3955 | bors[bot] | 2020-04-11 | 4 | -5/+22 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3955: Align grammar for record patterns and literals r=matklad a=matklad The grammar now looks like this [name_ref :] pat bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| | * | Align grammar for record patterns and literals | Aleksey Kladov | 2020-04-11 | 4 | -5/+22 |
| | | | | | | | | | | | | | | | | | | The grammar now looks like this [name_ref :] pat | ||||
| * | | Remove #[should_panic] from call_info tests | Jeremy Kolb | 2020-04-11 | 1 | -6/+15 |
| |/ | |||||
* | | Improve autocompletion by looking on the type and name, change ↵ | Benjamin Coenen | 2020-04-12 | 3 | -26/+96 |
| | | | | | | | | | | | | implementation, include sort in Completions struct Signed-off-by: Benjamin Coenen <[email protected]> | ||||
* | | Improve autocompletion by looking on the type and name | Benjamin Coenen | 2020-04-11 | 10 | -41/+103 |
|\| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]> | ||||
| * | Make records grammar more orthogonal | Aleksey Kladov | 2020-04-11 | 2 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | We used name [: expr] grammar before, now it is [name :] expr which makes things simpler | ||||
| * | Merge pull request #3910 from lnicola/fn-named-param-hint | Aleksey Kladov | 2020-04-11 | 1 | -5/+12 |
| |\ | | | | | | | Hide parameter hints for single-argument functions with the same name | ||||
| | * | Hide parameter hints for single-argument functions with the same name | Laurențiu Nicola | 2020-04-09 | 1 | -5/+12 |
| | | | |||||
| * | | Rename some tokens | Aleksey Kladov | 2020-04-10 | 2 | -6/+6 |
| | | | |||||
| * | | Semicolon token | Aleksey Kladov | 2020-04-10 | 1 | -1/+1 |
| | | | |||||
| * | | Simpler acessors for keywords | Aleksey Kladov | 2020-04-09 | 2 | -3/+3 |
| | | | |||||
| * | | Drop needless trait | Aleksey Kladov | 2020-04-09 | 1 | -14/+16 |
| |/ | |||||
| * | Merge #3901 | bors[bot] | 2020-04-09 | 1 | -6/+46 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3901: Add more heuristics for hiding obvious param hints r=matklad a=IceSentry This will now hide `value`, `pat`, `rhs` and `other`. These words were selected from the std because they are used in commonly used functions with only a single param and are obvious by their use. It will also hide the hint if the passed param **starts** or end with the param_name. Maybe we could also split on '_' and check if one of the string is the param_name. I think it would be good to also hide `bytes` if the type is `[u8; n]` but I'm not sure how to get the param type signature. Closes #3900 Co-authored-by: IceSentry <[email protected]> | ||||
| | * | use .expr() to remove ref | IceSentry | 2020-04-09 | 1 | -5/+10 |
| | | | |||||
| | * | clean up param hint checking | IceSentry | 2020-04-09 | 1 | -18/+18 |
| | | | |||||
| | * | better `&mut ` and `&` matching | IceSentry | 2020-04-09 | 1 | -6/+6 |
| | | | |||||
| | * | ignore `&mut ` and `&` when checking params | IceSentry | 2020-04-09 | 1 | -3/+13 |
| | | | |||||
| | * | remove TODO | IceSentry | 2020-04-08 | 1 | -1/+0 |
| | | | |||||
| | * | Add more heuristics for hiding obvious param hints | IceSentry | 2020-04-08 | 1 | -4/+30 |
| | | | | | | | | | | | | | | | | | | | | | This will now hide "value", "pat", "rhs" and "other" These words were selected from the std because they are used in common functions with only a single param and are obvious by their use. I think it would be good to also hide "bytes" if the type is `[u8; n]` but I'm not sure how to get the param type signature It will also hide the hint if the passed param starts or end with the param_name | ||||
| * | | Be consistent about token accesors | Aleksey Kladov | 2020-04-09 | 3 | -3/+6 |
| |/ | |||||
* / | Improve autocompletion by looking on the type and name | Benjamin Coenen | 2020-04-11 | 6 | -30/+194 |
|/ | | | | Signed-off-by: Benjamin Coenen <[email protected]> | ||||
* | Merge #3826 | bors[bot] | 2020-04-08 | 5 | -51/+148 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | 3826: Flatten nested highlight ranges during DFS traversal r=matklad a=ltentrup Implements the flattening of nested highlights from #3447. There is a caveat: I needed to add `Clone` to `HighlightedRange` to split highlight ranges ~and the nesting does not appear in the syntax highlighting test (it does appear in the accidental-quadratic test but there it is not checked against a ground-truth)~. I have added a test case for the example mentioned in #3447. Co-authored-by: Leander Tentrup <[email protected]> | ||||
| * | Simplify HTML highlighter and add test case for highlight_injection logic | Leander Tentrup | 2020-04-06 | 5 | -59/+97 |
| | | |||||
| * | Flatten nested highlight ranges during DFS traversal | Leander Tentrup | 2020-04-03 | 2 | -6/+65 |
| | | |||||
* | | Move computation of missing fields into hir | Aleksey Kladov | 2020-04-07 | 1 | -50/+9 |
| | | |||||
* | | Add functional update test | Aleksey Kladov | 2020-04-07 | 1 | -0/+33 |
| | | |||||
* | | Fix names of test modules | Aleksey Kladov | 2020-04-07 | 1 | -2/+2 |
| | | |||||
* | | Merge #3878 | bors[bot] | 2020-04-07 | 4 | -7/+52 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3878: A more precise panic macro r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | A more precise panic macro | Aleksey Kladov | 2020-04-07 | 1 | -1/+1 |
| | | | |||||
| * | | Don't insert !() if there's already some | Aleksey Kladov | 2020-04-07 | 3 | -3/+45 |
| | | | |||||
| * | | Reorder imports | Aleksey Kladov | 2020-04-07 | 1 | -3/+6 |
| | | | |||||
* | | | missing match arms diagnostic | Josh Mcguigan | 2020-04-07 | 1 | -1/+9 |
|/ / | |||||
* | | Better naming for scope completion | Aleksey Kladov | 2020-04-07 | 3 | -4/+4 |
| | | |||||
* | | Better naming for path completion | Aleksey Kladov | 2020-04-07 | 3 | -4/+4 |
| | | |||||
* | | Merge pull request #3866 from lnicola/fewer-braces | Aleksey Kladov | 2020-04-07 | 7 | -46/+46 |
|\ \ | | | | | | | Fix unnecessary braces warnings |