Skip to content

Commit 60fbec4

Browse files
authored
Merge pull request #1019 from JetBrains/rival/target-eap-5
Target eap 5
2 parents 29a6c52 + 5600f2e commit 60fbec4

File tree

14 files changed

+33
-179
lines changed

14 files changed

+33
-179
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-arm/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies {
2121
intellijPlatform {
2222
rider(platformVersion, false)
2323
jetbrainsRuntime()
24+
bundledModules("intellij.json.split")
2425
bundledPlugins("com.intellij.modules.json")
2526
}
2627

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cloud-shell/src/main/kotlin/com/microsoft/azure/toolkit/intellij/cloudshell/controlchannel/DownloadControlMessageHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import com.intellij.openapi.vfs.LocalFileSystem
1717
import com.intellij.platform.ide.progress.withBackgroundProgress
1818
import com.microsoft.azure.toolkit.intellij.cloudshell.actions.RevealFileAction
1919
import com.microsoft.azure.toolkit.intellij.cloudshell.rest.CloudConsoleService
20-
import io.ktor.util.*
2120
import kotlinx.coroutines.CoroutineScope
2221
import kotlinx.coroutines.Dispatchers
2322
import kotlinx.coroutines.launch
2423
import kotlinx.coroutines.withContext
24+
import kotlin.io.path.extension
2525
import kotlin.io.path.moveTo
2626

2727
@Service(Service.Level.PROJECT)

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-monitor/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies {
2020
intellijPlatform {
2121
rider(platformVersion, false)
2222
jetbrainsRuntime()
23-
bundledModule("intellij.libraries.microba")
23+
bundledModules("intellij.libraries.microba", "intellij.json.split")
2424
bundledPlugins(listOf("com.intellij.properties", "com.intellij.modules.json"))
2525
}
2626

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-vm/src/main/java/com/microsoft/azure/toolkit/intellij/vm/runtarget/AzureVmTargetType.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
import java.util.List;
3636
import java.util.function.Supplier;
3737

38+
import static com.jetbrains.plugins.remotesdk.target.ssh.target.SshTargetTypeKt.handleSshTargetTypeBrowsing;
39+
3840
@Getter
3941
public class AzureVmTargetType extends TargetEnvironmentType<AzureVmTargetEnvironmentConfiguration> implements BrowsableTargetEnvironmentType {
4042
public static final String TYPE_ID = "Microsoft.Compute/virtualMachines";
@@ -117,7 +119,7 @@ public final void actionPerformed(ActionEvent it) {
117119
if (configuration instanceof SshTargetEnvironmentConfiguration) {
118120
final SshConfig sshConfig = ((SshTargetEnvironmentConfiguration) configuration).findSshConfig(project);
119121
final SshUiData uiData = sshConfig != null ? new SshUiData(sshConfig, true) : null;
120-
SshTargetType.Companion.handleBrowsing$intellij_remoteRun(uiData, project, title, component, textComponentAccessor);
122+
handleSshTargetTypeBrowsing(uiData, project, title, component, textComponentAccessor);
121123
} else {
122124
Messages.showWarningDialog(component, RemoteSdkBundle.message("dialog.message.got.unexpected.settings.for.browsing", new Object[0]), title);
123125
}

PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet-aspire/src/main/kotlin/com/microsoft/azure/toolkit/intellij/aspire/FunctionProjectSessionDebugProfile.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ import javax.swing.Icon
1919

2020
class FunctionProjectSessionDebugProfile(
2121
private val sessionId: String,
22-
projectName: String,
22+
projectPath: Path,
2323
dotnetExecutable: DotNetExecutable,
2424
private val dotnetRuntime: DotNetCoreRuntime,
2525
private val sessionProcessEventListener: ProcessListener,
2626
private val sessionProcessLifetime: Lifetime,
2727
aspireHostProjectPath: Path?
28-
) : ProjectSessionProfile(projectName, dotnetExecutable, aspireHostProjectPath), IRiderDebuggable {
28+
) : ProjectSessionProfile(projectPath, dotnetExecutable, aspireHostProjectPath, true), IRiderDebuggable {
2929

3030
override fun getIcon(): Icon = IntelliJAzureIcons.getIcon(AzureIcons.FunctionApp.RUN)
3131

PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet-aspire/src/main/kotlin/com/microsoft/azure/toolkit/intellij/aspire/FunctionProjectSessionProcessLauncher.kt

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Copyright 2018-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the MIT license.
33
*/
44

5+
@file:Suppress("UnstableApiUsage")
6+
57
package com.microsoft.azure.toolkit.intellij.aspire
68

79
import com.intellij.execution.executors.DefaultDebugExecutor
@@ -19,6 +21,8 @@ import com.jetbrains.rd.util.lifetime.Lifetime
1921
import com.jetbrains.rider.aspire.generated.CreateSessionRequest
2022
import com.jetbrains.rider.aspire.run.AspireHostConfiguration
2123
import com.jetbrains.rider.aspire.sessionHost.projectLaunchers.SessionProcessLauncherExtension
24+
import com.jetbrains.rider.aspire.sessionHost.projectLaunchers.getAspireHostRunConfiguration
25+
import com.jetbrains.rider.aspire.sessionHost.projectLaunchers.getDotNetRuntime
2226
import com.jetbrains.rider.model.runnableProjectsModel
2327
import com.jetbrains.rider.projectView.solution
2428
import com.jetbrains.rider.runtime.DotNetExecutable
@@ -27,7 +31,6 @@ import kotlinx.coroutines.Dispatchers
2731
import kotlinx.coroutines.withContext
2832
import java.nio.file.Path
2933
import kotlin.io.path.Path
30-
import kotlin.io.path.nameWithoutExtension
3134

3235
class FunctionProjectSessionProcessLauncher : SessionProcessLauncherExtension {
3336
companion object {
@@ -64,12 +67,12 @@ class FunctionProjectSessionProcessLauncher : SessionProcessLauncherExtension {
6467
) ?: return
6568
val runtime = getDotNetRuntime(executable, project) ?: return
6669

67-
val projectName = Path(sessionModel.projectPath).nameWithoutExtension
70+
val projectPath = Path(sessionModel.projectPath)
6871
val aspireHostProjectPath = aspireHostRunConfig?.let { Path(it.parameters.projectFilePath) }
6972

7073
val profile = getRunProfile(
7174
sessionId,
72-
projectName,
75+
projectPath,
7376
executable,
7477
runtime,
7578
sessionProcessEventListener,
@@ -111,12 +114,12 @@ class FunctionProjectSessionProcessLauncher : SessionProcessLauncherExtension {
111114
) ?: return
112115
val runtime = getDotNetRuntime(executable, project) ?: return
113116

114-
val projectName = Path(sessionModel.projectPath).nameWithoutExtension
117+
val projectPath = Path(sessionModel.projectPath)
115118
val aspireHostProjectPath = aspireHostRunConfig?.let { Path(it.parameters.projectFilePath) }
116119

117120
val profile = getDebugProfile(
118121
sessionId,
119-
projectName,
122+
projectPath,
120123
executable,
121124
runtime,
122125
sessionProcessEventListener,
@@ -162,15 +165,15 @@ class FunctionProjectSessionProcessLauncher : SessionProcessLauncherExtension {
162165

163166
private fun getRunProfile(
164167
sessionId: String,
165-
projectName: String,
168+
projectPath: Path,
166169
dotnetExecutable: DotNetExecutable,
167170
dotnetRuntime: DotNetCoreRuntime,
168171
sessionProcessEventListener: ProcessListener,
169172
sessionProcessLifetime: Lifetime,
170173
aspireHostProjectPath: Path?
171174
) = FunctionProjectSessionRunProfile(
172175
sessionId,
173-
projectName,
176+
projectPath,
174177
dotnetExecutable,
175178
dotnetRuntime,
176179
sessionProcessEventListener,
@@ -180,15 +183,15 @@ class FunctionProjectSessionProcessLauncher : SessionProcessLauncherExtension {
180183

181184
private fun getDebugProfile(
182185
sessionId: String,
183-
projectName: String,
186+
projectPath: Path,
184187
dotnetExecutable: DotNetExecutable,
185188
dotnetRuntime: DotNetCoreRuntime,
186189
sessionProcessEventListener: ProcessListener,
187190
sessionProcessLifetime: Lifetime,
188191
aspireHostProjectPath: Path?
189192
) = FunctionProjectSessionDebugProfile(
190193
sessionId,
191-
projectName,
194+
projectPath,
192195
dotnetExecutable,
193196
dotnetRuntime,
194197
sessionProcessEventListener,

PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet-aspire/src/main/kotlin/com/microsoft/azure/toolkit/intellij/aspire/FunctionProjectSessionRunProfile.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ import javax.swing.Icon
1919

2020
class FunctionProjectSessionRunProfile(
2121
private val sessionId: String,
22-
projectName: String,
22+
projectPath: Path,
2323
dotnetExecutable: DotNetExecutable,
2424
private val dotnetRuntime: DotNetCoreRuntime,
2525
private val sessionProcessEventListener: ProcessListener,
2626
private val sessionProcessLifetime: Lifetime,
2727
aspireHostProjectPath: Path?
28-
) : ProjectSessionProfile(projectName, dotnetExecutable, aspireHostProjectPath) {
28+
) : ProjectSessionProfile(projectPath, dotnetExecutable, aspireHostProjectPath, false) {
2929

3030
override fun getIcon(): Icon = IntelliJAzureIcons.getIcon(AzureIcons.FunctionApp.RUN)
3131

PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet-aspire/src/main/kotlin/com/microsoft/azure/toolkit/intellij/aspire/FunctionSessionExecutableFactory.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ import com.intellij.openapi.project.Project
1616
import com.intellij.util.io.systemIndependentPath
1717
import com.jetbrains.rider.aspire.generated.CreateSessionRequest
1818
import com.jetbrains.rider.aspire.run.AspireHostConfiguration
19+
import com.jetbrains.rider.aspire.sessionHost.getLaunchProfile
20+
import com.jetbrains.rider.aspire.sessionHost.mergeArguments
21+
import com.jetbrains.rider.aspire.sessionHost.mergeEnvironmentVariables
1922
import com.jetbrains.rider.aspire.settings.AspireSettings
2023
import com.jetbrains.rider.aspire.util.MSBuildPropertyService
2124
import com.jetbrains.rider.aspire.util.MSBuildPropertyService.ProjectRunProperties

PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet-aspire/src/main/kotlin/com/microsoft/azure/toolkit/intellij/aspire/TempFunctionProjectSessionProcessLauncherUtils.kt

Lines changed: 0 additions & 51 deletions
This file was deleted.

PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet-aspire/src/main/kotlin/com/microsoft/azure/toolkit/intellij/aspire/TempSessionExecutableFactoryUtils.kt

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)