mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
refactor: DummyClient -> FakeClient
This commit is contained in:
parent
dcb42f68b9
commit
ac5b0548a3
4 changed files with 20 additions and 20 deletions
|
@ -27,7 +27,7 @@ use erg_compiler::module::{SharedCompilerResource, SharedModuleGraph, SharedModu
|
|||
use erg_compiler::ty::HasType;
|
||||
|
||||
pub use molc::RedirectableStdout;
|
||||
use molc::{DummyClient, LangServer};
|
||||
use molc::{FakeClient, LangServer};
|
||||
|
||||
use lsp_types::request::{
|
||||
CallHierarchyIncomingCalls, CallHierarchyOutgoingCalls, CallHierarchyPrepare,
|
||||
|
@ -298,9 +298,9 @@ impl LangServer for Server {
|
|||
|
||||
impl Server {
|
||||
#[allow(unused)]
|
||||
pub fn bind_dummy_client() -> DummyClient<Server> {
|
||||
pub fn bind_fake_client() -> FakeClient<Server> {
|
||||
let (sender, receiver) = std::sync::mpsc::channel();
|
||||
DummyClient::new(Server::new(ErgConfig::default(), Some(sender)), receiver)
|
||||
FakeClient::new(Server::new(ErgConfig::default(), Some(sender)), receiver)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue