Make "go to definition" work in project diagnostics
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
d92b40474f
commit
b6685a532c
9 changed files with 79 additions and 37 deletions
|
@ -144,7 +144,7 @@ impl OutlineView {
|
|||
fn toggle(workspace: &mut Workspace, _: &Toggle, cx: &mut ViewContext<Workspace>) {
|
||||
if let Some(editor) = workspace
|
||||
.active_item(cx)
|
||||
.and_then(|item| item.to_any().downcast::<Editor>())
|
||||
.and_then(|item| item.downcast::<Editor>())
|
||||
{
|
||||
let settings = workspace.settings();
|
||||
let buffer = editor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue