aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/completion/completion_context.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename ra_syntax -> syntaxAleksey Kladov2020-08-121-1/+1
|
* Rename ra_text_edit -> text_editAleksey Kladov2020-08-121-1/+1
|
* Use Hygiene in completionLaurențiu Nicola2020-08-111-5/+5
|
* Rename BindPat -> IdentPatAleksey Kladov2020-07-311-1/+1
|
* Allign RecordPat with RecordExprAleksey Kladov2020-07-311-3/+3
|
* Rename TypeArgList -> GenericArgListAleksey Kladov2020-07-311-1/+1
|
* Finalize impl GrammarAleksey Kladov2020-07-301-2/+2
|
* Rename RecordLit -> RecordExprAleksey Kladov2020-07-301-4/+4
|
* Rename FnDef -> FnAleksey Kladov2020-07-301-2/+2
|
* Rename UseItem -> UseAleksey Kladov2020-07-301-2/+2
|
* Minor perf tweaks per clippyJeremy Kolb2020-07-191-2/+2
|
* Don't duplicate parens in patternsAleksey Kladov2020-07-141-0/+5
|
* Speed up completionAleksey Kladov2020-07-111-4/+3
|
* Better nameAleksey Kladov2020-07-101-3/+3
|
* Better complete expression keywordsAleksey Kladov2020-07-101-0/+4
|
* Modernize unqualified reference completion testsAleksey Kladov2020-07-071-14/+5
|
* Make SemanticsScope non-genericLaurențiu Nicola2020-07-011-1/+1
|
* Deprecate hir::Path::from_astAleksey Kladov2020-06-151-0/+1
|
* Add keywords completions on source file positionMikhail Rakhmanov2020-06-131-2/+6
|
* Add more patterns, tests and fix keywordsMikhail Rakhmanov2020-06-121-6/+13
|
* Add few smoke tests for patterns and refactoringMikhail Rakhmanov2020-06-111-5/+8
|
* Add more patterns and keywordsMikhail Rakhmanov2020-06-111-2/+11
|
* Add more keywordsMikhail Rakhmanov2020-06-111-2/+26
|
* fix textedit range returned for completion when left token is a keywordBenjamin Coenen2020-05-271-0/+2
| | | | Signed-off-by: Benjamin Coenen <[email protected]>
* fix textedit range returned for completion when left token is a keyword #4545Benjamin Coenen2020-05-241-1/+10
| | | | Signed-off-by: Benjamin Coenen <[email protected]>
* Prioritize locals with correct typesAleksey Kladov2020-05-141-1/+1
|
* Rename AtomTextEdit -> IndelAleksey Kladov2020-05-051-2/+2
|
* Complete standard derivesKirill Bulatov2020-05-021-3/+3
|
* Introduce EffectExprAleksey Kladov2020-05-021-1/+1
|
* Precompute expected type during completionAleksey Kladov2020-04-261-12/+21
|
* Convert code to text-sizeAleksey Kladov2020-04-251-6/+7
|
* Adds attribute completions (#3941)Roberto Vidal2020-04-241-0/+3
|
* Introduce ActiveParameterAleksey Kladov2020-04-241-3/+4
|
* Merge #3954bors[bot]2020-04-231-0/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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]>
| * feat: improve dot completions with scoringBenjamin Coenen2020-04-171-5/+1
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
| * feat: improve dot completions in a struct literal expressionBenjamin Coenen2020-04-151-0/+10
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
| * Merge branch 'master' of github.com:rust-analyzer/rust-analyzerBenjamin Coenen2020-04-141-3/+9
| |\
| * \ Improve autocompletion by looking on the type and nameBenjamin Coenen2020-04-111-6/+7
| |\ \ | | | | | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
| * | | Improve autocompletion by looking on the type and nameBenjamin Coenen2020-04-111-3/+11
| | | | | | | | | | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
* | | | Add utility fn for expected type of a nodenathanwhit2020-04-221-1/+12
| |_|/ |/| | | | | | | | | | | Adds `expected_type_of` to `CompletionContext` to return the expected type of a node, if it is known.
* | | Align grammar for record patterns and literalsAleksey Kladov2020-04-111-3/+9
| |/ |/| | | | | | | | | The grammar now looks like this [name_ref :] pat
* | Make records grammar more orthogonalAleksey Kladov2020-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | We used name [: expr] grammar before, now it is [name :] expr which makes things simpler
* | Simpler acessors for keywordsAleksey Kladov2020-04-091-2/+2
| |
* | Be consistent about token accesorsAleksey Kladov2020-04-091-1/+4
|/
* Don't insert !() if there's already someAleksey Kladov2020-04-071-0/+4
|
* Remove the second code-path for completing names in patternsAleksey Kladov2020-04-031-17/+14
|
* Better names for config structsAleksey Kladov2020-03-311-4/+4
|
* Remove constSteffen Lyngbaek2020-03-191-5/+5
| | | | | - Add test for @ matching - Address comments
* Fixes to more accurately give complete_scope completionsSteffen Lyngbaek2020-03-191-3/+5
| | | | | | | - Exclude const, static, functions form is_pat_binding_and_path (there might be more?) - Add a check to filter out Record Fields - Fix tests
* - Exclude Local Scope for BindPatsSteffen Lyngbaek2020-03-191-7/+4
| | | | | - Exclude BindPats with @ or ref - Remove outdated test and add one testing for ref