aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/completion/completion_context.rs
Commit message (Collapse)AuthorAgeFilesLines
* Correctly complete items with leading underscoreLeón Orell Valerian Liehr2020-10-031-2/+3
|
* Improve checks for postfix suggestionsIgor Aleksanov2020-10-021-9/+0
|
* Add postfix completion for format-like string literalsIgor Aleksanov2020-10-021-1/+10
|
* Merge #5846bors[bot]2020-09-241-1/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5846: Add references to fn args during completion r=matklad a=adamrk When completing a function call, if there is an argument taken as a ref or mut ref which matches the name and type of a variable in scope, we will insert a `&` or `&mut` when filling in the function arguments. This addresses https://github.com/rust-analyzer/rust-analyzer/issues/5449. E.g. ```rust fn foo(x: &i32) {} fn main() { let x = 5; foo # completing foo here generates `foo(&x)` now instead of `foo(x)` } ``` Co-authored-by: adamrk <[email protected]>
| * Collect locals in contextadamrk2020-09-021-1/+9
| |
* | Fix the testsKirill Bulatov2020-09-091-3/+5
| |
* | Complete semicolon when neededKirill Bulatov2020-09-091-4/+4
| |
* | Properly reacto to keywordsKirill Bulatov2020-09-091-2/+5
| |
* | Move most of the logic into the completion moduleKirill Bulatov2020-09-091-2/+3
| |
* | Finally cretae the mod completion moduleKirill Bulatov2020-09-091-17/+1
| |
* | Properly handle special cases (binaries, mod.rs)Kirill Bulatov2020-09-091-3/+1
| |
* | Exclude special filesKirill Bulatov2020-09-091-3/+0
| |
* | Happy path implementedKirill Bulatov2020-09-091-1/+1
| |
* | Better APIKirill Bulatov2020-09-091-5/+4
| |
* | First steps for mod<|> completionKirill Bulatov2020-09-091-2/+23
|/
* Complete `pub` in fieldsAleksey Kladov2020-08-251-3/+7
|
* :arrow_up: ungrammarAleksey Kladov2020-08-211-1/+1
|
* Rename hypothetical -> speculativeAleksey Kladov2020-08-141-1/+1
|
* Remove Hygiene from completionAleksey Kladov2020-08-131-38/+53
|
* MinorAleksey Kladov2020-08-131-6/+12
|
* Rename ra_ide -> ideAleksey Kladov2020-08-131-0/+465