Skip to content

Commit 953cb27

Browse files
mchernyavskyhsz
authored andcommitted
Make RustRover (RR type) available for resolving as SDK
1 parent 2f91efa commit 953cb27

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- `RunPluginVerifierTask`: new `runPluginVerifier.verificationReportsFormats` property to control verifier output formats
1414
- `RunPluginVerifierTask`: new `runPluginVerifier.ignoredProblems` property to include a file with list of problems to be ignored in a report
1515
- `RunPluginVerifierTask`: new `runPluginVerifier.freeArgs` property to let pass to the IntelliJ Plugin Verifier custom arguments
16+
- Make RustRover (`RR` type) available for resolving as SDK.
1617

1718
### Fixed
1819

src/main/kotlin/org/jetbrains/intellij/IntelliJPlugin.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ import org.jetbrains.intellij.IntelliJPluginConstants.PLATFORM_TYPE_INTELLIJ_COM
8181
import org.jetbrains.intellij.IntelliJPluginConstants.PLATFORM_TYPE_PHPSTORM
8282
import org.jetbrains.intellij.IntelliJPluginConstants.PLATFORM_TYPE_PYCHARM
8383
import org.jetbrains.intellij.IntelliJPluginConstants.PLATFORM_TYPE_RIDER
84+
import org.jetbrains.intellij.IntelliJPluginConstants.PLATFORM_TYPE_RUSTROVER
8485
import org.jetbrains.intellij.IntelliJPluginConstants.PLUGIN_NAME
8586
import org.jetbrains.intellij.IntelliJPluginConstants.PLUGIN_VERIFIER_REPOSITORY
8687
import org.jetbrains.intellij.IntelliJPluginConstants.PLUGIN_XML_DIR_NAME
@@ -1031,6 +1032,7 @@ abstract class IntelliJPlugin : Plugin<Project> {
10311032
PLATFORM_TYPE_RIDER,
10321033
PLATFORM_TYPE_PYCHARM,
10331034
PLATFORM_TYPE_PHPSTORM,
1035+
PLATFORM_TYPE_RUSTROVER,
10341036
)
10351037

10361038
when {
@@ -1051,6 +1053,7 @@ abstract class IntelliJPlugin : Plugin<Project> {
10511053
PLATFORM_TYPE_RIDER -> "RIDER-"
10521054
PLATFORM_TYPE_PYCHARM -> "PYCHARM-"
10531055
PLATFORM_TYPE_PHPSTORM -> "PHPSTORM-"
1056+
PLATFORM_TYPE_RUSTROVER -> "RUSTROVER-"
10541057
else -> ""
10551058
}
10561059
prefix + version

src/main/kotlin/org/jetbrains/intellij/IntelliJPluginConstants.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ object IntelliJPluginConstants {
129129
const val PLATFORM_TYPE_PYCHARM = "PY"
130130
const val PLATFORM_TYPE_PYCHARM_COMMUNITY = "PC"
131131
const val PLATFORM_TYPE_RIDER = "RD"
132+
const val PLATFORM_TYPE_RUSTROVER = "RR"
132133
const val PLATFORM_TYPE_FLEET = "FLIJ"
133134

134135
val PLATFORM_TYPES = listOf(
@@ -142,6 +143,7 @@ object IntelliJPluginConstants {
142143
PLATFORM_TYPE_PYCHARM,
143144
PLATFORM_TYPE_PYCHARM_COMMUNITY,
144145
PLATFORM_TYPE_RIDER,
146+
PLATFORM_TYPE_RUSTROVER,
145147
PLATFORM_TYPE_FLEET,
146148
)
147149
}

src/main/kotlin/org/jetbrains/intellij/IntelliJPluginExtension.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ abstract class IntelliJPluginExtension @Inject constructor(
105105
* - `PC` - PyCharm Community Edition
106106
* - `PS` - PhpStorm
107107
* - `RD` - Rider
108+
* - `RR` - RustRover
108109
* - `GO` - GoLand
109110
* - `GW` - Gateway
110111
*/

src/main/kotlin/org/jetbrains/intellij/dependency/IdeaDependencyManager.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import org.jetbrains.intellij.IntelliJPluginConstants.PLATFORM_TYPE_INTELLIJ_COM
2121
import org.jetbrains.intellij.IntelliJPluginConstants.PLATFORM_TYPE_INTELLIJ_ULTIMATE
2222
import org.jetbrains.intellij.IntelliJPluginConstants.PLATFORM_TYPE_PHPSTORM
2323
import org.jetbrains.intellij.IntelliJPluginConstants.PLATFORM_TYPE_RIDER
24+
import org.jetbrains.intellij.IntelliJPluginConstants.PLATFORM_TYPE_RUSTROVER
2425
import org.jetbrains.intellij.IntelliJPluginConstants.RELEASE_SUFFIX_SNAPSHOT
2526
import org.jetbrains.intellij.IntelliJPluginConstants.RELEASE_TYPE_SNAPSHOTS
2627
import org.jetbrains.intellij.model.AndroidStudioReleases
@@ -305,6 +306,11 @@ abstract class IdeaDependencyManager @Inject constructor(
305306
},
306307
)
307308

309+
type == PLATFORM_TYPE_RUSTROVER -> RemoteIdeaDependency(
310+
group = "com.jetbrains.intellij.rustrover",
311+
name = "RustRover",
312+
)
313+
308314
type == PLATFORM_TYPE_GATEWAY -> RemoteIdeaDependency(
309315
"com.jetbrains.gateway",
310316
"JetBrainsGateway",

0 commit comments

Comments
 (0)