Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #358 | bors[bot] | 2018-12-30 | 2 | -0/+6 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 358: Add support for formatting entire document with rustfmt r=matklad a=aleksanb Attempting to format a document when rustfmt isn't installed will result in an error being returned to the frontend. An alternative implementation would be returning zero replacements. Part of https://github.com/rust-analyzer/rust-analyzer/issues/160. Co-authored-by: Aleksander Vognild Burkow <[email protected]> | ||||
| * | Add support for formatting entire document with rustfmt | Aleksander Vognild Burkow | 2018-12-29 | 2 | -0/+6 |
| | | | | | | | | | | | | Attempting to format a document when rustfmt isn't installed will result in an error being returned to the frontend. An alternative implementation would be returning zero replacements. | ||||
* | | add paramthesis when completing functions | Aleksey Kladov | 2018-12-30 | 2 | -10/+39 |
|/ | |||||
* | completion for enum variants | Aleksey Kladov | 2018-12-28 | 2 | -9/+31 |
| | |||||
* | extend selection works with macros | Aleksey Kladov | 2018-12-28 | 3 | -4/+68 |
| | |||||
* | move macro to a separate module | Aleksey Kladov | 2018-12-28 | 3 | -60/+67 |
| | |||||
* | switch to FileRange | Aleksey Kladov | 2018-12-28 | 2 | -3/+16 |
| | |||||
* | introduce FileRange | Aleksey Kladov | 2018-12-28 | 2 | -18/+22 |
| | |||||
* | highlight macro idents | Aleksey Kladov | 2018-12-28 | 1 | -1/+1 |
| | |||||
* | super simplistic macro expansion | Aleksey Kladov | 2018-12-28 | 1 | -1/+108 |
| | |||||
* | add macro-call node | Aleksey Kladov | 2018-12-28 | 1 | -2/+4 |
| | |||||
* | move highlightning to a separate file | Aleksey Kladov | 2018-12-28 | 2 | -2/+14 |
| | |||||
* | simplify | Aleksey Kladov | 2018-12-27 | 1 | -6/+1 |
| | |||||
* | dead code | Aleksey Kladov | 2018-12-27 | 2 | -21/+1 |
| | |||||
* | remove FnId | Aleksey Kladov | 2018-12-27 | 2 | -4/+0 |
| | |||||
* | use names everywhere | Aleksey Kladov | 2018-12-27 | 1 | -18/+16 |
| | |||||
* | add function to completion ctx | Aleksey Kladov | 2018-12-27 | 5 | -21/+18 |
| | |||||
* | Merge #332 | bors[bot] | 2018-12-27 | 6 | -24/+177 |
|\ | | | | | | | | | | | | | | | | | | | 332: Struct types r=matklad a=flodiebold Infer types for struct fields, and add basic field completions. There's also some code for enums, but I focused on getting structs working. There's still ways to go before this becomes useful: There's no autoderef (or even reference types) and no inference for `self`, for example. Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | Resolve field types lazily | Florian Diebold | 2018-12-25 | 1 | -0/+1 |
| | | | | | | | | I.e. not already when getting the HIR for the struct. | ||||
| * | Add a hir::TypeRef as an intermediate between ast::TypeRef and ty::Ty | Florian Diebold | 2018-12-25 | 1 | -1/+1 |
| | | |||||
| * | Determine receiver for completion in a more robust way | Florian Diebold | 2018-12-25 | 2 | -21/+31 |
| | | | | | | | | Also rename a parameter. | ||||
| * | Implement basic completion for fields | Florian Diebold | 2018-12-25 | 4 | -8/+133 |
| | | |||||
| * | Do name resolution by namespace (types/values) | Florian Diebold | 2018-12-25 | 3 | -13/+28 |
| | | |||||
| * | Add basic HIR and types for structs/enums | Florian Diebold | 2018-12-25 | 1 | -0/+2 |
| | | |||||
* | | expose make_pub_crate action | Aleksey Kladov | 2018-12-27 | 1 | -0/+1 |
| | | |||||
* | | add fix for removing unnecessary braces in use statements | gfreezy | 2018-12-25 | 2 | -38/+27 |
|/ | |||||
* | Merge #326 | bors[bot] | 2018-12-24 | 3 | -5/+8 |
|\ | | | | | | | | | | | | | | | 326: resolved #324: remove unnecessary braces in use statement. r=matklad a=gfreezy Add inspection for unnecessary braces in use statement Co-authored-by: gfreezy <[email protected]> | ||||
| * | remove option from Diagnostic | gfreezy | 2018-12-24 | 2 | -4/+4 |
| | | |||||
| * | keep severity to Error & WeakWarning | gfreezy | 2018-12-24 | 1 | -1/+1 |
| | | |||||
| * | remove unnecessary braces in use statments | gfreezy | 2018-12-23 | 2 | -4/+2 |
| | | |||||
| * | add serverity to vscode diagnostics | gfreezy | 2018-12-23 | 2 | -1/+6 |
| | | |||||
* | | Resolve paths to defs (functions currently) during type inference | Florian Diebold | 2018-12-23 | 2 | -1/+2 |
| | | |||||
* | | Cleanup | Florian Diebold | 2018-12-23 | 1 | -2/+8 |
| | | |||||
* | | Add testing infrastructure for type inference | Florian Diebold | 2018-12-23 | 2 | -1/+16 |
| | | | | | | | | - move dir_tests to test_utils for that. | ||||
* | | Add beginnings of type infrastructure | Florian Diebold | 2018-12-23 | 1 | -0/+1 |
|/ | |||||
* | less verbose debug for library data | Aleksey Kladov | 2018-12-22 | 2 | -1/+14 |
| | |||||
* | completion uses hir scopes | Aleksey Kladov | 2018-12-22 | 2 | -24/+26 |
| | |||||
* | fix snippet icon | Aleksey Kladov | 2018-12-21 | 1 | -1/+1 |
| | |||||
* | binding icon | Aleksey Kladov | 2018-12-21 | 2 | -2/+5 |
| | |||||
* | moar icons | Aleksey Kladov | 2018-12-21 | 3 | -4/+29 |
| | |||||
* | more icons | Aleksey Kladov | 2018-12-21 | 1 | -1/+1 |
| | |||||
* | specify completion item kind | Aleksey Kladov | 2018-12-21 | 4 | -12/+17 |
| | |||||
* | cleanup | Aleksey Kladov | 2018-12-21 | 4 | -29/+34 |
| | |||||
* | introduce ComletionItemKind | Aleksey Kladov | 2018-12-21 | 6 | -34/+28 |
| | |||||
* | rename completion kind | Aleksey Kladov | 2018-12-21 | 1 | -6/+6 |
| | |||||
* | Merge #315 | bors[bot] | 2018-12-21 | 8 | -770/+832 |
|\ | | | | | | | | | | | | | | | | | | | | | 315: Split completion into manageable components r=matklad a=matklad The main idea here is to do completion in two phases: * first, we figure out surrounding context * then, we run a series of completers on the given context. Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | cleanup | Aleksey Kladov | 2018-12-21 | 5 | -15/+7 |
| | | |||||
| * | docs | Aleksey Kladov | 2018-12-21 | 7 | -167/+181 |
| | | |||||
| * | rename tests | Aleksey Kladov | 2018-12-21 | 1 | -8/+8 |
| | | |||||
| * | scope-based copmletions on original file | Aleksey Kladov | 2018-12-21 | 4 | -321/+177 |
| | |