From 379b1fbd0ee9737a481ca4ca27adccd98ee20387 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:50:14 +0000 Subject: [PATCH 1/2] Initial plan From 7f64c10db0690889408f2e8db380e07b90ad5aad Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:53:16 +0000 Subject: [PATCH 2/2] Simplify load method by removing unused parameters Co-authored-by: adrienpessu <7055334+adrienpessu@users.noreply.github.com> --- .../com/github/adrienpessu/sarifviewer/SarifFileType.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/github/adrienpessu/sarifviewer/SarifFileType.kt b/src/main/kotlin/com/github/adrienpessu/sarifviewer/SarifFileType.kt index de3d823..974d850 100644 --- a/src/main/kotlin/com/github/adrienpessu/sarifviewer/SarifFileType.kt +++ b/src/main/kotlin/com/github/adrienpessu/sarifviewer/SarifFileType.kt @@ -14,7 +14,7 @@ object SarifFileType : JsonFileType() { override fun getName() = "SARIF" override fun getDescription() = "SARIF file" override fun getDefaultExtension() = "sarif" - override fun getIcon(): Icon = load("com.github.adrienpessu.sarifviewer/sarif.svg", -2129886975, 0); + override fun getIcon(): Icon = load("com.github.adrienpessu.sarifviewer/sarif.svg") fun openFileInAssociatedApplication(project: Project?, file: VirtualFile): Boolean { @@ -36,7 +36,7 @@ object SarifFileType : JsonFileType() { return true } - private fun load(path: String, cacheKey: Int, flags: Int): Icon { + private fun load(path: String): Icon { return IconLoader.getIcon(path, SarifFileType::class.java.classLoader) }