diff options
author | Aleksey Kladov <[email protected]> | 2021-04-13 09:48:12 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-04-13 10:09:04 +0100 |
commit | 06a633ff421b764428bb946ced914e59532fe13f (patch) | |
tree | d608b8a7edd630a8b028c117c615ece9a48c4186 /crates/rust-analyzer/src/handlers.rs | |
parent | 04b5fcfdb28f18f4d5279b43c2bb2b3f9c082313 (diff) |
feat: improve performance by delaying computation of fixes for diagnostics
Diffstat (limited to 'crates/rust-analyzer/src/handlers.rs')
-rw-r--r-- | crates/rust-analyzer/src/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/handlers.rs b/crates/rust-analyzer/src/handlers.rs index 85cc8602e..4f0c9d23c 100644 --- a/crates/rust-analyzer/src/handlers.rs +++ b/crates/rust-analyzer/src/handlers.rs | |||
@@ -1182,7 +1182,7 @@ pub(crate) fn publish_diagnostics( | |||
1182 | 1182 | ||
1183 | let diagnostics: Vec<Diagnostic> = snap | 1183 | let diagnostics: Vec<Diagnostic> = snap |
1184 | .analysis | 1184 | .analysis |
1185 | .diagnostics(&snap.config.diagnostics(), file_id)? | 1185 | .diagnostics(&snap.config.diagnostics(), false, file_id)? |
1186 | .into_iter() | 1186 | .into_iter() |
1187 | .map(|d| Diagnostic { | 1187 | .map(|d| Diagnostic { |
1188 | range: to_proto::range(&line_index, d.range), | 1188 | range: to_proto::range(&line_index, d.range), |