Initial impl of NodeRuntime
w/JSON borked and a deadlock :)
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
1a2e509e35
commit
c72d33e029
20 changed files with 435 additions and 375 deletions
|
@ -652,6 +652,7 @@ fn open_bundled_file(
|
|||
mod tests {
|
||||
use super::*;
|
||||
use assets::Assets;
|
||||
use client::test::FakeHttpClient;
|
||||
use editor::{scroll::autoscroll::Autoscroll, DisplayPoint, Editor};
|
||||
use gpui::{
|
||||
executor::Deterministic, AssetSource, MutableAppContext, TestAppContext, ViewHandle,
|
||||
|
@ -1850,7 +1851,12 @@ mod tests {
|
|||
languages.set_executor(cx.background().clone());
|
||||
let languages = Arc::new(languages);
|
||||
let themes = ThemeRegistry::new((), cx.font_cache().clone());
|
||||
languages::init(languages.clone(), themes);
|
||||
languages::init(
|
||||
FakeHttpClient::with_404_response(),
|
||||
cx.background().clone(),
|
||||
languages.clone(),
|
||||
themes,
|
||||
);
|
||||
for name in languages.language_names() {
|
||||
languages.language_for_name(&name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue