Skip to content

Commit b503991

Browse files
committed
[IMP] update plugin.xml
1 parent ab66615 commit b503991

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

build.gradle.kts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,16 @@ intellijPlatform {
100100
// The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
101101
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
102102
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
103-
channels = providers.gradleProperty("pluginVersion").map { listOf(it.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) }
103+
channels = providers.gradleProperty("pluginVersion").map { version ->
104+
val parts = version.substringBefore('-').split(".")
105+
val major = parts.getOrNull(0)?.toIntOrNull() ?: 0
106+
val minor = parts.getOrNull(1)?.toIntOrNull() ?: 0
107+
var channels = if (minor % 2 == 0) listOf() else listOf("beta")
108+
if (major == 0) {
109+
channels = if (minor % 2 == 0) listOf("beta") else listOf()
110+
}
111+
channels
112+
}
104113
}
105114

106115
pluginVerification {

src/main/kotlin/com/odoo/odools/OdooStatusBarWidget.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class OdooLspStatusWidget(
171171
add(object : AnAction("Go to Settings") {
172172
override fun actionPerformed(e: AnActionEvent) {
173173
com.intellij.openapi.options.ShowSettingsUtil.getInstance()
174-
.showSettingsDialog(project, "OdooLS")
174+
.showSettingsDialog(project, "Odoo")
175175
}
176176
})
177177
}

src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
<depends>com.intellij.modules.platform</depends>
88

9-
<resource-bundle>messages.MyBundle</resource-bundle>
10-
119
<extensions defaultExtensionNs="com.intellij">
1210
<platform.lsp.serverSupportProvider implementation="com.odoo.odools.OdooLSLspServerSupportProvider"/>
1311

@@ -23,6 +21,7 @@
2321
<postStartupActivity implementation="com.odoo.odools.OdooLSInstallationProjectActivity"/>
2422
<fileEditorProvider implementation="com.odoo.odools.HtmlPreviewEditorProvider"/>
2523
<statusBarWidgetFactory
24+
id="OdooLspStatusWidget"
2625
implementation="com.odoo.odools.OdooLspStatusWidgetFactory"/>
2726
</extensions>
2827
</idea-plugin>

src/main/resources/messages/MyBundle.properties

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

0 commit comments

Comments
 (0)