@@ -15,8 +15,6 @@ use crate::ui::{self, Popup, Prompt, PromptEvent};
16use std::path::PathBuf;
16use std::path::PathBuf;
20use helix_view::{
18use helix_view::{
21 document::Mode,
19 document::Mode,
22 view::{View, PADDING},
20 view::{View, PADDING},
@@ -853,6 +851,7 @@ pub fn exit_select_mode(cx: &mut Context) {
855fn goto(cx: &mut Context, locations: Vec<lsp::Location>) {
853fn goto(cx: &mut Context, locations: Vec<lsp::Location>) {
854+ let executor = cx.executor;
856 let doc = cx.doc();
855 let doc = cx.doc();
858 doc.mode = Mode::Normal;
857 doc.mode = Mode::Normal;
@@ -876,7 +875,6 @@ fn goto(cx: &mut Context, locations: Vec<lsp::Location>) {
876 format!("{}:{}", file, line).into()
875 format!("{}:{}", file, line).into()
878 move |editor: &mut Editor, item| {
877 move |editor: &mut Editor, item| {
879− let executor = smol::Executor::new();
880 editor.open(PathBuf::from(item.uri.path()), &executor);
878 editor.open(PathBuf::from(item.uri.path()), &executor);
881 let mut doc = &mut editor.view_mut().doc;
879 let mut doc = &mut editor.view_mut().doc;
882 let definition_pos = item.range.start;
880 let definition_pos = item.range.start;