about summary refs log tree commit diff
path: root/crates/rust-analyzer/src/dispatch.rs
AgeCommit message (Collapse)AuthorLines
2022-06-02Bring the version command output in line with other rust toolsLukas Wirth-2/+3
2022-06-01Sync handlers cannot be cancelledLukas Wirth-8/+6
2022-06-01fix: Fix completions disappearing when typing two keys in quick successionLukas Wirth-45/+50
2022-04-27SimplifyLukas Wirth-18/+18
2022-04-24minor: clarify error messageAleksey Kladov-1/+1
Clarify that the server is a whole is OK, and that it's only a single requests that's dead
2022-04-09minor: bump lsp-server versionLukas Wirth-1/+5
2022-03-12fix clippy::needless_borrowMatthias Krüger-1/+1
2021-08-30Merge #10080bors[bot]-46/+89
10080: internal: don't shut up the compiler when it says the code's buggy r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-08-30internal: don't shut up the compiler when it says the code's buggyAleksey Kladov-46/+89
Wrapping state-modifying functions into a `catch_unwind` is wrong -- to do retry after failure, you need to have transactional semantics!
2021-08-30switch `log` crate to `tracing`Dezhi Wu-2/+2
2021-08-26minor: nicer way to defeat disjoint closure capturesAleksey Kladov-2/+4
Thanks https://internals.rust-lang.org/t/feature-idea-edition-dependent-names-replacing-standard-library-items/15198/27?u=matklad!
2021-08-22internal: incentivize rust-analyzed developers to fix panicsAleksey Kladov-19/+36
It's good that rust-analyzer doesn't belly-up on a panic in some random assist. It is less good that rust-analyzer devs only know that the assists are buggy when they are actively looking at the logs.
2021-08-20internal: prep to 2021 editionAleksey Kladov-2/+4
2021-06-13clippy::useless_returnMaan2003-2/+2
2021-05-27Update salsaJonas Schievink-2/+2
2021-05-08internal: add rust-analyzer version to panic contextAleksey Kladov-4/+17
2020-10-30Respond with JSON-RPC error if we failed to deserialize requestAleksey Kladov-17/+23
Historically, we intentinally violated JSON-RPC spec here by hard crashing. The idea was to poke both the clients and servers to fix stuff. However, this is confusing for server implementors, and falls down in one important place -- protocol extension are not always backwards compatible, which causes crashes simply due to version mismatch. We had once such case with our own extension, and one for semantic tokens. So let's be less adventerous and just err on the err side!
2020-10-23Fix panic contextAleksey Kladov-3/+3
2020-09-29More panic_contextAleksey Kladov-1/+3
2020-09-29Add panic_context module for better panic messagesAleksey Kladov-2/+5
2020-06-26MinorAleksey Kladov-1/+1
2020-06-25SimplifyAleksey Kladov-25/+19
2020-06-25Add NotificationDispatcherAleksey Kladov-0/+39
2020-06-25Move request dispatcher to a separate fileAleksey Kladov-0/+137