We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 047f997 commit 06a6e6aCopy full SHA for 06a6e6a
src-tauri/src/plugins/mod.rs
@@ -78,7 +78,7 @@ pub trait LanguagePlugin: Send + Sync {
78
if let Some(config) = self.get_config() {
79
if let Some(run_cmd) = &config.run_command {
80
return if let Some(path) = file_path {
81
- let final_cmd = if self.get_execute_home().is_some() {
+ if self.get_execute_home().is_some() {
82
// 如果有执行主目录,在整个命令前面加 ./
83
let cmd_with_file = run_cmd.replace("$filename", path);
84
if cmd_with_file.starts_with("./") {
@@ -88,8 +88,7 @@ pub trait LanguagePlugin: Send + Sync {
88
}
89
} else {
90
run_cmd.replace("$filename", path)
91
- };
92
- final_cmd
+ }
93
94
let base_cmd = run_cmd
95
.split_whitespace()
0 commit comments