Apply file-system operations coming from an LSP code action
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
982e90539d
commit
a172c3c5c6
@@ -2077,8 +2077,13 @@ impl Editor {
|
||||
Some((buffer, action))
|
||||
})?;
|
||||
|
||||
Some(workspace.project().update(cx, |project, cx| {
|
||||
let apply_code_actions = workspace.project().update(cx, |project, cx| {
|
||||
project.apply_code_action(buffer, action, cx)
|
||||
});
|
||||
Some(cx.spawn(|workspace, cx| async move {
|
||||
let buffers = apply_code_actions.await?;
|
||||
|
||||
Ok(())
|
||||
}))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user