mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-18 19:21:38 +00:00
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]( |
||
|---|---|---|
| .. | ||
| ast_inspector.ts | ||
| bootstrap.ts | ||
| client.ts | ||
| commands.ts | ||
| config.ts | ||
| ctx.ts | ||
| debug.ts | ||
| dependencies_provider.ts | ||
| diagnostics.ts | ||
| lang_client.ts | ||
| lsp_ext.ts | ||
| main.ts | ||
| nullable.ts | ||
| persistent_state.ts | ||
| run.ts | ||
| rust_project.ts | ||
| snippets.ts | ||
| tasks.ts | ||
| toolchain.ts | ||
| undefinable.ts | ||
| util.ts | ||