aboutsummaryrefslogtreecommitdiff
path: root/crates/mbe/src/expander.rs
diff options
context:
space:
mode:
authorMichał Muskała <[email protected]>2021-02-17 11:38:11 +0000
committerMichał Muskała <[email protected]>2021-02-17 11:45:17 +0000
commit528a0bcf9b0e4ad1e89d21c9c8df3c55aa3ade00 (patch)
treed019f37897f2902244ff726dacbf19346e23d4d5 /crates/mbe/src/expander.rs
parent2920e7b28b58400a9026e92f28fc0304d71c7376 (diff)
Avoid transmitting unchanged diagnostics
Reading through the code for diagnostics and observing debug logs, I noticed that diagnostics are transmitted after every change for every opened file, even if they haven't changed (especially visible for files with no diagnostics). This change avoids marking files as "changed" if diagnostics are the same to what was already sent before. This will only work if diagnostics are always produced in the same order, but from my limited testing it seems this is the case.
Diffstat (limited to 'crates/mbe/src/expander.rs')
0 files changed, 0 insertions, 0 deletions