Fetch code actions on cursor movement instead of on-demand
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
763d57c94a
commit
2fcdcac080
@@ -464,7 +464,7 @@ impl FindBar {
|
||||
self.pending_search = Some(cx.spawn(|this, mut cx| async move {
|
||||
match ranges.await {
|
||||
Ok(ranges) => {
|
||||
if let Some(editor) = cx.read(|cx| editor.upgrade(cx)) {
|
||||
if let Some(editor) = editor.upgrade(&cx) {
|
||||
this.update(&mut cx, |this, cx| {
|
||||
this.highlighted_editors.insert(editor.downgrade());
|
||||
editor.update(cx, |editor, cx| {
|
||||
|
||||
Reference in New Issue
Block a user