From 265727c53628f7aee9b0c9e6bdfee12e716b47ea Mon Sep 17 00:00:00 2001 From: Adrien Pessu <7055334+adrienpessu@users.noreply.github.com> Date: Mon, 16 Feb 2026 15:35:52 +0100 Subject: [PATCH] update --- .../kotlin/com/github/adrienpessu/sarifviewer/SarifFileType.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/github/adrienpessu/sarifviewer/SarifFileType.kt b/src/main/kotlin/com/github/adrienpessu/sarifviewer/SarifFileType.kt index 2ae2f5f..de3d823 100644 --- a/src/main/kotlin/com/github/adrienpessu/sarifviewer/SarifFileType.kt +++ b/src/main/kotlin/com/github/adrienpessu/sarifviewer/SarifFileType.kt @@ -3,6 +3,7 @@ package com.github.adrienpessu.sarifviewer import com.github.adrienpessu.sarifviewer.toolWindow.SarifViewerWindowFactory import com.intellij.json.JsonFileType import com.intellij.openapi.project.Project +import com.intellij.openapi.util.IconLoader import com.intellij.openapi.vfs.VirtualFile import com.intellij.openapi.wm.ToolWindowManager import com.intellij.ui.IconManager @@ -36,7 +37,7 @@ object SarifFileType : JsonFileType() { } private fun load(path: String, cacheKey: Int, flags: Int): Icon { - return IconManager.getInstance().getIcon(path, SarifFileType::class.java) + return IconLoader.getIcon(path, SarifFileType::class.java.classLoader) } fun useNativeIcon(): Boolean = false