Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use inline snapshots in complete_keyword | Simon Bihel | 2019-06-04 | 14 | -644/+580 |
| | |||||
* | Merge #1369 | bors[bot] | 2019-06-02 | 5 | -33/+61 |
|\ | | | | | | | | | | | | | | | 1369: don't cache parses twice r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | don't cache parses twice | Aleksey Kladov | 2019-06-02 | 5 | -33/+61 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | | Merge #1368 | bors[bot] | 2019-06-02 | 3 | -26/+28 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | 1368: Store referece instead of full token tree in tokenbuffer r=matklad a=edwin0cheng This PR try to minimize the memory allocation in converting `SyntaxNode` to `TokenTree` by using reference isnteead of full token tree in `TokenBuffer`. Note that the final goal is replace `TokenTree` with TokenBuffer such that there is no conversion between them. Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | unnecessary paranthesis | Edwin Cheng | 2019-06-02 | 1 | -1/+1 |
| | | |||||
| * | Store referece in tokenbuffer | Edwin Cheng | 2019-06-02 | 3 | -26/+28 |
| | | |||||
* | | collect macro queries | Aleksey Kladov | 2019-06-02 | 1 | -0/+3 |
| | | |||||
* | | add AstDatabase | Aleksey Kladov | 2019-06-02 | 17 | -98/+186 |
| | | |||||
* | | collect types and bodies | Aleksey Kladov | 2019-06-01 | 1 | -0/+4 |
| | | |||||
* | | collect impl source maps | Aleksey Kladov | 2019-06-01 | 3 | -11/+2 |
| | | |||||
* | | don't cache ast_id_to_node | Aleksey Kladov | 2019-06-01 | 2 | -1/+1 |
| | | |||||
* | | show macro expanded trees in the stats as well | Aleksey Kladov | 2019-06-01 | 1 | -7/+8 |
|/ | |||||
* | Merge #1360 | bors[bot] | 2019-06-01 | 6 | -9/+55 |
|\ | | | | | | | | | | | | | | | | | | | 1360: Improve goto definition for MBE r=matklad a=edwin0cheng This PR improve the macro resolution for goto definition and expression macro invocation by using proper path resolution for external macros. Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Improve goto definition for MBE | Edwin Cheng | 2019-06-01 | 6 | -9/+55 |
| | | |||||
* | | Merge #1359 | bors[bot] | 2019-06-01 | 2 | -3/+5 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 1359: don't poison mutex around chalk r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | don't poison mutex around chalk | Aleksey Kladov | 2019-06-01 | 2 | -3/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We use panics for cancellation, so we could trigger panic while holding the solver. std::sync::Mutex will be poisoned as a result, which and all further attempts to use solver (from other threads) will panic as well. This commit switches to parking_lot::Mutex which just unlocks on panic. | ||||
* | | | apply profile filter to top-level entries only | Aleksey Kladov | 2019-06-01 | 1 | -7/+6 |
| | | | |||||
* | | | rename | Aleksey Kladov | 2019-06-01 | 6 | -80/+86 |
| | | | |||||
* | | | move subs inside | Aleksey Kladov | 2019-06-01 | 1 | -4/+2 |
|/ / | |||||
* | | use sync queries for join lines and friends | Aleksey Kladov | 2019-05-31 | 1 | -5/+11 |
| | | |||||
* | | add sync requests | Aleksey Kladov | 2019-05-31 | 2 | -43/+56 |
| | | |||||
* | | cleanup | Aleksey Kladov | 2019-05-31 | 1 | -39/+42 |
| | | |||||
* | | cleanup | Aleksey Kladov | 2019-05-31 | 1 | -35/+48 |
| | | |||||
* | | simplify | Aleksey Kladov | 2019-05-31 | 1 | -51/+52 |
| | | |||||
* | | move completed requests to a separate file | Aleksey Kladov | 2019-05-31 | 5 | -80/+114 |
| | | |||||
* | | simplify | Aleksey Kladov | 2019-05-31 | 1 | -3/+3 |
| | | |||||
* | | introduce constant | Aleksey Kladov | 2019-05-31 | 1 | -7/+13 |
| | | |||||
* | | minor | Aleksey Kladov | 2019-05-31 | 1 | -1/+1 |
|/ | |||||
* | 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 | 8 | -55/+82 |
| | |||||
* | add tests for primitive types | Aleksey Kladov | 2019-05-30 | 5 | -30/+44 |
| | |||||
* | add built-in types to scopes | Aleksey Kladov | 2019-05-30 | 6 | -24/+48 |
| | |||||
* | add list of builtin types | Aleksey Kladov | 2019-05-30 | 2 | -3/+29 |
| | |||||
* | add ModuleDef::BuiltInType | Aleksey Kladov | 2019-05-30 | 5 | -10/+61 |
| | |||||
* | switch to upstream salsa | Aleksey Kladov | 2019-05-30 | 1 | -1/+1 |
| | |||||
* | :arrow_up: parking_lot | Aleksey Kladov | 2019-05-30 | 5 | -5/+2 |
| | |||||
* | 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 | ||||
* | Merge #1346 | bors[bot] | 2019-05-29 | 5 | -2/+5 |
|\ | | | | | | | | | | | | | | | 1346: bump timeout for CI r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | bump timeout for CI | Aleksey Kladov | 2019-05-29 | 1 | -1/+1 |
| | | |||||
| * | add cacellation checks to expensive queries | Aleksey Kladov | 2019-05-29 | 3 | -0/+3 |
| | | |||||
| * | less noisy status | Aleksey Kladov | 2019-05-29 | 1 | -1/+1 |
| | | |||||
* | | Highlight primitive types | Laurențiu Nicola | 2019-05-29 | 2 | -42/+55 |
|/ | |||||
* | optimization: cancel backlog in onEnter | Aleksey Kladov | 2019-05-29 | 2 | -3/+16 |
| | |||||
* | add latest requests to status page | Aleksey Kladov | 2019-05-29 | 3 | -12/+67 |
| | |||||
* | log the actual time of requests | Aleksey Kladov | 2019-05-29 | 1 | -16/+31 |
| | |||||
* | trigger garbage collection *after* requests, not before | Aleksey Kladov | 2019-05-29 | 1 | -2/+5 |
| | |||||
* | more perf logging | Aleksey Kladov | 2019-05-29 | 1 | -3/+8 |
| | |||||
* | silnce profiling in tests | Aleksey Kladov | 2019-05-29 | 1 | -1/+2 |
| | |||||
* | flip Into to From | Aleksey Kladov | 2019-05-29 | 1 | -6/+6 |
| | |||||
* | show error offsets in tests | Aleksey Kladov | 2019-05-29 | 46 | -290/+299 |
| |