Implement CppLspAdapter::name by delegating to CLspAdapter::name

This makes it more evident that both languages share the same language
server.

Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-06-03 17:49:31 +02:00
parent 416496225e
commit 1db4970c5a

View file

@ -8,7 +8,7 @@ pub struct CppLspAdapter;
impl super::LspAdapter for CppLspAdapter {
fn name(&self) -> LanguageServerName {
LanguageServerName("clangd".into())
super::c::CLspAdapter.name()
}
fn fetch_latest_server_version(