Skip to content

Commit

Permalink
👽: fix compatibility issues [release]
Browse files Browse the repository at this point in the history
  • Loading branch information
Pushpavel committed Dec 2, 2022
1 parent 4d1214a commit 84392c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

## v0.7.8

- Supports 2023 IDE versions
- Supports 2022.3 IDE versions
- Fixes [#105](https://github.com/Pushpavel/AutoCp/issues/105) - IDE Error when opening settings

## v0.7.7
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ plugins {
// Kotlin support
id("org.jetbrains.kotlin.jvm") version "1.7.20"
// Gradle IntelliJ Plugin
id("org.jetbrains.intellij") version "1.10.0"
id("org.jetbrains.intellij") version "1.11.0-SNAPSHOT"
// Gradle Changelog Plugin
id("org.jetbrains.changelog") version "1.3.1"

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pluginGroup=com.github.pushpavel.autocp
pluginVersion=v0.7.8
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild=222
pluginSinceBuild=223
pluginUntilBuild=223.*

platformType=CL
Expand All @@ -17,4 +17,4 @@ gradleVersion=7.5.1
# Opt-out flag for bundling Kotlin standard library.
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.
# suppress inspection "UnusedProperty"
kotlin.stdlib.default.dependency=false
kotlin.stdlib.default.dependency=true
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package com.github.pushpavel.autocp.common.helpers

import com.intellij.ide.fileTemplates.FileTemplate
import com.intellij.openapi.fileEditor.FileEditorManager
import com.intellij.openapi.fileEditor.FileEditorManagerEvent
import com.intellij.openapi.fileEditor.FileEditorManagerListener
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.github.pushpavel.autocp.common.res.AutoCpFiles
import java.nio.file.*
import java.util.stream.Collectors
import kotlin.io.path.Path
import kotlin.io.path.pathString
import kotlin.streams.toList

fun Project.onFileSelectionChange(action: FileEditorManager.(VirtualFile?) -> Unit) {
val editorManager = FileEditorManager.getInstance(this)
Expand Down Expand Up @@ -39,12 +38,8 @@ fun listPathsInDirectoryInResources(relativePath: String): List<Path> {
FileSystems.newFileSystem(uri, env).getPath(relativePath)
}


return Files.list(dirPath).toList()
}

fun FileTemplate.constructFileNameWithExt(name: String): String {
return name + if (extension.isNotBlank()) ".$extension" else ""
val stream = Files.list(dirPath)
return stream.collect(Collectors.toList())
}

val String.pathString: String
Expand Down

0 comments on commit 84392c2

Please sign in to comment.