diff options
author | Jeremy Kolb <[email protected]> | 2020-07-12 00:12:42 +0100 |
---|---|---|
committer | Jeremy Kolb <[email protected]> | 2020-07-16 15:51:25 +0100 |
commit | d7cd88b1a2169e50140730db4bd451350367e5ff (patch) | |
tree | 3185279ea0b46d16e39ab69e61305b5b4ea93d79 /crates/rust-analyzer/src/diagnostics | |
parent | 9210fcc076808e53e9bde84be26307fc0dc7d688 (diff) |
Mark machine applicable fixes as preferred
This allows us to run the auto fix command from vscode to automatically
fix all diagnostics in the file.
They are also distinguished in the UI.
Diffstat (limited to 'crates/rust-analyzer/src/diagnostics')
-rw-r--r-- | crates/rust-analyzer/src/diagnostics/to_proto.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/diagnostics/to_proto.rs b/crates/rust-analyzer/src/diagnostics/to_proto.rs index 7be3ef984..97f331352 100644 --- a/crates/rust-analyzer/src/diagnostics/to_proto.rs +++ b/crates/rust-analyzer/src/diagnostics/to_proto.rs | |||
@@ -118,6 +118,7 @@ fn map_rust_child_diagnostic( | |||
118 | changes: Some(edit_map), | 118 | changes: Some(edit_map), |
119 | document_changes: None, | 119 | document_changes: None, |
120 | }), | 120 | }), |
121 | is_preferred: Some(true), | ||
121 | }) | 122 | }) |
122 | } | 123 | } |
123 | } | 124 | } |