优化folder打开逻辑

This commit is contained in:
xintaofei
2026-03-25 18:24:32 +08:00
parent b330a4f936
commit 388f92637c
9 changed files with 119 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ use tokio::sync::Mutex;
static BOOTSTRAP_FOLDER_COMMANDS_LOCK: Mutex<()> = Mutex::const_new(());
fn load_package_scripts_as_commands(folder_path: &str) -> Vec<(String, String)> {
pub(crate) fn load_package_scripts_as_commands(folder_path: &str) -> Vec<(String, String)> {
let mut has_package_json = false;
let mut has_pnpm_lock = false;
let mut has_yarn_lock = false;