Fix compile and test errors
This commit is contained in:
parent
ad7c1f3c81
commit
c2fca054ae
2 changed files with 3 additions and 3 deletions
|
@ -1,13 +1,12 @@
|
||||||
use anyhow::{anyhow, bail, Result};
|
use anyhow::{anyhow, bail, Result};
|
||||||
use async_compression::futures::bufread::GzipDecoder;
|
|
||||||
use async_tar::Archive;
|
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
pub use language::*;
|
pub use language::*;
|
||||||
use lsp::{LanguageServerBinary, SymbolKind};
|
use lsp::{LanguageServerBinary, SymbolKind};
|
||||||
use schemars::JsonSchema;
|
use schemars::JsonSchema;
|
||||||
use serde_derive::{Deserialize, Serialize};
|
use serde_derive::{Deserialize, Serialize};
|
||||||
use settings::Setting;
|
use settings::Setting;
|
||||||
use smol::{fs, io::BufReader, stream::StreamExt};
|
use smol::{fs, stream::StreamExt};
|
||||||
use std::{any::Any, env::consts, ops::Deref, path::PathBuf, sync::Arc};
|
use std::{any::Any, env::consts, ops::Deref, path::PathBuf, sync::Arc};
|
||||||
use util::{
|
use util::{
|
||||||
async_iife,
|
async_iife,
|
||||||
|
|
|
@ -2388,6 +2388,7 @@ mod tests {
|
||||||
|
|
||||||
#[gpui::test]
|
#[gpui::test]
|
||||||
fn test_bundled_languages(cx: &mut AppContext) {
|
fn test_bundled_languages(cx: &mut AppContext) {
|
||||||
|
cx.set_global(SettingsStore::test(cx));
|
||||||
let mut languages = LanguageRegistry::test();
|
let mut languages = LanguageRegistry::test();
|
||||||
languages.set_executor(cx.background().clone());
|
languages.set_executor(cx.background().clone());
|
||||||
let languages = Arc::new(languages);
|
let languages = Arc::new(languages);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue