Skip to content

Commit

Permalink
v0.2.5 - Bug fix, dependencies updates, support for 2022.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bjonnh committed Nov 29, 2022
1 parent 94742c6 commit 40d5fc2
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 25 deletions.
44 changes: 30 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,77 @@

# File Permissions Plugin Changelog

## [Unreleased]
## Unreleased

## 0.2.5 - 2022-11-29
- Support for 2022.3
- Fix that nio.path error again

## 0.2.4

## [0.2.4]
### Changes
- Support for 2022.2

## [0.2.3]
## 0.2.3

### Changes
- Fix error seen from time to time when the file path couldn't be converted with toNioPath

## [0.2.2]
## 0.2.2

### Changes
- Support for 2022.1
- Update versions of packages
- Integrate latest platform plugin template
- Verify for latest version of IntelliJ platform

## [0.2.0]
## 0.2.0

### Changes
- Validate for IntelliJ Idea Beta (212.x)
- Bump some versions of development dependencies
- Rename the plugin to remove plugin from the name (follow verifier rules)

## [0.1.8]
## 0.1.8

### Changes
- Reduced the size of the screenshot

## [0.1.7]
## 0.1.7

## 0.1.6

## [0.1.6]
### Changes
- A better description to explain where to find the actions.

## [0.1.4]
## 0.1.4

### Changes
- A better description

## [0.1.3]
## 0.1.3

### Changes
- Cleaner documentation and especially a much better description for the project
- Probably understood how the automated change log works.

## [0.1.2]
## 0.1.2

### Added
- Licensed under GPLv3

## [0.1.1]
## 0.1.1

### Added
- Just to test the release process for next time

## [0.1.0]
## 0.1.0

### Added
- Support for changing all permissions
- Support for making a file executable

## [0.0.1]
## 0.0.1

### Added
- Initial scaffold created from [IntelliJ Platform Plugin Template](https://github.com/JetBrains/intellij-platform-plugin-template)
14 changes: 7 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ fun properties(key: String) = project.findProperty(key).toString()

plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.7.0-RC"
id("org.jetbrains.intellij") version "1.6.0"
id("org.jetbrains.changelog") version "1.3.1"
id("io.gitlab.arturbosch.detekt") version "1.20.0"
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
id("org.jetbrains.kotlin.jvm") version "1.8.0-Beta"
id("org.jetbrains.intellij") version "1.10.0"
id("org.jetbrains.changelog") version "2.0.0"
id("io.gitlab.arturbosch.detekt") version "1.22.0"
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
id("org.jetbrains.qodana") version "0.1.13"
id("com.github.ben-manes.versions") version "0.42.0"
id("com.github.ben-manes.versions") version "0.44.0"
}

group = properties("pluginGroup")
Expand All @@ -27,7 +27,7 @@ repositories {
}

dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.20.0")
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.22.0")
}

// Configure Gradle IntelliJ Plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

pluginGroup = net.bjonnh.intellij.filepermissionsplugin
pluginName = File Permissions
pluginVersion = 0.2.4
pluginVersion = 0.2.5
pluginSinceBuild = 203
pluginUntilBuild = 222.*
pluginUntilBuild = 223.*

# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = IC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ class ChangePermissionsAction : AnAction() {
*/
override fun update(e: AnActionEvent) {
val project = e.project
val path = e.getData(CommonDataKeys.VIRTUAL_FILE)?.canonicalFile?.toNioPath()
e.presentation.isEnabledAndVisible = (project != null) && (path != null)
try {
val path = e.getData(CommonDataKeys.VIRTUAL_FILE)?.canonicalFile?.toNioPath()
e.presentation.isEnabledAndVisible = (project != null) && (path != null)
} catch (_: UnsupportedOperationException) { // Sometimes we see that from toNioPath
e.presentation.isEnabledAndVisible = false
}
}
}

0 comments on commit 40d5fc2

Please sign in to comment.