zeta2: Use bounded parallelism for tree-sitter indexing + await completion in zeta_cli (#39147)
Also skips indexing files that don't have a suffix that indicates a known language, and skips when the language doesn't have an outline grammar. Release Notes: - N/A --------- Co-authored-by: Agus <agus@zed.dev>
This commit is contained in:
@@ -12833,7 +12833,7 @@ async fn populate_labels_for_symbols(
|
||||
continue;
|
||||
};
|
||||
let language = language_registry
|
||||
.language_for_file_path(Path::new(file_name))
|
||||
.load_language_for_file_path(Path::new(file_name))
|
||||
.await
|
||||
.ok()
|
||||
.or_else(|| {
|
||||
|
||||
@@ -194,7 +194,7 @@ async fn test_editorconfig_support(cx: &mut gpui::TestAppContext) {
|
||||
let file_language = project
|
||||
.read(cx)
|
||||
.languages()
|
||||
.language_for_file_path(file.path.as_std_path());
|
||||
.load_language_for_file_path(file.path.as_std_path());
|
||||
let file_language = cx
|
||||
.background_executor()
|
||||
.block(file_language)
|
||||
|
||||
Reference in New Issue
Block a user