Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #6613 | bors[bot] | 2020-11-24 | 1 | -1/+7 |
|\ | | | | | | | | | | | | | | | 6613: Don't assume DidChangeTextDocument paths exist r=SomeoneToIgnore a=mjibson Fixes #5933 Co-authored-by: Matt Jibson <[email protected]> | ||||
| * | Don't assume DidChangeTextDocument paths exist | Matt Jibson | 2020-11-23 | 1 | -1/+7 |
| | | | | | | | | Fixes #5933 | ||||
* | | Minor, import style | Aleksey Kladov | 2020-11-23 | 1 | -6/+5 |
| | | |||||
* | | Parse unsafe extern block | David Tolnay | 2020-11-23 | 3 | -3/+25 |
|/ | |||||
* | Don't wrap parens around expr in remove_dbg assist if its in conditions | Lukas Wirth | 2020-11-20 | 1 | -7/+64 |
| | |||||
* | Fill code_description for rust_analyzer diagnostics | Lukas Wirth | 2020-11-18 | 1 | -1/+8 |
| | |||||
* | update diagnostics test_data with code_description changes | Lukas Wirth | 2020-11-18 | 6 | -6/+108 |
| | |||||
* | Link clippy lint codes in diagnostics | Lukas Wirth | 2020-11-18 | 1 | -7/+22 |
| | |||||
* | Link rustc error codes in diagnostics | Lukas Wirth | 2020-11-18 | 1 | -3/+19 |
| | |||||
* | Merge #6553 | bors[bot] | 2020-11-17 | 21 | -96/+368 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6553: Auto imports in completion r=matklad a=SomeoneToIgnore ![completion](https://user-images.githubusercontent.com/2690773/99155339-ae4fb380-26bf-11eb-805a-655b1706ce70.gif) Closes https://github.com/rust-analyzer/rust-analyzer/issues/1062 but does not handle the completion order, since it's a separate task for https://github.com/rust-analyzer/rust-analyzer/issues/4922 , https://github.com/rust-analyzer/rust-analyzer/issues/4922 and maybe something else. 2 quirks in the current implementation: * traits are not auto imported during method completion If I understand the current situation right, we cannot search for traits by a **part** of a method name, we need a full name with correct case to get a trait for it. * VSCode (?) autocompletion is not as rigid as in Intellij Rust as you can notice on the animation. Intellij is able to refresh the completions on every new symbol added, yet VS Code does not query the completions on every symbol for me. With a few debug prints placed in RA, I've observed the following behaviour: after the first set of completion suggestions is received, next symbol input does not trigger a server request, if the completions contain this symbol. When more symbols added, the existing completion suggestions are filtered out until none are left and only then, on the next symbol it queries for completions. It seems like the only alternative to get an updated set of results is to manually retrigger it with Esc and Ctrl + Space. Despite the eerie latter bullet, the completion seems to work pretty fine and fast nontheless, but if you have any ideas on how to make it more smooth, I'll gladly try it out. Co-authored-by: Kirill Bulatov <[email protected]> | ||||
| * | Actually enable eager completion | Kirill Bulatov | 2020-11-17 | 1 | -1/+1 |
| | | |||||
| * | Avoid turning completion objects into builders | Kirill Bulatov | 2020-11-16 | 9 | -84/+117 |
| | | |||||
| * | Remove query aliases | Kirill Bulatov | 2020-11-16 | 3 | -10/+10 |
| | | |||||
| * | Properly fill the completion settings | Kirill Bulatov | 2020-11-16 | 1 | -4/+5 |
| | | |||||
| * | Fix the other test | Kirill Bulatov | 2020-11-16 | 2 | -3/+25 |
| | | |||||
| * | Qualify autoimport completion suggestions | Kirill Bulatov | 2020-11-16 | 2 | -16/+43 |
| | | |||||
| * | Better filter mod paths | Kirill Bulatov | 2020-11-16 | 2 | -26/+28 |
| | | |||||
| * | Move autoimport completion into the unqialified_path module | Kirill Bulatov | 2020-11-16 | 5 | -156/+139 |
| | | |||||
| * | Omit modules during autocompletion | Kirill Bulatov | 2020-11-16 | 1 | -13/+13 |
| | | |||||
| * | Tweak the search limits a bit | Kirill Bulatov | 2020-11-16 | 2 | -3/+6 |
| | | |||||
| * | Reuse existing element rendering | Kirill Bulatov | 2020-11-16 | 4 | -88/+74 |
| | | |||||
| * | Use imports_locator | Kirill Bulatov | 2020-11-16 | 6 | -86/+119 |
| | | |||||
| * | Rename the module | Kirill Bulatov | 2020-11-16 | 2 | -6/+2 |
| | | |||||
| * | Allow to configure the merge behavior | Kirill Bulatov | 2020-11-16 | 2 | -5/+6 |
| | | |||||
| * | Add braces to functions and macros | Kirill Bulatov | 2020-11-16 | 2 | -39/+99 |
| | | |||||
| * | Tidy up the tests | Kirill Bulatov | 2020-11-16 | 1 | -49/+15 |
| | | |||||
| * | Use rewriter api to add both changes | Kirill Bulatov | 2020-11-16 | 1 | -11/+51 |
| | | |||||
| * | Add imports in auto completion | Kirill Bulatov | 2020-11-16 | 13 | -25/+144 |
| | | |||||
* | | Merge #6582 | bors[bot] | 2020-11-17 | 4 | -12/+38 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6582: Fill the diagnostic code field in publish_diagnostics r=kjeremy a=Veykril Fixes #6580 Before: ![Code_znn6VgLLH9](https://user-images.githubusercontent.com/3757771/99408084-213f7100-28f0-11eb-8317-3f5c2b93313d.png) After: ![Code_c4jJsvzOEA](https://user-images.githubusercontent.com/3757771/99408096-23093480-28f0-11eb-9bb2-8ebf2fb3d5a1.png) Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | | Fill the diagnostic code field in publish_diagnostics | Lukas Wirth | 2020-11-17 | 4 | -12/+38 |
| | | | |||||
* | | | Simplify | Aleksey Kladov | 2020-11-17 | 1 | -54/+50 |
| | | | |||||
* | | | Make code more readable | Aleksey Kladov | 2020-11-17 | 1 | -186/+207 |
| | | | |||||
* | | | Minor | Aleksey Kladov | 2020-11-17 | 1 | -4/+4 |
| | | | |||||
* | | | Remove dead code | Aleksey Kladov | 2020-11-17 | 1 | -6/+0 |
| | | | |||||
* | | | Simplify | Aleksey Kladov | 2020-11-17 | 2 | -17/+15 |
| | | | |||||
* | | | Use standard code style for test fixtures | Aleksey Kladov | 2020-11-17 | 1 | -270/+270 |
| | | | |||||
* | | | **Unwrap Block** supports stand-alone blocks | Aleksey Kladov | 2020-11-17 | 1 | -1/+68 |
| | | | |||||
* | | | Simplify | Aleksey Kladov | 2020-11-17 | 1 | -3/+1 |
| | | | |||||
* | | | Assist target should point at *existing* code | Aleksey Kladov | 2020-11-17 | 1 | -1/+1 |
| | | | |||||
* | | | Add **Ignore Test** assist | Aleksey Kladov | 2020-11-17 | 6 | -18/+80 |
| | | | |||||
* | | | Merge #6571 | bors[bot] | 2020-11-17 | 3 | -108/+75 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6571: Cleanup project model r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | | Remove needless alloc | Aleksey Kladov | 2020-11-17 | 1 | -1/+1 |
| | | | | |||||
| * | | | Compress code | Aleksey Kladov | 2020-11-17 | 2 | -66/+42 |
| | | | | |||||
| * | | | simplify | Aleksey Kladov | 2020-11-17 | 1 | -41/+32 |
| | |/ | |/| | |||||
* / | | Latest LSP 3.16 protocol | kjeremy | 2020-11-16 | 10 | -27/+26 |
|/ / | | | | | | | Pulls in https://github.com/gluon-lang/lsp-types/pull/186 | ||||
* / | Prepare to recompute completions on every keystroke | Aleksey Kladov | 2020-11-16 | 1 | -1/+2 |
|/ | | | | | If we set `is_incomplete: true`, VS Code will re-query completions after every keypress. | ||||
* | Merge #6563 | bors[bot] | 2020-11-16 | 1 | -0/+46 |
|\ | | | | | | | | | | | | | | | 6563: Don't complete keywords in struct initializers r=matklad a=Veykril Fixes #6562 Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Don't complete keywords in struct literals | Lukas Wirth | 2020-11-16 | 1 | -0/+46 |
| | | |||||
* | | Merge #6558 | bors[bot] | 2020-11-16 | 3 | -0/+26 |
|\ \ | |/ |/| | | | | | | | | | | | | | 6558: format string highlighting: handle hex + debug type specifier r=matklad a=ruabmbua Should fix https://github.com/rust-analyzer/rust-analyzer/issues/6427 Co-authored-by: Roland Ruckerbauer <[email protected]> | ||||
| * | format string highlighting: handle hex + debug type specifier | Roland Ruckerbauer | 2020-11-15 | 3 | -0/+26 |
| | |