aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion
Commit message (Collapse)AuthorAgeFilesLines
* migrate ra_ide_api to the new rowanAleksey Kladov2019-07-197-37/+36
|
* make Parse genericAleksey Kladov2019-07-181-2/+2
|
* Restrict some postfix completions to bool and unknown expr.Marco Groppo2019-07-171-26/+103
| | | | | Restrict `if` and `while` postfix completions to boolean expressions and expressions of an unknown type.
* complete fields in enum variantsEkaterina Babshukova2019-07-121-15/+88
|
* make Parse fields privateAleksey Kladov2019-07-121-3/+3
| | | | this is in preparation for the new rowan API
* inline snapshot in complete_postfixfunkill22019-07-072-75/+71
|
* allow rustfmt to reorder importsAleksey Kladov2019-07-0412-45/+41
| | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
* Add completion for type aliasesShotaro Yamada2019-07-021-1/+41
|
* remove snapshot filesfunkill22019-07-0113-273/+0
|
* inline snapshotsfunkill22019-07-011-157/+366
|
* Merge #1456bors[bot]2019-06-291-1/+31
|\ | | | | | | | | | | | | | | 1456: Deduplicate method candidates r=matklad a=flodiebold With trait method completion + autoderef, we were getting a lot of duplicates, which was really annoying... Co-authored-by: Florian Diebold <[email protected]>
| * Deduplicate method candidatesFlorian Diebold2019-06-291-1/+31
| |
* | Complete associated methods on enums (and unions) as wellFlorian Diebold2019-06-293-6/+87
|/
* Add box postfix completionKan-Ru Chen2019-06-232-1/+10
|
* rename XSignature -> XDataAleksey Kladov2019-06-183-10/+10
|
* Implement autoderef using the Deref traitFlorian Diebold2019-06-151-1/+1
| | | | - add support for other lang item targets, since we need the Deref lang item
* remove inherent source implsAleksey Kladov2019-06-111-1/+1
|
* use Source for TypeAliasAleksey Kladov2019-06-111-3/+2
|
* use Source for statics and constsAleksey Kladov2019-06-111-2/+1
|
* use Source for FunctionAleksey Kladov2019-06-111-1/+1
|
* Merge #1377bors[bot]2019-06-0614-644/+580
|\ | | | | | | | | | | | | | | 1377: Use inline snapshots in complete_keyword r=matklad a=sbihel Relates to #1127 Co-authored-by: Simon Bihel <[email protected]>
| * Use inline snapshots in complete_keywordSimon Bihel2019-06-0414-644/+580
| |
* | Fix clippy::or_fun_callAlan Du2019-06-041-1/+1
| |
* | Fix clippy::ptr_argAlan Du2019-06-041-2/+2
| |
* | Fix clippy::single_matchAlan Du2019-06-041-4/+3
|/
* update ra_ide_api to use builtinsAleksey Kladov2019-05-303-1/+28
|
* fix typos in mbe testsAleksey Kladov2019-05-281-7/+8
|
* :arrow_up: rustcAleksey Kladov2019-05-2349-454/+482
|
* add union to code_modelAleksey Kladov2019-05-232-0/+2
|
* Merge #1208bors[bot]2019-05-041-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1208: [WIP] Goto for Macro's r=matklad a=Lapz Adds goto definition for macros. Currently only works for macros in the current crate ~~otherwise it panics~~. Proper macro resolution needs to be added for it to resolve macros in other crates. Todo - [X] Allow goto from macro calls - [X] Fix panics - [x] Add tests ![Screen Recording 2019-04-25 at 18 00 24](https://user-images.githubusercontent.com/19998186/56754499-1dd01c00-6785-11e9-9e9a-1e36de70cfa3.gif) Co-authored-by: Lenard Pratt <[email protected]>
| * Added local macro gotoLenard Pratt2019-05-041-0/+1
| |
* | Differentiate Tuple / FnPtr type constructors by cardinalityFlorian Diebold2019-05-041-1/+1
|/ | | | | This is necessary because Chalk (reasonably) expects each 'struct' to know how many type parameters it takes.
* Merge #1194bors[bot]2019-04-222-6/+118
|\ | | | | | | | | | | | | | | | | 1194: Pr 1190 r=matklad a=matklad Co-authored-by: Andrea Pretto <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]>
| * remove path_ident from CompletionContextAleksey Kladov2019-04-222-39/+38
| | | | | | | | | | | | | | | | | | We really shouldn't be looking at the identifier at point. Instead, all filtering and sorting should be implemented at the layer above. This layer should probably be home for auto-import completions as well, but, since that is not yet implemented, let's just stick this into complete_scope.
| * move auto-imoprter into IDEAleksey Kladov2019-04-222-13/+54
| | | | | | | | | | auto-import is purely an IDE concern, so it should be done outside of HIR
| * complete_import: prevent panic when the anchor is the completion source rangeAndrea Pretto2019-04-211-7/+17
| | | | | | | | | | | | (fix rebase mess) Please enter the commit message for your changes. Lines starting
| * complete_import: add new import resolver infrastructure with some hardcoded ↵Andrea Pretto2019-04-212-8/+70
| | | | | | | | | | | | importable name. Changes complete_scope to support that.
* | fix postfix match indentAleksey Kladov2019-04-222-4/+4
|/
* New krate() method in Resolver.Marco Groppo2019-04-191-2/+2
| | | | Renamed Impl to ImplBlock.
* Initial support for lang items.Marco Groppo2019-04-191-10/+13
|
* Refactor method candidate generation a bitFlorian Diebold2019-04-141-1/+27
| | | | | | This fixes the order in which candidates are chosen a bit (not completely though, as the ignored test demonstrates), and makes autoderef work with trait methods. As a side effect, this also makes completion of trait methods work :)
* hide resolverAleksey Kladov2019-04-133-3/+3
|
* use really correct resolver for expressionsAleksey Kladov2019-04-121-1/+2
|
* remove resolver from CompletonContextAleksey Kladov2019-04-114-7/+4
|
* generalize SourceAnalyzer to handle all defs with bodiesAleksey Kladov2019-04-111-0/+24
|
* renameAleksey Kladov2019-04-111-2/+2
|
* Make call info to use real name resolutionAleksey Kladov2019-04-111-6/+0
|
* introduce SourceAnalyzerAleksey Kladov2019-04-113-18/+7
|
* Merge #1131bors[bot]2019-04-1010-180/+136
|\ | | | | | | | | | | | | | | 1131: Use inline snapshots in complete_dot r=matklad a=vipentti Relates to #1127 Co-authored-by: Ville Penttinen <[email protected]>
| * Use inline snapshots in complete_dotVille Penttinen2019-04-1010-180/+136
| |