Refactor out the node runtime crate and hook up all related imports
This commit is contained in:
parent
0ef9cefe0f
commit
941da24f73
21 changed files with 78 additions and 79 deletions
|
@ -1,21 +1,17 @@
|
|||
use anyhow::Context;
|
||||
use gpui::executor::Background;
|
||||
pub use language::*;
|
||||
use node_runtime::NodeRuntime;
|
||||
use rust_embed::RustEmbed;
|
||||
use std::{borrow::Cow, str, sync::Arc};
|
||||
use theme::ThemeRegistry;
|
||||
use util::http::HttpClient;
|
||||
|
||||
mod c;
|
||||
mod elixir;
|
||||
mod github;
|
||||
mod go;
|
||||
mod html;
|
||||
mod json;
|
||||
mod language_plugin;
|
||||
mod lua;
|
||||
mod node_runtime;
|
||||
mod python;
|
||||
mod ruby;
|
||||
mod rust;
|
||||
|
@ -37,13 +33,10 @@ mod yaml;
|
|||
struct LanguageDir;
|
||||
|
||||
pub fn init(
|
||||
http: Arc<dyn HttpClient>,
|
||||
background: Arc<Background>,
|
||||
languages: Arc<LanguageRegistry>,
|
||||
themes: Arc<ThemeRegistry>,
|
||||
node_runtime: Arc<NodeRuntime>,
|
||||
) {
|
||||
let node_runtime = NodeRuntime::new(http, background);
|
||||
|
||||
for (name, grammar, lsp_adapter) in [
|
||||
(
|
||||
"c",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue