-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support for 2023.3 by implementing threading and UI changes [HEA…
…D-1174] (#463) * fix: wrap customizeCellRenderer logic in readAction * fix: UI deprecations & oss performance next step code, iac, advisor * fix: long operations error in UI thread and some refactorings * fix: iac & code separation of navigation logic and ui logic * fix: product selection preference panel * fix: separate container navigation logic from UI, fix some more deprecations * fix: tests * fix: test tear down in SnykToolWindowPanelIntegTest.kt * fix: test tear down in OssBulkFileListenerTest * fix: additional tests * fix: download tests & taskqueue * fix: tests and erroneous mocking * fix: environment for language server extracted the CLI environment logic to a third helper file to be used also by language server. --------- Co-authored-by: Bastian Doetsch <[email protected]>
- Loading branch information
1 parent
2594516
commit 8704272
Showing
49 changed files
with
497 additions
and
487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
src/main/kotlin/io/snyk/plugin/snykcode/core/SnykCodeFile.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
package io.snyk.plugin.snykcode.core | ||
|
||
import com.intellij.openapi.application.ApplicationManager | ||
import com.intellij.openapi.project.Project | ||
import com.intellij.openapi.util.Iconable | ||
import com.intellij.openapi.vfs.VirtualFile | ||
import org.jetbrains.kotlin.idea.core.util.toPsiFile | ||
import snyk.common.RelativePathHelper | ||
import javax.swing.Icon | ||
|
||
data class SnykCodeFile(val project: Project, val virtualFile: VirtualFile) | ||
data class SnykCodeFile(val project: Project, val virtualFile: VirtualFile) { | ||
var icon: Icon? = null | ||
val relativePath = RelativePathHelper().getRelativePath(virtualFile, project) | ||
init { | ||
ApplicationManager.getApplication().runReadAction { | ||
virtualFile.toPsiFile(project)?.getIcon(Iconable.ICON_FLAG_READ_STATUS) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.