Show symbols located in visible paths before ones located externally

This commit is contained in:
Antonio Scandurra 2022-07-26 14:48:18 +02:00
parent f775cb2947
commit 8552ba15dc
5 changed files with 103 additions and 74 deletions

View file

@ -2589,7 +2589,7 @@ async fn test_project_symbols(cx_a: &mut TestAppContext, cx_b: &mut TestAppConte
// Attempt to craft a symbol and violate host's privacy by opening an arbitrary file.
let mut fake_symbol = symbols[0].clone();
fake_symbol.path = Path::new("/code/secrets").into();
fake_symbol.path.path = Path::new("/code/secrets").into();
let error = project_b
.update(cx_b, |project, cx| {
project.open_buffer_for_symbol(&fake_symbol, cx)