mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 02:17:35 +03:00
Skip .DS_Store
files when looking for extension directories (#10046)
This PR makes it so `.DS_Store` files are skipped when trying to load extension directories. Previously it would fail and log an error. Release Notes: - Fixed an issue where the presence of a `.DS_Store` file in the extensions directory would produce an error in the logs.
This commit is contained in:
parent
30fad09dac
commit
aa76182ca7
@ -1107,6 +1107,14 @@ impl ExtensionStore {
|
||||
let Ok(extension_dir) = extension_dir else {
|
||||
continue;
|
||||
};
|
||||
|
||||
if extension_dir
|
||||
.file_name()
|
||||
.map_or(false, |file_name| file_name == ".DS_Store")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Self::add_extension_to_index(fs.clone(), extension_dir, &mut index)
|
||||
.await
|
||||
.log_err();
|
||||
|
Loading…
Reference in New Issue
Block a user