Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #2297 from kiljacken/master | Aleksey Kladov | 2019-11-20 | 8 | -22/+132 |
|\ | | | | | 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 | 8 | -22/+95 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | | :arrow_up: rowan | Aleksey Kladov | 2019-11-19 | 3 | -19/+18 |
| | | |||||
* | | 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 | 4 | -8/+25 |
| | | |||||
* | | Change to use Expansion::file_id and reordering | Edwin Cheng | 2019-11-19 | 2 | -46/+40 |
| | | |||||
* | | Rebase | Edwin Cheng | 2019-11-19 | 2 | -3/+9 |
| | | |||||
* | | Add recursive expand in vscode | Edwin Cheng | 2019-11-19 | 5 | -0/+148 |
| | | |||||
* | | Fixed a bug for string lit in quote | Edwin Cheng | 2019-11-19 | 1 | -4/+4 |
|/ | |||||
* | 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 |
| | | |||||
* | | Merge #2307 | bors[bot] | 2019-11-18 | 1 | -42/+62 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 2307: Support hover through macro r=matklad a=kjeremy Allows hover to work through macros like `match_ast!`. Co-authored-by: kjeremy <[email protected]> | ||||
| * | | Fix test | kjeremy | 2019-11-18 | 1 | -10/+6 |
| | | | |||||
| * | | Support hover through macro | kjeremy | 2019-11-18 | 1 | -42/+66 |
| |/ | |||||
* / | Remove the custom impl of AttrsOwner for ImplItem | DJMcNab | 2019-11-18 | 3 | -12/+4 |
|/ | | | | | | The default impl should have the same behaviour, and it can be generated by codegen. See also `ModuleItem` and `NominalDef` | ||||
* | Use Source<&ast::Name> in classify_name | kjeremy | 2019-11-18 | 4 | -25/+22 |
| | |||||
* | Collapse TokenMap and RevTokenMap | Aleksey Kladov | 2019-11-18 | 4 | -119/+105 |
| | |||||
* | Token-based reverse-mapping | Aleksey Kladov | 2019-11-18 | 3 | -38/+52 |
| | |||||
* | 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 |
| | |||||
* | Publicise GenericParams | Aleksey Kladov | 2019-11-18 | 1 | -3/+3 |
| | | | | See https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Exposing.20GenericParam.2Ename | ||||
* | More correct expansion mapping | Aleksey Kladov | 2019-11-17 | 4 | -44/+74 |
| | | | | We can't really map arbitrary ranges, we only can map tokens | ||||
* | Make shift an implementation detail of mbe | Aleksey Kladov | 2019-11-17 | 3 | -47/+84 |
| | |||||
* | Merge #2287 | bors[bot] | 2019-11-17 | 23 | -6/+65 |
|\ | | | | | | | | | | | | | | | 2287: Disable doctests r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Disable doctests | Aleksey Kladov | 2019-11-17 | 23 | -6/+65 |
| | | |||||
* | | Don't store shift redundantly | Aleksey Kladov | 2019-11-17 | 1 | -6/+5 |
|/ | |||||
* | Add bound check | Edwin Cheng | 2019-11-17 | 1 | -2/+2 |
| | |||||
* | Add ast for plain and raw string literals | Aleksey Kladov | 2019-11-16 | 3 | -57/+98 |
| | |||||
* | 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 | 4 | -11/+77 |
| | |||||
* | Merge #2276 | bors[bot] | 2019-11-16 | 5 | -41/+41 |
|\ | | | | | | | | | | | | | | | 2276: Source-ify name_definition r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Source-ify name_definition | Aleksey Kladov | 2019-11-16 | 1 | -20/+19 |
| | | |||||
| * | Sourcify classify_name_ref | Aleksey Kladov | 2019-11-16 | 5 | -21/+22 |
| | | |||||
* | | Upgrade Chalk again | Florian Diebold | 2019-11-16 | 4 | -27/+37 |
| | | |||||
* | | Fix handling of the binders in dyn/impl Trait | Florian Diebold | 2019-11-16 | 4 | -45/+116 |
| | | | | | | | | | | | | | | | | | | We need to be more careful now when substituting bound variables (previously, we didn't have anything that used bound variables except Chalk, so it was not a problem). This is obviously quite ad-hoc; Chalk has more infrastructure for handling this in a principled way, which we maybe should adopt. | ||||
* | | Use Chalk's dyn/impl trait support | Florian Diebold | 2019-11-16 | 3 | -13/+16 |
| | | |||||
* | | Upgrade Chalk | Florian Diebold | 2019-11-16 | 5 | -113/+213 |
|/ | | | | | Associated type values (in impls) are now a separate entity in Chalk, so we have to intern separate IDs for them. | ||||
* | Merge #2271 | bors[bot] | 2019-11-15 | 10 | -54/+51 |
|\ | | | | | | | | | | | | | | | 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 | 10 | -53/+51 |
| | | |||||
| * | Prepare SourceAnalyzer for macros | Aleksey Kladov | 2019-11-15 | 1 | -1/+0 |
| | | |||||
* | | Merge #2268 | bors[bot] | 2019-11-15 | 3 | -5/+47 |
|\ \ | |/ |/| | | | | | | | | | | | 2268: Handle ast::MacroCall in classify_name and impl FromSource for MacroDef r=matklad a=kjeremy Fixes #2260 Co-authored-by: kjeremy <[email protected]> | ||||
| * | 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 | 2 | -5/+32 |
| | | | | | | | | Fixes #2260 | ||||
* | | Reduce some duplication | Aleksey Kladov | 2019-11-15 | 5 | -8/+12 |
| | | |||||
* | | Remove wrong clone | Aleksey Kladov | 2019-11-15 | 1 | -2/+2 |
| | | |||||
* | | Prepare SourceAnalyzer for macros | Aleksey Kladov | 2019-11-15 | 2 | -9/+14 |
| | | |||||
* | | Sourcify some more | Aleksey Kladov | 2019-11-15 | 2 | -13/+23 |
|/ |