Rename LspAdapterTrait to LspAdapter and LspAdapter to CachedLspAdapter
This commit is contained in:
parent
aeb1b89c25
commit
d8b22a200e
9 changed files with 45 additions and 45 deletions
|
@ -3,7 +3,7 @@ use anyhow::{anyhow, Context, Result};
|
|||
use async_trait::async_trait;
|
||||
use client::http::HttpClient;
|
||||
use futures::StreamExt;
|
||||
use language::{LanguageServerName, LspAdapterTrait};
|
||||
use language::{LanguageServerName, LspAdapter};
|
||||
use smol::fs;
|
||||
use std::{any::Any, path::PathBuf, sync::Arc};
|
||||
use util::ResultExt;
|
||||
|
@ -15,7 +15,7 @@ impl PythonLspAdapter {
|
|||
}
|
||||
|
||||
#[async_trait]
|
||||
impl LspAdapterTrait for PythonLspAdapter {
|
||||
impl LspAdapter for PythonLspAdapter {
|
||||
async fn name(&self) -> LanguageServerName {
|
||||
LanguageServerName("pyright".into())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue