Skip to content

Commit

Permalink
Revert "Drop support for 2022.1 to unblock 6.0 release. (#1712)" (#1715)
Browse files Browse the repository at this point in the history
This reverts commit 5af5bf6.

## Test plan

N/A
  • Loading branch information
pkukielka authored May 31, 2024
1 parent c85a435 commit 2d4b31a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ val isForceCodeSearchBuild = isForceBuild || properties("forceCodeSearchBuild")
// Remove unsupported old versions from this list.
// Update gradle.properties pluginSinceBuild, pluginUntilBuild to match the min, max versions in
// this list.
val versionsOfInterest = listOf("2022.2", "2022.3", "2023.1", "2023.2", "2023.3", "2024.1").sorted()
val versionsOfInterest =
listOf("2022.1", "2022.2", "2022.3", "2023.1", "2023.2", "2023.3", "2024.1").sorted()
val versionsToValidate =
when (project.properties["validation"]?.toString()) {
"lite" -> listOf(versionsOfInterest.first(), versionsOfInterest.last())
Expand All @@ -41,6 +42,7 @@ val versionsToValidate =
}
val skippedFailureLevels =
EnumSet.of(
FailureLevel.COMPATIBILITY_PROBLEMS, // blocked by: compatibility hack for IJ 2022.1 / 2024+
FailureLevel.DEPRECATED_API_USAGES,
FailureLevel.SCHEDULED_FOR_REMOVAL_API_USAGES, // blocked by: Kotlin UI DSL Cell.align
FailureLevel.EXPERIMENTAL_API_USAGES,
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ pluginName=Sourcegraph
pluginVersion=6.0-localbuild
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild=222
pluginSinceBuild=221.1
pluginUntilBuild=241.*
# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType=IC
platformVersion=2022.2
platformVersion=2022.1
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins=Git4Idea,PerforceDirectPlugin,java
Expand All @@ -26,4 +26,4 @@ kotlin.stdlib.default.dependency=false
nodeBinaries.commit=8755ae4c05fd476cd23f2972049111ba436c86d4
nodeBinaries.version=v20.12.2
cody.autocomplete.enableFormatting=true
cody.commit=fe37ceea77a17f9f6e6a3209097e7dd9c00eb456
cody.commit=01bc8503f09092c178ca8806d5202c9686edd812
3 changes: 1 addition & 2 deletions src/main/java/com/sourcegraph/cody/CodyActionGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

public class CodyActionGroup extends DefaultActionGroup {

@Override
public ActionUpdateThread getActionUpdateThread() {
ActionUpdateThread getActionUpdateThread() {
return ActionUpdateThread.EDT;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private fun <A : Account, Cred, R> create(
addCustomUpdater { isEnabled && model.activeAccount != accountsList.selectedValue }
}

override fun getActionUpdateThread(): ActionUpdateThread {
fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.BGT
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ open class ContextToolbarButton(
private val buttonAction: () -> Unit = {}
) : DumbAwareActionButton(name, icon) {

override fun getActionUpdateThread(): ActionUpdateThread {
fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.EDT
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.intellij.openapi.actionSystem.DefaultActionGroup
import com.sourcegraph.config.ConfigUtil

class InternalsStatusBarActionGroup : DefaultActionGroup() {
override fun getActionUpdateThread(): ActionUpdateThread {
fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.EDT
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.sourcegraph.config.ConfigUtil

class CodyStatusBarActionGroup : DefaultActionGroup() {

override fun getActionUpdateThread(): ActionUpdateThread {
fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.EDT
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class DumbAwareEDTAction : DumbAwareAction {
icon: Icon?
) : super(text, description, icon)

override fun getActionUpdateThread(): ActionUpdateThread {
fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.EDT
}
}
Expand Down

0 comments on commit 2d4b31a

Please sign in to comment.