IJPL-194963 [rdct] introduce 'idea openUrlOnClient https://example.com' command for RemDev

GitOrigin-RevId: ae047d8e6e7d31db2b4fccd8c712a8cb0b50dc22
This commit is contained in:
Aleksey Pivovarov
2025-08-21 17:45:07 +00:00
committed by intellij-monorepo-bot
parent ec55a5c761
commit 992adf278f
2 changed files with 4 additions and 4 deletions
@@ -146,7 +146,7 @@ public final class AppMode {
List<String> headlessCommands = Arrays.asList(
"ant", "duplocate", "dataSources", "dump-launch-parameters", "dump-shared-index", "traverseUI", "buildAppcodeCache", "format",
"keymap", "update", "inspections", "intentions", "rdserver-headless", "thinClient-headless", "installFrontendPlugins", "installPlugins", "dumpActions",
"cwmHostStatus", "remoteDevStatus", "invalidateCaches", "warmup", "buildEventsScheme", "inspectopedia-generator", "remoteDevShowHelp",
"cwmHostStatus", "remoteDevStatus", "invalidateCaches", "warmup", "openUrlOnClient", "buildEventsScheme", "inspectopedia-generator", "remoteDevShowHelp",
"installGatewayProtocolHandler", "uninstallGatewayProtocolHandler", "appcodeClangModulesDiff", "appcodeClangModulesPrinter", "exit",
"qodanaExcludedPlugins", "project-with-shared-caches", "registerBackendLocationForGateway", "cherryPickAnalyzer", "listBundledPlugins");
return headlessCommands.contains(firstArg) || firstArg.length() < 20 && firstArg.endsWith("inspect");
@@ -77,9 +77,9 @@ internal suspend fun importConfigIfNeeded(
private fun shouldMigrateConfigOnNextRun(args: List<String>): Boolean {
val command = args.firstOrNull()
//currently, migration of config will be performed on the next run only for headless commands from remote dev mode only; later we can enable this behavior for all commands
return command == "cwmHostStatus" || command == "remoteDevStatus" || command == "cwmHost" || command == "invalidateCaches" || command == "remoteDevShowHelp"
|| command == "registerBackendLocationForGateway"
//currently, migration of config will be performed on the next run only for headless commands from remote dev mode only; later we can enable this behavior for all commands
val headlessCommands = listOf("cwmHostStatus", "remoteDevStatus", "cwmHost", "invalidateCaches", "remoteDevShowHelp", "openUrlOnClient", "registerBackendLocationForGateway");
return headlessCommands.contains(command)
}
private suspend fun importConfigHeadless(lockSystemDirsJob: Job, logDeferred: Deferred<Logger>) {