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>
ed54665711Max Brunsfeld committed on 2/8/2024, 9:24:49 PM· committed by GitHubparent1da5241
6 files changedLine totals unavailable