Remove Editor::find_or_create
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
6f9c37851c
commit
bff414cfbc
6 changed files with 63 additions and 28 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue