Consolidate C and C++ LSP adapters

Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-06-03 18:05:43 +02:00
parent 1db4970c5a
commit 55fc2341d8
3 changed files with 137 additions and 171 deletions

View file

@ -4,7 +4,6 @@ use rust_embed::RustEmbed;
use std::{borrow::Cow, str, sync::Arc};
mod c;
mod cpp;
mod installation;
mod json;
mod rust;
@ -26,7 +25,7 @@ pub fn build_language_registry(login_shell_env_loaded: Task<()>) -> LanguageRegi
(
"cpp",
tree_sitter_cpp::language(),
Some(Arc::new(cpp::CppLspAdapter) as Arc<dyn LspAdapter>),
Some(Arc::new(c::CLspAdapter) as Arc<dyn LspAdapter>),
),
(
"json",