rust/crates
Aleksey Kladov 0ee5bd16c9 cancel salsa's validation
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
2019-05-30 10:06:02 +03:00
..
gen_lsp_server updated gen_lsp_server examples 2019-05-22 20:35:12 -05:00
ra_arena Add is_empty to Arena 2019-04-26 11:42:10 -04:00
ra_assists fix typos in mbe tests 2019-05-28 18:46:11 +03:00
ra_batch migrate to salsas interning 2019-04-09 22:51:22 +03:00
ra_cli fix typos in mbe tests 2019-05-28 18:46:11 +03:00
ra_db fix syntax errors in tests 2019-05-28 18:07:39 +03:00
ra_fmt apply T! macro where it is possible 2019-05-15 15:35:47 +03:00
ra_hir add cacellation checks to expensive queries 2019-05-29 22:13:03 +03:00
ra_ide_api cancel salsa's validation 2019-05-30 10:06:02 +03:00
ra_lsp_server bump timeout for CI 2019-05-29 22:14:06 +03:00
ra_mbe fix typos in mbe tests 2019-05-28 18:46:11 +03:00
ra_parser Merge #1328 2019-05-27 07:28:13 +00:00
ra_prof better profilig 2019-05-22 00:00:58 +03:00
ra_project_model Sends cwd info for runnables and code lenses 2019-04-14 10:04:38 +02:00
ra_syntax flip Into to From 2019-05-29 10:31:07 +03:00
ra_text_edit
ra_tt Add more helper func in Cursor 2019-05-27 23:51:52 +08:00
test_utils
thread_worker
tools