Skip to content

Commit

Permalink
Update to build 241.*
Browse files Browse the repository at this point in the history
  • Loading branch information
waleedyaseen committed Apr 15, 2024
1 parent 86d9f39 commit a4253df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
- Add inspection and quick fix for unused local variables.
- Add varchook to valid types.

### Changed
- Update to IntelliJ 2024.1.

## [1.5.0] - 2023-11-27

### Added
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ pluginName = intellij-runescript
pluginRepositoryUrl = https://github.com/waleedyaseen/intellij-runescript
pluginVersion = 1.5.0

pluginSinceBuild = 232
pluginUntilBuild = 233.*
pluginSinceBuild = 233
pluginUntilBuild = 241.*

platformType = IC
platformVersion = 2023.2.2
platformVersion = 2023.3.4

platformPlugins = com.intellij.java

gradleVersion = 8.2.1
gradleVersion = 8.6.0

kotlin.stdlib.default.dependency = false
org.gradle.configuration-cache = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RsMergeIfAndIntention : BaseElementAtCaretIntentionAction() {
return RsBundle.message("intention.merge.if.and.name")
}

override fun invoke(project: Project, editor: Editor?, element: PsiElement) {
override fun invoke(project: Project, editor: Editor, element: PsiElement) {
val ifStmt = element.parent as RsIfStatement
val trueStmt = ifStmt.trueStatement.toSingleStatement() as RsIfStatement
val leftParen = (ifStmt.expression?.precedence ?: 0) > PRECEDENCE_LOGICAL_AND
Expand Down Expand Up @@ -45,7 +45,7 @@ class RsMergeIfAndIntention : BaseElementAtCaretIntentionAction() {

}

override fun isAvailable(project: Project, editor: Editor?, element: PsiElement): Boolean {
override fun isAvailable(project: Project, editor: Editor, element: PsiElement): Boolean {
val ifStmt = element.parent
if (ifStmt !is RsIfStatement) {
return false
Expand Down

0 comments on commit a4253df

Please sign in to comment.