Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix clippy::ptr_arg | Alan Du | 2019-06-04 | 1 | -2/+2 |
| | |||||
* | Fix clippy::match_ref_pats | Alan Du | 2019-06-04 | 1 | -6/+6 |
| | |||||
* | Fix clippy::single_match | Alan Du | 2019-06-04 | 1 | -4/+3 |
| | |||||
* | don't cache parses twice | Aleksey Kladov | 2019-06-02 | 2 | -7/+29 |
| | | | | | | | | | Before this commit, `Parse`s for original file ended up two times in salsa's db: first, when we parse original file, and second, when we parse macro or a file. Given that parse trees are the worst ofenders in terms of memory, it makes sense to make sure we store them only once. | ||||
* | collect macro queries | Aleksey Kladov | 2019-06-02 | 1 | -0/+3 |
| | |||||
* | add AstDatabase | Aleksey Kladov | 2019-06-02 | 1 | -2/+3 |
| | |||||
* | collect types and bodies | Aleksey Kladov | 2019-06-01 | 1 | -0/+4 |
| | |||||
* | collect impl source maps | Aleksey Kladov | 2019-06-01 | 1 | -0/+1 |
| | |||||
* | don't cache ast_id_to_node | Aleksey Kladov | 2019-06-01 | 1 | -1/+0 |
| | |||||
* | show macro expanded trees in the stats as well | Aleksey Kladov | 2019-06-01 | 1 | -7/+8 |
| | |||||
* | Improve goto definition for MBE | Edwin Cheng | 2019-06-01 | 2 | -1/+24 |
| | |||||
* | Sort hover results in tests | Laurențiu Nicola | 2019-05-30 | 1 | -2/+8 |
| | |||||
* | update ra_ide_api to use builtins | Aleksey Kladov | 2019-05-30 | 7 | -55/+81 |
| | |||||
* | :arrow_up: parking_lot | Aleksey Kladov | 2019-05-30 | 1 | -1/+0 |
| | |||||
* | cancel salsa's validation | Aleksey Kladov | 2019-05-30 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | This small fix should improve rust-analyzer resopnsivness for real-time operations like onEnter handling. Turns out, salsa's validation can take hundreds of milliseconds, and, in case no changes were made, it won't be triggering any queries. Because we check for cancellation in queries, that means that validation is not cancellable! What this PR does is injecting check_canceled checks into validation, by using salsa's event API, which wasn't meant to be used like this, but, hey, it works! Here's the onEnter handling before and after this change: https://youtu.be/7-ffPzgvH7o | ||||
* | Highlight primitive types | Laurențiu Nicola | 2019-05-29 | 2 | -42/+55 |
| | |||||
* | Merge #1337 | bors[bot] | 2019-05-29 | 24 | -69/+68 |
|\ | | | | | | | | | | | | | | | 1337: Move syntax errors our of syntax tree r=matklad a=matklad I am not really sure if it's a good idea, but `SyntaxError` do not really belong to a `SyntaxTree`. So let's just store them on the side? Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | fix todo | Aleksey Kladov | 2019-05-28 | 1 | -3/+0 |
| | | |||||
| * | fix typos in mbe tests | Aleksey Kladov | 2019-05-28 | 24 | -68/+70 |
| | | |||||
* | | Highlight type names correctly | Laurențiu Nicola | 2019-05-29 | 2 | -3/+20 |
|/ | |||||
* | Merge #1334 | bors[bot] | 2019-05-27 | 1 | -0/+4 |
|\ | | | | | | | | | | | | | | | 1334: check for cancellation during macro expansion r=matklad a=matklad closes #1331 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | specifically profile cancellation | Aleksey Kladov | 2019-05-27 | 1 | -0/+4 |
| | | |||||
* | | make it build again | Pascal Hertleif | 2019-05-27 | 1 | -12/+26 |
| | | |||||
* | | Disable broken struct field rainbowing | Pascal Hertleif | 2019-05-27 | 3 | -23/+7 |
| | | |||||
* | | More clever highlighting, incl draft for structs | Pascal Hertleif | 2019-05-27 | 7 | -407/+152 |
| | | |||||
* | | Hash based on binding name and shadow counter | Pascal Hertleif | 2019-05-27 | 3 | -20/+75 |
| | | |||||
* | | Semantic highlighting spike | Pascal Hertleif | 2019-05-27 | 3 | -35/+345 |
|/ | | | | | | | | | | Very simple approach: For each identifier, set the hash of the range where it's defined as its 'id' and use it in the VSCode extension to generate unique colors. Thus, the generated colors are per-file. They are also quite fragile, and I'm not entirely sure why. Looks like we need to make sure the same ranges aren't overwritten by a later request? | ||||
* | Colorize Rust code as HTML | Aleksey Kladov | 2019-05-25 | 4 | -152/+131 |
| | |||||
* | :arrow_up: rustc | Aleksey Kladov | 2019-05-23 | 58 | -610/+640 |
| | |||||
* | profile highlighting | Aleksey Kladov | 2019-05-23 | 1 | -0/+3 |
| | |||||
* | add union to code_model | Aleksey Kladov | 2019-05-23 | 4 | -0/+11 |
| | |||||
* | Improve highlighting of name refs | Laurențiu Nicola | 2019-05-23 | 2 | -9/+168 |
| | |||||
* | Move NameRef classification logic out of reference_definition | Laurențiu Nicola | 2019-05-23 | 4 | -97/+143 |
| | |||||
* | Merge #1299 | bors[bot] | 2019-05-21 | 1 | -1/+18 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | 1299: Use ThemeColor and add support for light themes r=matklad a=lnicola Part of #1294. - switch to `ThemeColor` - add light and high contrast theme definitions - highlight control flow keywords and `unsafe` Co-authored-by: Laurențiu Nicola <[email protected]> | ||||
| * | Address feedback | Laurențiu Nicola | 2019-05-21 | 1 | -4/+11 |
| | | |||||
| * | Use ThemeColor and add support for light themes | Laurențiu Nicola | 2019-05-21 | 1 | -1/+11 |
| | | |||||
* | | :arrow_up: insta | Aleksey Kladov | 2019-05-21 | 1 | -1/+1 |
|/ | |||||
* | apply T! macro where it is possible | Sergey Parilin | 2019-05-15 | 5 | -13/+13 |
| | |||||
* | expand to syntax node | Aleksey Kladov | 2019-05-14 | 1 | -1/+1 |
| | |||||
* | make AstId untyped | Aleksey Kladov | 2019-05-13 | 3 | -5/+5 |
| | |||||
* | Merge #1257 | bors[bot] | 2019-05-13 | 1 | -1/+2 |
|\ | | | | | | | | | | | | | | | 1257: Implemented tkn! macro for syntax kinds r=matklad a=pasa Implementation of #1248 Co-authored-by: Sergey Parilin <[email protected]> | ||||
| * | Implemented T! macro for syntax kinds | Sergey Parilin | 2019-05-13 | 1 | -1/+2 |
| | | |||||
* | | simplify | Aleksey Kladov | 2019-05-12 | 1 | -1/+1 |
|/ | |||||
* | fill struct fields diagnostic | Sergey Parilin | 2019-05-06 | 1 | -1/+122 |
| | |||||
* | Profile diagnostics. | Marco Groppo | 2019-05-05 | 1 | -0/+2 |
| | |||||
* | Merge #1208 | bors[bot] | 2019-05-04 | 4 | -0/+52 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1208: [WIP] Goto for Macro's r=matklad a=Lapz Adds goto definition for macros. Currently only works for macros in the current crate ~~otherwise it panics~~. Proper macro resolution needs to be added for it to resolve macros in other crates. Todo - [X] Allow goto from macro calls - [X] Fix panics - [x] Add tests ![Screen Recording 2019-04-25 at 18 00 24](https://user-images.githubusercontent.com/19998186/56754499-1dd01c00-6785-11e9-9e9a-1e36de70cfa3.gif) Co-authored-by: Lenard Pratt <[email protected]> | ||||
| * | Added local macro goto | Lenard Pratt | 2019-05-04 | 4 | -0/+52 |
| | | |||||
* | | Differentiate Tuple / FnPtr type constructors by cardinality | Florian Diebold | 2019-05-04 | 1 | -1/+1 |
| | | | | | | | | | | This is necessary because Chalk (reasonably) expects each 'struct' to know how many type parameters it takes. | ||||
* | | revert eagarly clean astd maps | Aleksey Kladov | 2019-05-04 | 1 | -6/+1 |
| | | | | | | | | This causes massive slowdown :-( | ||||
* | | eagarly clean astd maps | Aleksey Kladov | 2019-05-04 | 1 | -0/+6 |
|/ |