aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/completion
Commit message (Collapse)AuthorAgeFilesLines
* Add AssistConfigAleksey Kladov2020-05-191-1/+1
|
* Fix completion and hover for module and function of same nameHasan Ali2020-05-161-1/+29
|
* Prioritize locals with correct typesAleksey Kladov2020-05-142-5/+55
|
* add more specific match postfix for Result and OptionBenjamin Coenen2020-05-121-15/+43
| | | | Signed-off-by: Benjamin Coenen <[email protected]>
* Merge #4423bors[bot]2020-05-111-0/+26
|\ | | | | | | | | | | | | | | 4423: add tests module snippet r=bnjjj a=bnjjj Request from a friend coming from intellij Rust Co-authored-by: Benjamin Coenen <[email protected]>
| * add tests module snippetBenjamin Coenen2020-05-111-0/+8
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
| * add tests module snippetBenjamin Coenen2020-05-111-0/+18
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
* | add if let and while let postfix for Option and ResultBenjamin Coenen2020-05-101-38/+44
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
* | add if let and while let postfix for Option and Result #4348Benjamin Coenen2020-05-071-1/+199
|/ | | | Signed-off-by: Benjamin Coenen <[email protected]>
* MinorAleksey Kladov2020-05-061-1/+2
|
* Rename AtomTextEdit -> IndelAleksey Kladov2020-05-052-4/+4
|
* Rename ImplItem to AssocItemEdwin Cheng2020-05-052-21/+27
|
* Remove false positive attr compleitonsAleksey Kladov2020-05-042-4/+40
|
* Qualify ast typesAleksey Kladov2020-05-041-6/+5
|
* Cleanup importsAleksey Kladov2020-05-041-4/+6
|
* Fix derive argument parsingKirill Bulatov2020-05-021-26/+40
|
* Propose custom derives in completionKirill Bulatov2020-05-021-8/+32
|
* Complete standard derivesKirill Bulatov2020-05-022-16/+245
|
* Introduce EffectExprAleksey Kladov2020-05-021-1/+1
|
* if let -> matchJonas Schievink2020-04-291-4/+3
|
* Complete assoc. items on type parametersJonas Schievink2020-04-291-11/+262
|
* Better filtering of qualified enum variants in completionAleksey Kladov2020-04-292-9/+49
|
* Complete union fields after dotJonas Schievink2020-04-281-0/+38
|
* Precompute expected type during completionAleksey Kladov2020-04-263-35/+44
|
* Fix broken testJonas Schievink2020-04-251-1/+1
|
* Don't add call parens when an fn type is expectedJonas Schievink2020-04-251-0/+56
|
* Rename StructField -> FieldAleksey Kladov2020-04-251-6/+1
|
* text-size 1.0.0Aleksey Kladov2020-04-251-6/+6
|
* Convert tests to text-sizeAleksey Kladov2020-04-2513-790/+789
|
* Convert code to text-sizeAleksey Kladov2020-04-254-14/+15
|
* Merge #4128bors[bot]2020-04-241-1/+52
|\ | | | | | | | | | | | | | | 4128: Include correct item path for variant completions r=matklad a=jonas-schievink The test would previously suggest `E::V`, which is not enough to name the variant as the enum is in a module. Now it correctly suggests the full path `m::E::V`. Co-authored-by: Jonas Schievink <[email protected]>
| * Include correct item path for variant completionsJonas Schievink2020-04-241-1/+52
| |
* | Don't omit methods with self from path completionJonas Schievink2020-04-241-6/+38
|/
* Adds attribute completions (#3941)Roberto Vidal2020-04-243-0/+592
|
* Better label for macros completionAleksey Kladov2020-04-245-48/+59
|
* Honor snippet capabilityAleksey Kladov2020-04-241-0/+6
| | | | closes #2518
* Make sure that adding a snippet requires corresponding capabilityAleksey Kladov2020-04-246-44/+107
|
* Introduce internal snippet capAleksey Kladov2020-04-241-0/+13
|
* Move CompletionConfig to a separate moduleAleksey Kladov2020-04-241-0/+16
|
* Add test marksAleksey Kladov2020-04-241-0/+4
|
* Introduce ActiveParameterAleksey Kladov2020-04-242-6/+6
|
* Move tests to where they belongAleksey Kladov2020-04-242-231/+231
|
* RefactorAleksey Kladov2020-04-241-24/+18
|
* Restore CompletionItem immutabilityAleksey Kladov2020-04-242-31/+23
|
* More functionalAleksey Kladov2020-04-242-11/+18
|
* MoveAleksey Kladov2020-04-231-9/+9
|
* Merge #3954bors[bot]2020-04-234-5/+321
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 3954: Improve autocompletion by looking on the type and name r=matklad a=bnjjj This tweet (https://twitter.com/tjholowaychuk/status/1248918374731714560) gaves me the idea to implement that in rust-analyzer. Basically for this first example I made some examples when we are in a function call definition. I look on the parameter list to prioritize autocompletions for the same types and if it's the same type + the same name then it's displayed first in the completion list. So here is a draft, first step to open a discussion and know what you think about the implementation. It works (cf tests) but maybe I can make a better implementation at some places. Be careful the code needs some refactoring to be better and concise. PS: It was lot of fun writing this haha Co-authored-by: Benjamin Coenen <[email protected]>
| * Improve autocompletion by looking on the type and nameBenjamin Coenen2020-04-211-3/+1
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
| * Merge branch 'master' of github.com:rust-analyzer/rust-analyzerBenjamin Coenen2020-04-211-0/+6
| |\
| * | Improve autocompletion by looking on the type and nameBenjamin Coenen2020-04-213-46/+46
| | | | | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>