Show diagnostics in scrollbar (#7175)
This PR implements support for displaying diagnostics in the scrollbar, similar to what is already done for search results, symbols, git diff, ... For example, changing a field name (`text`) without changing the references looks like this in `buffer.rs` (note the red lines in the scrollbar):  As you can see, the errors, warnings, ... are displayed in the scroll bar, which helps to identify possible problems with the current file. Relevant issues: #4866, #6819 Release Notes: - Added diagnostic indicators to the scrollbar
This commit is contained in:
parent
2940a0ebd8
commit
ce4c15dca6
5 changed files with 81 additions and 1 deletions
|
@ -34,6 +34,7 @@ pub struct Scrollbar {
|
|||
pub git_diff: bool,
|
||||
pub selections: bool,
|
||||
pub symbols_selections: bool,
|
||||
pub diagnostics: bool,
|
||||
}
|
||||
|
||||
/// When to show the scrollbar in the editor.
|
||||
|
@ -122,6 +123,10 @@ pub struct ScrollbarContent {
|
|||
///
|
||||
/// Default: true
|
||||
pub symbols_selections: Option<bool>,
|
||||
/// Whether to show diagnostic indicators in the scrollbar.
|
||||
///
|
||||
/// Default: true
|
||||
pub diagnostics: Option<bool>,
|
||||
}
|
||||
|
||||
impl Settings for EditorSettings {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue