Fix a bug when extension loading is failed after it's folder is viewed by MacOS finder (#8111)

Fixes #8096

# Bug description

I was experimenting with adding extensions and almost went crazy trying
to make my demo extension work. It appeared that I was copying files
with Finder that creates hidden `.DS_Store` files which interfered with
Zed's loading logic. It assumes that `languages/` directory contains
only directories and never files and so it crashes when meets
`.DS_Store`. This makes any extension stop working after it has been
viewed via Finder

# Change

Check if path is directory when loading extension languages (so it will
skip .DS_Store files)
7bf16f263eIvan Buryak committed on 2/21/2024, 4:46:58 PM· committed by GitHubparentd3745a3
1 file changedLine totals unavailable