Improve deactivate simulation

This commit is contained in:
Conrad Irwin
2024-01-04 22:06:52 -07:00
parent 319bfff14e
commit fff415e3e9
5 changed files with 35 additions and 44 deletions
+1 -4
View File
@@ -930,10 +930,7 @@ mod tests {
fn do_work() { «test»(); }
"});
// Deactivating the window dismisses the highlight
cx.update_workspace(|workspace, cx| {
workspace.on_window_activation_changed(cx);
});
cx.cx.cx.deactivate_window();
cx.assert_editor_text_highlights::<LinkGoToDefinitionState>(indoc! {"
fn test() { do_work(); }
fn do_work() { test(); }