aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src
Commit message (Collapse)AuthorAgeFilesLines
* Add support for environment to CrateGraphAleksey Kladov2019-11-223-7/+20
|
* Merge #2347bors[bot]2019-11-221-2/+32
|\ | | | | | | | | | | | | | | 2347: More correct expand macro r=matklad a=edwin0cheng Co-authored-by: Edwin Cheng <[email protected]>
| * More correct expand macroEdwin Cheng2019-11-221-2/+32
| |
* | Merge #2351bors[bot]2019-11-221-6/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | 2351: Rename Atts trait r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | Rename Atts traitAleksey Kladov2019-11-221-2/+2
| | |
| * | Encapsulate AttrsAleksey Kladov2019-11-221-4/+1
| | |
* | | Don't continue line commentsAleksey Kladov2019-11-221-3/+31
| |/ |/|
* | Fix insert_whitespacesEdwin Cheng2019-11-211-11/+10
| |
* | Add test for match_astEdwin Cheng2019-11-211-0/+43
|/
* Merge #2332bors[bot]2019-11-201-0/+7
|\ | | | | | | | | | | | | | | 2332: Add HasResolver trait r=matklad a=matklad bors merge Co-authored-by: Aleksey Kladov <[email protected]>
| * Add HasResolver traitAleksey Kladov2019-11-201-0/+7
| |
* | fix 2190; add test for "replace if let with match"Felix Kohlgrüber2019-11-201-0/+28
|/
* Move constants to new IDAleksey Kladov2019-11-202-7/+2
| | | | This allows us to get rid of trait item index
* Merge #2326bors[bot]2019-11-201-132/+0
|\ | | | | | | | | | | | | | | 2326: Remove duplicate tests r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Remove duplicate testsAleksey Kladov2019-11-201-132/+0
| |
* | Fix expand macroEdwin Cheng2019-11-202-6/+6
|/
* Rename with_ast -> with_valueAleksey Kladov2019-11-206-41/+41
|
* Rename Source::ast -> Source::valueAleksey Kladov2019-11-2016-78/+83
|
* Merge pull request #2297 from kiljacken/masterAleksey Kladov2019-11-202-17/+67
|\ | | | | Add fancy truncation of type hints.
| * Add test for inlay hint truncationEmil Lauridsen2019-11-191-0/+37
| |
| * Move type inlay hint truncation to language serverEmil Lauridsen2019-11-192-17/+30
| | | | | | | | | | | | | | | | | | | | | | | | This commit implements a general truncation framework for HirFormatter that keeps track of how much has been output so far. This information can then be used to perform truncation inside the language server, instead of relying on the client. Initial support is implemented for truncating types hints using the maxInlayHintLength server config option. The existing solution in the VSCode extension has been removed in favor of letting the server truncate type hints.
* | Add shot doc for expand_macro moduleEdwin Cheng2019-11-191-1/+1
| |
* | Improve insert_whitespacesEdwin Cheng2019-11-191-17/+77
| |
* | Change return type of expand_macroEdwin Cheng2019-11-192-5/+12
| |
* | Change to use Expansion::file_id and reorderingEdwin Cheng2019-11-191-40/+39
| |
* | RebaseEdwin Cheng2019-11-191-3/+4
| |
* | Add recursive expand in vscodeEdwin Cheng2019-11-192-0/+117
|/
* Merge #2309bors[bot]2019-11-181-7/+29
|\ | | | | | | | | | | | | | | 2309: Goto type def through macros r=matklad a=kjeremy Co-authored-by: kjeremy <[email protected]>
| * Goto type def through macroskjeremy2019-11-181-7/+29
| |
* | Fix testkjeremy2019-11-181-10/+6
| |
* | Support hover through macrokjeremy2019-11-181-42/+66
|/
* Use Source<&ast::Name> in classify_namekjeremy2019-11-184-25/+22
|
* Token-based reverse-mappingAleksey Kladov2019-11-181-8/+25
|
* More sourcesAleksey Kladov2019-11-182-41/+32
|
* Add ra_ide_api::expandAleksey Kladov2019-11-184-55/+69
| | | | | This module should handle all tricky bits with mapping macro-expanded HirFileId to original files the user actually can see in the editor
* More SourceAleksey Kladov2019-11-181-19/+18
|
* More correct expansion mappingAleksey Kladov2019-11-171-22/+26
| | | | We can't really map arbitrary ranges, we only can map tokens
* Better factoring of macro expansion machinery in goto defAleksey Kladov2019-11-161-11/+20
|
* Goto definition works inside macrosAleksey Kladov2019-11-161-10/+40
|
* Source-ify name_definitionAleksey Kladov2019-11-161-20/+19
|
* Sourcify classify_name_refAleksey Kladov2019-11-165-21/+22
|
* Merge #2271bors[bot]2019-11-156-12/+17
|\ | | | | | | | | | | | | | | 2271: Force passing Source when creating a SourceAnalyzer r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Force passing Source when creating a SourceAnalyzerAleksey Kladov2019-11-156-12/+17
| |
* | Add a test that uses classify_namekjeremy2019-11-151-0/+15
| |
* | Handle ast::MacroCall in classify_name and impl FromSource for MacroDefkjeremy2019-11-151-1/+13
|/ | | | Fixes #2260
* Sourcify some thingsAleksey Kladov2019-11-152-4/+4
| | | | | If we want to support macros properly, we need to get rid of those FileIds everywhere...
* Remove old impls infrastructureAleksey Kladov2019-11-152-12/+8
|
* Auto-upgrade some insta snapshotsAleksey Kladov2019-11-1516-1547/+1638
|
* Use Local moreAleksey Kladov2019-11-151-8/+6
|
* Cleanup hoverJeremy Kolb2019-11-151-111/+93
| | | | Take advantage of classify_name