generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
454 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
.../com/jetbrains/rider/aspire/sessionHost/dotnetProject/DotNetProjectSessionDebugProfile.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.jetbrains.rider.aspire.sessionHost.dotnetProject | ||
|
||
import com.intellij.execution.Executor | ||
import com.intellij.execution.configurations.RunProfile | ||
import com.intellij.execution.process.ProcessListener | ||
import com.intellij.execution.runners.ExecutionEnvironment | ||
import com.jetbrains.rd.util.lifetime.Lifetime | ||
import com.jetbrains.rider.aspire.sessionHost.projectLaunchers.ProjectSessionDebugProfileState | ||
import com.jetbrains.rider.debugger.IRiderDebuggable | ||
import com.jetbrains.rider.runtime.DotNetExecutable | ||
import com.jetbrains.rider.runtime.dotNetCore.DotNetCoreRuntime | ||
import icons.RiderIcons | ||
|
||
class DotNetProjectSessionDebugProfile( | ||
private val sessionId: String, | ||
private val projectName: String, | ||
private val dotnetExecutable: DotNetExecutable, | ||
private val dotnetRuntime: DotNetCoreRuntime, | ||
private val sessionProcessEventListener: ProcessListener, | ||
private val sessionProcessTerminatedListener: ProcessListener, | ||
private val sessionProcessLifetime: Lifetime | ||
) : RunProfile, IRiderDebuggable { | ||
override fun getName() = projectName | ||
|
||
override fun getIcon() = RiderIcons.RunConfigurations.DotNetProject | ||
|
||
override fun getState( | ||
executor: Executor, | ||
environment: ExecutionEnvironment | ||
) = ProjectSessionDebugProfileState( | ||
sessionId, | ||
dotnetExecutable, | ||
dotnetRuntime, | ||
environment, | ||
sessionProcessEventListener, | ||
sessionProcessTerminatedListener, | ||
sessionProcessLifetime | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.