Cleanup logic for registering languages and grammars (#7593)

This is a refactor, follow-up to the work we've been doing on loading
WASM language extensions.

Release Notes:

- N/A

---------

Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
Max Brunsfeld
2024-02-08 16:24:49 -05:00
committed by GitHub
co-authored by Marshall
parent 1da5241ef7
commit ed54665711
6 changed files with 873 additions and 901 deletions
+1
View File
@@ -5,6 +5,7 @@ use crate::language_settings::{
use crate::Buffer;
use clock::ReplicaId;
use collections::BTreeMap;
use futures::FutureExt as _;
use gpui::{AppContext, Model};
use gpui::{Context, TestAppContext};
use indoc::indoc;