Introduce weak_handle methods on ModelContext and ViewContext
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
29b616f4cc
commit
4cc1556ca4
@@ -487,7 +487,7 @@ impl Editor {
|
||||
)
|
||||
});
|
||||
Self {
|
||||
handle: cx.handle().downgrade(),
|
||||
handle: cx.weak_handle(),
|
||||
buffer,
|
||||
display_map,
|
||||
selection_set_id,
|
||||
|
||||
Reference in New Issue
Block a user