From 4a5b4e90858d6263231705114cd913cfa989dc38 Mon Sep 17 00:00:00 2001 From: Nikolay Kuznetsov Date: Thu, 10 Aug 2023 16:06:44 +0200 Subject: [PATCH] [rdct] use modern appstarter names in launcher scripts GitOrigin-RevId: 73b12a568d49724d91cc835a75ad32b1ecdc1b48 --- native/XPlatLauncher/src/remote_dev.rs | 4 ++-- native/XPlatLauncher/tests/remote_dev_tests.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/native/XPlatLauncher/src/remote_dev.rs b/native/XPlatLauncher/src/remote_dev.rs index ead20bbfd98c..5bbd2d81d37f 100644 --- a/native/XPlatLauncher/src/remote_dev.rs +++ b/native/XPlatLauncher/src/remote_dev.rs @@ -537,8 +537,8 @@ impl std::fmt::Display for IjStarterCommand { fn get_known_intellij_commands() -> HashMap<&'static str, IjStarterCommand> { std::collections::HashMap::from([ - ("run", IjStarterCommand {ij_command: "cwmHostNoLobby".to_string(), is_project_path_required: true, is_arguments_required: true}), - ("status", IjStarterCommand {ij_command: "cwmHostStatus".to_string(), is_project_path_required: false, is_arguments_required: false}), + ("run", IjStarterCommand {ij_command: "remoteDevHost".to_string(), is_project_path_required: true, is_arguments_required: true}), + ("status", IjStarterCommand {ij_command: "remoteDevStatus".to_string(), is_project_path_required: false, is_arguments_required: false}), ("cwmHostStatus", IjStarterCommand {ij_command: "cwmHostStatus".to_string(), is_project_path_required: false, is_arguments_required: false}), ("remoteDevStatus", IjStarterCommand {ij_command: "remoteDevStatus".to_string(), is_project_path_required: false, is_arguments_required: false}), ("dumpLaunchParameters", IjStarterCommand {ij_command: "dump-launch-parameters".to_string(), is_project_path_required: false, is_arguments_required: false}), diff --git a/native/XPlatLauncher/tests/remote_dev_tests.rs b/native/XPlatLauncher/tests/remote_dev_tests.rs index 62200eed7842..9847c6bdf52c 100644 --- a/native/XPlatLauncher/tests/remote_dev_tests.rs +++ b/native/XPlatLauncher/tests/remote_dev_tests.rs @@ -44,7 +44,7 @@ mod tests { let remote_dev_command = &["run", &project_dir]; let output = run_launcher_ext(&test, &LauncherRunSpec::remote_dev().with_args(remote_dev_command)).stdout; - assert!(output.contains("cwmHostNoLobby"), "output:\n{}", output); + assert!(output.contains("remoteDevHost"), "output:\n{}", output); assert!(output.contains(project_dir), "output:\n{}", output); assert!(!output.contains("Usage: ./remote-dev-server [ij_command_name] [/path/to/project] [arguments...]"), "output:\n{}", output); }