Skip to content

Commit 3f18662

Browse files
committed
fix: use the macOS app launcher fallback for PHPStorm
1 parent 1d84967 commit 3f18662

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src-tauri/src/shared/workspaces_core/io.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ fn app_launch_strategy(app: &str) -> Option<LineAwareLaunchStrategy> {
6767
if normalized.contains("visual studio code") || normalized.starts_with("cursor") {
6868
return Some(LineAwareLaunchStrategy::GotoFlag);
6969
}
70+
if normalized == "phpstorm" {
71+
return Some(LineAwareLaunchStrategy::JetBrainsLineColumnFlags);
72+
}
7073
if normalized == "zed" || normalized.starts_with("zed ") {
7174
return Some(LineAwareLaunchStrategy::PathWithLineColumn);
7275
}
@@ -84,6 +87,9 @@ fn app_cli_command(app: &str) -> Option<&'static str> {
8487
if normalized.starts_with("cursor") {
8588
return Some("cursor");
8689
}
90+
if normalized == "phpstorm" {
91+
return Some("phpstorm");
92+
}
8793
if normalized == "zed" || normalized.starts_with("zed ") {
8894
return Some("zed");
8995
}

src-tauri/src/types.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,9 +1052,9 @@ fn default_open_app_targets() -> Vec<OpenAppTarget> {
10521052
OpenAppTarget {
10531053
id: "phpstorm".to_string(),
10541054
label: "PHPStorm".to_string(),
1055-
kind: "command".to_string(),
1056-
app_name: None,
1057-
command: Some(phpstorm_command.to_string()),
1055+
kind: "app".to_string(),
1056+
app_name: Some("PhpStorm".to_string()),
1057+
command: None,
10581058
args: Vec::new(),
10591059
},
10601060
OpenAppTarget {

0 commit comments

Comments
 (0)