Disable nav history in vim scrolls (#32656)

Reland of #30345 to fix merge conflicts with the new skip-completions
option

Fixes #29431
Fixes #17592

Release Notes:

- vim: Scrolls are no longer added to the jumplist
This commit is contained in:
Conrad Irwin
2025-06-12 22:18:22 -06:00
committed by GitHub
parent 0fe35f440d
commit 9166e66519
7 changed files with 208 additions and 119 deletions
@@ -169,6 +169,12 @@ impl EditorLspTestContext {
.expect("Opened test file wasn't an editor")
});
editor.update_in(&mut cx, |editor, window, cx| {
let nav_history = workspace
.read(cx)
.active_pane()
.read(cx)
.nav_history_for_item(&cx.entity());
editor.set_nav_history(Some(nav_history));
window.focus(&editor.focus_handle(cx))
});