Fix unused import warnings
This commit is contained in:
parent
6731d92f60
commit
8b1fb9a2cc
2 changed files with 6 additions and 6 deletions
|
@ -8,7 +8,7 @@ mod tests;
|
||||||
|
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use collections::HashSet;
|
use collections::HashSet;
|
||||||
use gpui::{AppContext, TestAppContext};
|
use gpui::AppContext;
|
||||||
use highlight_map::HighlightMap;
|
use highlight_map::HighlightMap;
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
|
@ -357,13 +357,13 @@ impl CompletionLabel {
|
||||||
|
|
||||||
#[cfg(any(test, feature = "test-support"))]
|
#[cfg(any(test, feature = "test-support"))]
|
||||||
impl LanguageServerConfig {
|
impl LanguageServerConfig {
|
||||||
pub async fn fake(cx: &TestAppContext) -> (Self, lsp::FakeLanguageServer) {
|
pub async fn fake(cx: &gpui::TestAppContext) -> (Self, lsp::FakeLanguageServer) {
|
||||||
Self::fake_with_capabilities(Default::default(), cx).await
|
Self::fake_with_capabilities(Default::default(), cx).await
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn fake_with_capabilities(
|
pub async fn fake_with_capabilities(
|
||||||
capabilites: lsp::ServerCapabilities,
|
capabilites: lsp::ServerCapabilities,
|
||||||
cx: &TestAppContext,
|
cx: &gpui::TestAppContext,
|
||||||
) -> (Self, lsp::FakeLanguageServer) {
|
) -> (Self, lsp::FakeLanguageServer) {
|
||||||
let (server, fake) = lsp::LanguageServer::fake_with_capabilities(capabilites, cx).await;
|
let (server, fake) = lsp::LanguageServer::fake_with_capabilities(capabilites, cx).await;
|
||||||
fake.started
|
fake.started
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use anyhow::{anyhow, Context, Result};
|
use anyhow::{anyhow, Context, Result};
|
||||||
use futures::{io::BufWriter, AsyncRead, AsyncWrite};
|
use futures::{io::BufWriter, AsyncRead, AsyncWrite};
|
||||||
use gpui::{executor, Task, TestAppContext};
|
use gpui::{executor, Task};
|
||||||
use parking_lot::{Mutex, RwLock};
|
use parking_lot::{Mutex, RwLock};
|
||||||
use postage::{barrier, oneshot, prelude::Stream, sink::Sink, watch};
|
use postage::{barrier, oneshot, prelude::Stream, sink::Sink, watch};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
@ -485,13 +485,13 @@ pub struct RequestId<T> {
|
||||||
|
|
||||||
#[cfg(any(test, feature = "test-support"))]
|
#[cfg(any(test, feature = "test-support"))]
|
||||||
impl LanguageServer {
|
impl LanguageServer {
|
||||||
pub async fn fake(cx: &TestAppContext) -> (Arc<Self>, FakeLanguageServer) {
|
pub async fn fake(cx: &gpui::TestAppContext) -> (Arc<Self>, FakeLanguageServer) {
|
||||||
Self::fake_with_capabilities(Default::default(), cx).await
|
Self::fake_with_capabilities(Default::default(), cx).await
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn fake_with_capabilities(
|
pub async fn fake_with_capabilities(
|
||||||
capabilities: ServerCapabilities,
|
capabilities: ServerCapabilities,
|
||||||
cx: &TestAppContext,
|
cx: &gpui::TestAppContext,
|
||||||
) -> (Arc<Self>, FakeLanguageServer) {
|
) -> (Arc<Self>, FakeLanguageServer) {
|
||||||
let stdin = async_pipe::pipe();
|
let stdin = async_pipe::pipe();
|
||||||
let stdout = async_pipe::pipe();
|
let stdout = async_pipe::pipe();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue