Skip to content

Commit

Permalink
upgraded to IDEA 2022.1 EAP
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Janusz committed Feb 1, 2022
1 parent 382ec39 commit 1d83825
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
*~
target/
out/
.bsp
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import org.jetbrains.sbtidea.Keys._

ThisBuild / intellijPluginName := "intellij-hocon"
ThisBuild / intellijBuild := "212.3724.25"
ThisBuild / intellijBuild := "221.3427.89"

val junitInterfaceVersion = "0.11"

lazy val hocon = project.in(file(".")).enablePlugins(SbtIdeaPlugin).settings(
scalaVersion := "2.13.6",
version := "2021.2.99-SNAPSHOT",
scalaVersion := "2.13.8",
version := "2022.1.99-SNAPSHOT",
Compile / scalaSource := baseDirectory.value / "src",
Test / scalaSource := baseDirectory.value / "test",
Compile / resourceDirectory := baseDirectory.value / "resources",
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.5.1
sbt.version=1.6.1
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
addSbtPlugin("org.jetbrains" % "sbt-idea-plugin" % "3.12.4")
addSbtPlugin("org.jetbrains" % "sbt-ide-settings" % "1.1.0")
addSbtPlugin("org.jetbrains" % "sbt-idea-plugin" % "3.13.7")
addSbtPlugin("org.jetbrains.scala" % "sbt-ide-settings" % "1.1.1")
4 changes: 2 additions & 2 deletions resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<id>org.jetbrains.plugins.hocon</id>
<name>HOCON</name>
<description>Standalone HOCON plugin for IntelliJ IDEA</description>
<version>2021.2.99-SNAPSHOT</version>
<version>2022.1.99-SNAPSHOT</version>
<vendor>Roman Janusz, AVSystem, JetBrains</vendor>
<idea-version since-build="211.0" until-build="220.0"/>
<idea-version since-build="221.0" until-build="230.0"/>
<depends>com.intellij.modules.platform</depends>
<depends>com.intellij.modules.lang</depends>
<depends optional="true" config-file="hocon-java.xml">com.intellij.modules.java</depends>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ class HoconGotoNextAction extends HoconGotoPrevNextAction(reverse = false)
final class HoconGotoPrevNextPromoter extends ActionPromoter {
// prioritize HoconGoto{Prev,Next}Action over GotoImplementationAction & GotoSuperAction in HOCON files
// ideally these two actions should be completely disabled in HOCON files but I don't know how
def promote(actions: JList[_ <: AnAction], context: DataContext): JList[AnAction] =
override def promote(actions: JList[_ <: AnAction], context: DataContext): JList[AnAction] =
actions.iterator.asScala.collectOnly[HoconGotoPrevNextAction].toJList
}
4 changes: 2 additions & 2 deletions test/org/jetbrains/plugins/hocon/HoconTestUtils.scala
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package org.jetbrains.plugins.hocon

import java.io.File

import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Computable
import com.intellij.openapi.vfs.{LocalFileSystem, VirtualFile}
import com.intellij.psi.{PsiFile, PsiManager}
import org.jetbrains.plugins.hocon.psi.HoconPsiFile

import scala.annotation.tailrec
import scala.annotation.{nowarn, tailrec}

trait HoconTestUtils {
def testdataPath: String = HoconTestUtils.TestdataPath
Expand Down Expand Up @@ -43,6 +42,7 @@ trait HoconTestUtils {
ApplicationManager.getApplication match {
case application if application.isWriteAccessAllowed => body
case application =>
@nowarn("msg=deprecated")
val computable: Computable[T] = () => body
application.runWriteAction(computable)
}
Expand Down

0 comments on commit 1d83825

Please sign in to comment.