diff options
| author | bors <bors@rust-lang.org> | 2023-11-24 14:06:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-24 14:06:07 +0000 |
| commit | fec3828c5f28db2f400b4b21897f3e3fd8249ee3 (patch) | |
| tree | 3d168df840a35d82058024aacaba13a186bf0bd4 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 87337283235bb4056fb8f8e06127d7e44e58322c (diff) | |
| parent | 9c8727eea5ba01c87cf384b1864e7ce86f31111d (diff) | |
| download | rust-fec3828c5f28db2f400b4b21897f3e3fd8249ee3.tar.gz rust-fec3828c5f28db2f400b4b21897f3e3fd8249ee3.zip | |
Auto merge of #15846 - jprochazk:disable-error-notification, r=Veykril
editor/code: add option to suppress error notifications Fixes https://github.com/rust-lang/rust-analyzer/issues/14193 - Added the `rust-analyzer.showRequestFailedErrorNotification` configuration option, which defaults to `true` - If `rust-analyzer.showRequestFailedErrorNotification` is set to `true`, the current behavior is preserved. - If `rust-analyzer.showRequestFailedErrorNotification` is set to `false`, no error toasts will be displayed for any of the failed requests caused by panics in r-a. This _only_ applies to events that are triggered "implicitly", such as `textDocument/hover`. To test this, you can manually introduce a panic in one of the language server LSP handlers for non-command events. I added an explicit `panic!()` in the `textDocument/hover` event handler: #### `rust-analyzer.showRequestFailedErrorNotification` set to `true` (default) [2023-11-07 17-17-48.webm](https://github.com/rust-lang/rust-analyzer/assets/1665677/d0408ab8-79d1-42cf-a4e7-94e99d9783ec) #### `rust-analyzer.showRequestFailedErrorNotification` set to `false` [2023-11-07 17-16-49.webm](https://github.com/rust-lang/rust-analyzer/assets/1665677/0496d8d0-fb53-4bc6-a279-1a47f412dbdb)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
