File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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
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 >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments