Fix directory context paths (#28459)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan
2025-04-09 21:40:46 +00:00
committed by GitHub
parent 23c3f5f410
commit ba767a1998
9 changed files with 135 additions and 99 deletions
+2 -2
View File
@@ -2840,10 +2840,10 @@ pub(crate) fn open_context(
}
}
AssistantContext::Directory(directory_context) => {
let path = directory_context.project_path.clone();
let project_path = directory_context.project_path(cx);
workspace.update(cx, |workspace, cx| {
workspace.project().update(cx, |project, cx| {
if let Some(entry) = project.entry_for_path(&path, cx) {
if let Some(entry) = project.entry_for_path(&project_path, cx) {
cx.emit(project::Event::RevealInProjectPanel(entry.id));
}
})