aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Move type inlay hint truncation to language serverEmil Lauridsen2019-11-1910-35/+97
| | | | | | | | | | | | 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.
* 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
| |
* | Merge #2307bors[bot]2019-11-181-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 testkjeremy2019-11-181-10/+6
| | |
| * | Support hover through macrokjeremy2019-11-181-42/+66
| |/
* | Merge #2308bors[bot]2019-11-183-12/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2308: Remove the custom impl of AttrsOwner for ImplItem r=matklad a=DJMcNab The default impl should have the same behaviour, and it can be generated by codegen. See also `ModuleItem` and `NominalDef`. Also see https://github.com/rust-analyzer/rust-analyzer/commit/5dbbfda34ae423229487595fd0ae9e727ae42906#r36011245 Co-authored-by: DJMcNab <[email protected]>
| * | Remove the custom impl of AttrsOwner for ImplItemDJMcNab2019-11-183-12/+4
| |/ | | | | | | | | | | The default impl should have the same behaviour, and it can be generated by codegen. See also `ModuleItem` and `NominalDef`
* | Merge #2305bors[bot]2019-11-181-2/+0
|\ \ | |/ |/| | | | | | | | | | | 2305: Remove CI badge r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Remove CI badgeAleksey Kladov2019-11-181-2/+0
|/
* Merge #2304bors[bot]2019-11-184-25/+22
|\ | | | | | | | | | | | | | | 2304: Use Source<&ast::Name> in classify_name r=matklad a=kjeremy Co-authored-by: kjeremy <[email protected]>
| * Use Source<&ast::Name> in classify_namekjeremy2019-11-184-25/+22
|/
* Merge #2302bors[bot]2019-11-184-119/+105
|\ | | | | | | | | | | | | | | 2302: Collapse TokenMap and RevTokenMap r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Collapse TokenMap and RevTokenMapAleksey Kladov2019-11-184-119/+105
|/
* Merge #2301bors[bot]2019-11-185-48/+36
|\ | | | | | | | | | | | | | | 2301: Don't create a separate bin for format hook r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Don't create a separate bin for format hookAleksey Kladov2019-11-185-48/+36
| |
* | Merge #2300bors[bot]2019-11-183-38/+52
|\| | | | | | | | | | | | | | | 2300: Token-based reverse-mapping r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Token-based reverse-mappingAleksey Kladov2019-11-183-38/+52
| |
* | Merge #2299bors[bot]2019-11-182-41/+32
|\| | | | | | | | | | | | | | | 2299: More sources r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * More sourcesAleksey Kladov2019-11-182-41/+32
| |
* | Merge #2298bors[bot]2019-11-184-61/+74
|\| | | | | | | | | | | | | | | 2298: Add ra_ide_api::expand r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * 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
|/
* Merge #2296bors[bot]2019-11-182-3/+1
|\ | | | | | | | | | | | | | | 2296: Remove obsolete links r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * fix bors integrationAleksey Kladov2019-11-181-1/+1
| |
| * Remove obsolete linksAleksey Kladov2019-11-181-2/+0
|/
* Switch to ActionsAleksey Kladov2019-11-184-97/+61
|
* Run npm travis through xvfb-runcad972019-11-181-1/+1
|
* Enable github actions cicad972019-11-181-0/+86
|
* Merge #2294bors[bot]2019-11-181-3/+3
|\ | | | | | | | | | | | | | | 2294: Publicise GenericParams r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Publicise GenericParamsAleksey Kladov2019-11-181-3/+3
| | | | | | | | See https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Exposing.20GenericParam.2Ename
* | Merge #2292bors[bot]2019-11-171-3/+3
|\ \ | |/ |/| | | | | | | | | | | 2292: :arrow_up: rowan r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * :arrow_up: rowanAleksey Kladov2019-11-171-3/+3
|/
* Merge #2289bors[bot]2019-11-174-44/+74
|\ | | | | | | | | | | | | | | 2289: More correct expansion mapping r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * More correct expansion mappingAleksey Kladov2019-11-174-44/+74
| | | | | | | | We can't really map arbitrary ranges, we only can map tokens
* | Merge #2288bors[bot]2019-11-173-47/+84
|\| | | | | | | | | | | | | | | 2288: Make shift an implementation detail of mbe r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Make shift an implementation detail of mbeAleksey Kladov2019-11-173-47/+84
|/
* Merge #2287bors[bot]2019-11-1723-6/+65
|\ | | | | | | | | | | | | | | 2287: Disable doctests r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Disable doctestsAleksey Kladov2019-11-1723-6/+65
| |
* | Merge #2286bors[bot]2019-11-171-1/+1
|\| | | | | | | | | | | | | | | 2286: Alias for less verbose tests r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Alias for less verbose testsAleksey Kladov2019-11-171-1/+1
| |
* | Merge #2285bors[bot]2019-11-171-6/+5
|\ \ | |/ |/| | | | | | | | | | | 2285: Don't store shift redundantly r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Don't store shift redundantlyAleksey Kladov2019-11-171-6/+5
|/
* Merge #2283bors[bot]2019-11-171-2/+2
|\ | | | | | | | | | | | | | | 2283: Fix #2275 r=matklad a=edwin0cheng Fix #2275 Co-authored-by: Edwin Cheng <[email protected]>
| * Add bound checkEdwin Cheng2019-11-171-2/+2
|/
* Merge #2280bors[bot]2019-11-164-58/+98
|\ | | | | | | | | | | | | | | 2280: Add ast for plain and raw string literals r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Add ast for plain and raw string literalsAleksey Kladov2019-11-164-58/+98
| |
* | Merge #2279bors[bot]2019-11-161-11/+20
|\| | | | | | | | | | | | | | | 2279: Better factoring of macro expansion machinery in goto def r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * Better factoring of macro expansion machinery in goto defAleksey Kladov2019-11-161-11/+20
|/
* Merge #2273bors[bot]2019-11-164-11/+77
|\ | | | | | | | | | | | | | | | | | | 2273: goto in macro calls r=matklad a=matklad ![goto](https://user-images.githubusercontent.com/1711539/68984944-2a50ba80-0824-11ea-896c-c0ea8edcd0d6.gif) This builds on the awesome infrastructure created by @edwin0cheng Co-authored-by: Aleksey Kladov <[email protected]>