Skip to content

Commit

Permalink
fix(plugin): Compatibility issue with 2021.1
Browse files Browse the repository at this point in the history
A previous refactoring introduced a bad import in a moved method.
  • Loading branch information
bric3 committed Aug 12, 2021
1 parent e3bb7cf commit 7eae5e7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# excalidraw-jetbrains-plugin Changelog

## [Unreleased]
### Fixed
- Fixed compatibility issue with 2021.1.x

## [0.3.0-eap] - 2021-08-11
### Added
- SVG and PNG exports are now saved with an embedded scene (always on) ([#11](https://github.com/bric3/excalidraw-jetbrains-plugin/issues/11))
Expand Down
4 changes: 2 additions & 2 deletions plugin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

pluginGroup = com.github.bric3.excalidrawjetbrainsplugin
pluginName = excalidraw-jetbrains-plugin
pluginVersion = 0.3.0-eap
pluginVersion = 0.3.1-eap

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild = 203

# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
# See https://jb.gg/intellij-platform-builds-list for available build versions.
pluginVerifierIdeVersions = 2020.3.4, 2021.1.2
pluginVerifierIdeVersions = 2020.3.4, 2021.1.3, 2021.2

platformType = IC
platformVersion = 2020.3.4
Expand Down
14 changes: 8 additions & 6 deletions plugin/src/main/kotlin/com/github/bric3/excalidraw/utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ import com.intellij.notification.NotificationType
import com.intellij.notification.Notifications
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.fileEditor.FileEditorManager
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.workspaceModel.storage.impl.EntityStorageSerializerImpl.Companion.logger
import org.jetbrains.concurrency.AsyncPromise
import java.io.IOException

val logger = Logger.getInstance("com.github.bric3.excalidraw.utils")

val debugMode = ProcessHandle.current().info().arguments().map {
it.any { it.contains("-agentlib:jdwp") }
}.orElse(false)!!


/**
* Return a matching editor.
*
Expand Down Expand Up @@ -82,8 +89,3 @@ fun logWithThread(message: String) {
println(Thread.currentThread().name + "(" + Thread.currentThread().id + "): " + message)
}
}


val debugMode = ProcessHandle.current().info().arguments().map {
it.any { it.contains("-agentlib:jdwp") }
}.orElse(false)!!

0 comments on commit 7eae5e7

Please sign in to comment.