aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/completion/complete_scope.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove the second code-path for completing names in patternsAleksey Kladov2020-04-031-8/+2
|
* Remove constSteffen Lyngbaek2020-03-191-1/+21
| | | | | - Add test for @ matching - Address comments
* Fixes to more accurately give complete_scope completionsSteffen Lyngbaek2020-03-191-12/+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-51/+12
| | | | | - Exclude BindPats with @ or ref - Remove outdated test and add one testing for ref
* Completition for type name? #3418Steffen Lyngbaek2020-03-191-1/+106
| | | | | | | | Iterate through TupleStructPat's until a MatchArm if one exists. Store in a new is_pat_bind_and_path bool and allow the `complete_scope` to find matches. Added some tests to ensure it works in simple and nested cases.
* Add test, remove printlnsFlorian Diebold2020-03-161-0/+53
|
* Attempt to implement ranking of rules when none matches perfectly (wip)Florian Diebold2020-03-161-1/+38
|
* Add test for completion of unresolved itemsAleksey Kladov2020-03-131-0/+34
|
* Fix completion testsAleksey Kladov2020-03-121-0/+2
|
* Introduce completion test utilsAleksey Kladov2020-03-111-3/+3
|
* Try to complete within macrosFlorian Diebold2020-03-071-1/+69
|
* Support function's completion snippetAvishay Matayev2020-03-041-1/+1
| | | | | | | Note that `detail` was replced with `function_signature` to avoid calling `from` on FunctionSignature twice. I didn't add new tests because the current ones seem enough.
* Refactor primary IDE APIAleksey Kladov2020-02-261-3/+1
| | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax.
* Remove hard-coded auto-import during completionAleksey Kladov2020-02-091-128/+3
| | | | We now have a real auto-import system, so we can do a proper thing.
* Rename add import assistKirill Bulatov2020-02-071-7/+2
|
* Code review fixesKirill Bulatov2020-02-021-15/+11
|
* Require ModPath for importingKirill Bulatov2020-02-021-24/+47
|
* Rudimentary name resolution for local itemsAleksey Kladov2019-12-221-0/+37
|
* rename ra_ide_api -> ra_ideAleksey Kladov2019-11-271-0/+876