Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -29,7 +29,7 @@ impl ClangdCandidate {
|
||||
|
||||
#[cfg(feature = "local_fs")]
|
||||
pub async fn find_installed_binary_in_data_dir() -> Option<PathBuf> {
|
||||
let install_root = warp_core::paths::data_dir().join(SERVER_NAME);
|
||||
let install_root = galaxy_core::paths::data_dir().join(SERVER_NAME);
|
||||
if !install_root.is_dir() {
|
||||
return None;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ impl PyrightCandidate {
|
||||
pub async fn find_installed_binary_config(
|
||||
path_env_var: Option<&str>,
|
||||
) -> Option<CustomBinaryConfig> {
|
||||
let install_dir = warp_core::paths::data_dir().join("pyright");
|
||||
let install_dir = galaxy_core::paths::data_dir().join("pyright");
|
||||
let langserver_js = install_dir.join(Self::LANGSERVER_JS_PATH);
|
||||
|
||||
// Check if the JS file exists
|
||||
@@ -137,7 +137,7 @@ impl LanguageServerCandidate for PyrightCandidate {
|
||||
) -> anyhow::Result<()> {
|
||||
log::info!("Installing pyright version {}", metadata.version);
|
||||
|
||||
let install_dir = warp_core::paths::data_dir().join("pyright");
|
||||
let install_dir = galaxy_core::paths::data_dir().join("pyright");
|
||||
|
||||
// Create the installation directory
|
||||
async_fs::create_dir_all(&install_dir)
|
||||
|
||||
@@ -70,7 +70,7 @@ impl RustAnalyzerCandidate {
|
||||
pub async fn find_installed_binary_in_data_dir() -> Option<std::path::PathBuf> {
|
||||
use tokio::process::Command;
|
||||
|
||||
let install_dir = warp_core::paths::data_dir().join(SERVER_NAME);
|
||||
let install_dir = galaxy_core::paths::data_dir().join(SERVER_NAME);
|
||||
if !install_dir.exists() {
|
||||
return None;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ impl TypeScriptLanguageServerCandidate {
|
||||
pub async fn find_installed_binary_config(
|
||||
path_env_var: Option<&str>,
|
||||
) -> Option<CustomBinaryConfig> {
|
||||
let install_dir = warp_core::paths::data_dir().join("typescript-language-server");
|
||||
let install_dir = galaxy_core::paths::data_dir().join("typescript-language-server");
|
||||
|
||||
// Check for the JS file - prefer new path (cli.mjs) over old path (cli.js)
|
||||
let server_js = {
|
||||
@@ -140,7 +140,7 @@ impl LanguageServerCandidate for TypeScriptLanguageServerCandidate {
|
||||
metadata.version
|
||||
);
|
||||
|
||||
let install_dir = warp_core::paths::data_dir().join("typescript-language-server");
|
||||
let install_dir = galaxy_core::paths::data_dir().join("typescript-language-server");
|
||||
|
||||
// Create the installation directory
|
||||
async_fs::create_dir_all(&install_dir)
|
||||
|
||||
Reference in New Issue
Block a user