Introduce weak_handle methods on ModelContext and ViewContext

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2021-11-29 14:12:53 -08:00
parent 29b616f4cc
commit 4cc1556ca4
7 changed files with 21 additions and 13 deletions

View file

@ -286,7 +286,7 @@ impl FileFinder {
.detach();
Self {
handle: cx.handle().downgrade(),
handle: cx.weak_handle(),
settings,
project,
query_editor,