LSP: Fix preview not showing at a decent size

ammend f772cb8e11
This commit is contained in:
Olivier Goffart 2024-10-02 10:50:46 +02:00
parent 34fc24e4e0
commit 4abc35a5c4

View file

@ -1293,7 +1293,7 @@ fn set_preview_factory(
let api = ui.global::<ui::Api>();
api.set_preview_area(factory);
api.set_resize_to_preferred_size(behavior == LoadBehavior::Load);
api.set_resize_to_preferred_size(behavior != LoadBehavior::Reload);
}
/// Highlight the element pointed at the offset in the path.