]> git.lizzy.rs Git - rust.git/commit
Show reason for failed rename refactoring
authorRüdiger Herrmann <ruediger.herrmann@gmx.de>
Mon, 24 Aug 2020 14:37:45 +0000 (16:37 +0200)
committerRüdiger Herrmann <ruediger.herrmann@gmx.de>
Sat, 10 Oct 2020 11:46:10 +0000 (13:46 +0200)
commite90931a2047e6e38f173e2e2f2a24ad648e92e9d
tree0ef92bcd580446c4ea44902f0f959d547a698943
parent05261f5aeb1dcf01c5dfcf3e01826e57b1249ca9
Show reason for failed rename refactoring

Return an error with a meaningful message for requests to
`textDocument/rename` if the operation cannot be performed.
Pass errors raised by rename handling code to the LSP runtime.

As a consequence, the VS Code client shows and logs the request
as if a server-side programming error occured.

Resolves https://github.com/rust-analyzer/rust-analyzer/issues/3981
crates/ide/src/lib.rs
crates/ide/src/references.rs
crates/ide/src/references/rename.rs
crates/rust-analyzer/src/handlers.rs