Do not eagerly cancel running tasks

This commit is contained in:
Kirill Bulatov 2023-06-24 23:46:20 +03:00
parent 4d4544f680
commit 11fee4ce42
2 changed files with 115 additions and 46 deletions

View file

@ -2632,7 +2632,7 @@ impl Editor {
}
InlayRefreshReason::NewLinesShown => InvalidationStrategy::None,
InlayRefreshReason::ExcerptEdited => InvalidationStrategy::OnConflict,
InlayRefreshReason::RefreshRequested => InvalidationStrategy::All,
InlayRefreshReason::RefreshRequested => InvalidationStrategy::Forced,
};
let excerpts_to_query = self
@ -2680,7 +2680,6 @@ impl Editor {
.into_iter()
.map(|(position, id, hint)| {
let mut text = hint.text();
// TODO kb styling instead?
if hint.padding_right {
text.push(' ');
}