Skip to content

Commit

Permalink
fix: dont use kotlin specific convenience function (#544)
Browse files Browse the repository at this point in the history
* fix: dont use kotlin specific convenience function

* docs: update CHANGELOG.md
  • Loading branch information
bastiandoetsch authored Jun 11, 2024
1 parent 1ee7f6b commit 7e295e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Snyk Security Changelog

## [2.8.4]
### Fixed
- dont use kotlin specific convenience function that may cause errors on non kotlin IDEs

## [2.8.3]

### Added
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/snyk/common/lsp/SnykLanguageClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.github.benmanes.caffeine.cache.RemovalListener
import com.intellij.ide.impl.ProjectUtil
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.ReadAction
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.components.service
Expand Down Expand Up @@ -47,7 +48,6 @@ import org.eclipse.lsp4j.WorkDoneProgressReport
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification
import org.eclipse.lsp4j.services.LanguageClient
import org.jetbrains.concurrency.runAsync
import org.jetbrains.kotlin.idea.util.application.executeOnPooledThread
import snyk.common.ProductType
import snyk.common.SnykFileIssueComparator
import snyk.trust.WorkspaceTrustService
Expand Down Expand Up @@ -374,7 +374,7 @@ class SnykLanguageClient() : LanguageClient {
MessageType.Warning -> SnykBalloonNotificationHelper.showWarn(messageParams.message, project)
MessageType.Info -> {
val notification = SnykBalloonNotificationHelper.showInfo(messageParams.message, project)
executeOnPooledThread {
ApplicationManager.getApplication().executeOnPooledThread {
Thread.sleep(5000)
notification.expire()
}
Expand Down

0 comments on commit 7e295e5

Please sign in to comment.