Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move constants to new ID | Aleksey Kladov | 2019-11-20 | 2 | -7/+2 |
| | | | | This allows us to get rid of trait item index | ||||
* | Merge #2326 | bors[bot] | 2019-11-20 | 1 | -132/+0 |
|\ | | | | | | | | | | | | | | | 2326: Remove duplicate tests r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Remove duplicate tests | Aleksey Kladov | 2019-11-20 | 1 | -132/+0 |
| | | |||||
* | | Fix expand macro | Edwin Cheng | 2019-11-20 | 2 | -6/+6 |
|/ | |||||
* | Rename with_ast -> with_value | Aleksey Kladov | 2019-11-20 | 6 | -41/+41 |
| | |||||
* | Rename Source::ast -> Source::value | Aleksey Kladov | 2019-11-20 | 16 | -78/+83 |
| | |||||
* | Merge pull request #2297 from kiljacken/master | Aleksey Kladov | 2019-11-20 | 2 | -17/+67 |
|\ | | | | | Add fancy truncation of type hints. | ||||
| * | Add test for inlay hint truncation | Emil Lauridsen | 2019-11-19 | 1 | -0/+37 |
| | | |||||
| * | Move type inlay hint truncation to language server | Emil Lauridsen | 2019-11-19 | 2 | -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 module | Edwin Cheng | 2019-11-19 | 1 | -1/+1 |
| | | |||||
* | | Improve insert_whitespaces | Edwin Cheng | 2019-11-19 | 1 | -17/+77 |
| | | |||||
* | | Change return type of expand_macro | Edwin Cheng | 2019-11-19 | 2 | -5/+12 |
| | | |||||
* | | Change to use Expansion::file_id and reordering | Edwin Cheng | 2019-11-19 | 1 | -40/+39 |
| | | |||||
* | | Rebase | Edwin Cheng | 2019-11-19 | 1 | -3/+4 |
| | | |||||
* | | Add recursive expand in vscode | Edwin Cheng | 2019-11-19 | 2 | -0/+117 |
|/ | |||||
* | Merge #2309 | bors[bot] | 2019-11-18 | 1 | -7/+29 |
|\ | | | | | | | | | | | | | | | 2309: Goto type def through macros r=matklad a=kjeremy Co-authored-by: kjeremy <[email protected]> | ||||
| * | Goto type def through macros | kjeremy | 2019-11-18 | 1 | -7/+29 |
| | | |||||
* | | Fix test | kjeremy | 2019-11-18 | 1 | -10/+6 |
| | | |||||
* | | Support hover through macro | kjeremy | 2019-11-18 | 1 | -42/+66 |
|/ | |||||
* | Use Source<&ast::Name> in classify_name | kjeremy | 2019-11-18 | 4 | -25/+22 |
| | |||||
* | Token-based reverse-mapping | Aleksey Kladov | 2019-11-18 | 1 | -8/+25 |
| | |||||
* | More sources | Aleksey Kladov | 2019-11-18 | 2 | -41/+32 |
| | |||||
* | Add ra_ide_api::expand | Aleksey Kladov | 2019-11-18 | 4 | -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 Source | Aleksey Kladov | 2019-11-18 | 1 | -19/+18 |
| | |||||
* | More correct expansion mapping | Aleksey Kladov | 2019-11-17 | 1 | -22/+26 |
| | | | | We can't really map arbitrary ranges, we only can map tokens | ||||
* | Better factoring of macro expansion machinery in goto def | Aleksey Kladov | 2019-11-16 | 1 | -11/+20 |
| | |||||
* | Goto definition works inside macros | Aleksey Kladov | 2019-11-16 | 1 | -10/+40 |
| | |||||
* | Source-ify name_definition | Aleksey Kladov | 2019-11-16 | 1 | -20/+19 |
| | |||||
* | Sourcify classify_name_ref | Aleksey Kladov | 2019-11-16 | 5 | -21/+22 |
| | |||||
* | Merge #2271 | bors[bot] | 2019-11-15 | 6 | -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 SourceAnalyzer | Aleksey Kladov | 2019-11-15 | 6 | -12/+17 |
| | | |||||
* | | Add a test that uses classify_name | kjeremy | 2019-11-15 | 1 | -0/+15 |
| | | |||||
* | | Handle ast::MacroCall in classify_name and impl FromSource for MacroDef | kjeremy | 2019-11-15 | 1 | -1/+13 |
|/ | | | | Fixes #2260 | ||||
* | Sourcify some things | Aleksey Kladov | 2019-11-15 | 2 | -4/+4 |
| | | | | | If we want to support macros properly, we need to get rid of those FileIds everywhere... | ||||
* | Remove old impls infrastructure | Aleksey Kladov | 2019-11-15 | 2 | -12/+8 |
| | |||||
* | Auto-upgrade some insta snapshots | Aleksey Kladov | 2019-11-15 | 16 | -1547/+1638 |
| | |||||
* | Use Local more | Aleksey Kladov | 2019-11-15 | 1 | -8/+6 |
| | |||||
* | Cleanup hover | Jeremy Kolb | 2019-11-15 | 1 | -111/+93 |
| | | | | Take advantage of classify_name | ||||
* | Minor cleanup | Aleksey Kladov | 2019-11-12 | 1 | -2/+2 |
| | |||||
* | fix typo | Greg | 2019-11-12 | 1 | -1/+1 |
| | |||||
* | Implement postfix completions feature flag | Greg | 2019-11-12 | 2 | -0/+5 |
| | |||||
* | Introduce hir::GenericParam | Aleksey Kladov | 2019-11-11 | 1 | -2/+3 |
| | | | | Unlike existing hir::GenericParams, this is a global ID. | ||||
* | Add hir::Local | Aleksey Kladov | 2019-11-11 | 9 | -154/+81 |
| | |||||
* | Refactor highlighting to use classify_name | Aleksey Kladov | 2019-11-11 | 1 | -72/+73 |
| | |||||
* | Introduce ToNav trait | Aleksey Kladov | 2019-11-11 | 7 | -177/+200 |
| | |||||
* | impl fmt::Display for BuiltinType | Aleksey Kladov | 2019-11-11 | 1 | -6/+2 |
| | |||||
* | Merge #2203 | bors[bot] | 2019-11-11 | 1 | -19/+31 |
|\ | | | | | | | | | | | | | | | 2203: Hover for builtins r=matklad a=kjeremy Fixes #2192 Co-authored-by: Jeremy Kolb <[email protected]> | ||||
| * | Hover for builtins | Jeremy Kolb | 2019-11-10 | 1 | -19/+31 |
| | | |||||
* | | Add tests for resolving types in core and std preludes | Matthias Einwag | 2019-11-10 | 1 | -0/+62 |
|/ | |||||
* | Merge #2169 | bors[bot] | 2019-11-09 | 3 | -47/+154 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 2169: MBE: Mapping spans for goto definition r=matklad a=edwin0cheng Currently, go to definition gives the wrong span in MBE. This PR implement a mapping mechanism to fix it and it could be used for future MBE hygiene implementation. The basic idea of the mapping is: 1. When expanding the macro, generated 2 `TokenMap` which maps the macro args and macro defs between tokens and input text-ranges. 2. Before converting generated `TokenTree` to `SyntaxNode`, generated a `ExpandedRangeMap` which is a mapping between token and output text-ranges. 3. Using these 3 mappings to construct an `ExpansionInfo` which can map between input text ranges and output text ranges. Co-authored-by: Edwin Cheng <[email protected]> |