Remove Editor::find_or_create

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-03-17 15:13:47 +01:00
parent 6f9c37851c
commit bff414cfbc
6 changed files with 63 additions and 28 deletions

View file

@ -354,7 +354,7 @@ impl ProjectSymbolsView {
.read(cx)
.clip_point_utf16(symbol.range.start, Bias::Left);
let editor = Editor::find_or_create(workspace, buffer, cx);
let editor = workspace.open_project_item::<Editor>(buffer, cx);
editor.update(cx, |editor, cx| {
editor.select_ranges(
[position..position],