Fix relative path opening from project symbols
Co-Authored-By: Max <max@zed.dev>
This commit is contained in:
parent
604fcd8f1d
commit
71149bc7cc
5 changed files with 27 additions and 20 deletions
|
@ -4337,20 +4337,14 @@ async fn test_create_entry(cx: &mut gpui::TestAppContext) {
|
|||
]
|
||||
);
|
||||
|
||||
// ************************************
|
||||
// Note: unsure if this is the best fix for the integration failure, but assuming we want
|
||||
// to keep that behavior, then this test should cover it
|
||||
// ************************************
|
||||
|
||||
// But we can open buffers with '..'
|
||||
// And we cannot open buffers with '..'
|
||||
let result = project
|
||||
.update(cx, |project, cx| {
|
||||
let id = project.worktrees().next().unwrap().read(cx).id();
|
||||
project.open_buffer((id, "../c.rs"), cx)
|
||||
})
|
||||
.await;
|
||||
|
||||
assert!(dbg!(result).is_ok())
|
||||
assert!(result.is_err())
|
||||
}
|
||||
|
||||
async fn search(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue