From 57b32aec92b22f5cd5b7b46a68f1b1cb8e9b5308 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Thu, 7 Nov 2024 16:29:13 +0100 Subject: [PATCH] SLOMNI-25 Only extract analyzer ZIP from plugin JAR --- .../sonarlint/omnisharp/OmnisharpServicesExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnisharp-plugin/src/main/java/org/sonarsource/sonarlint/omnisharp/OmnisharpServicesExtractor.java b/omnisharp-plugin/src/main/java/org/sonarsource/sonarlint/omnisharp/OmnisharpServicesExtractor.java index c1ec24d..da5f719 100644 --- a/omnisharp-plugin/src/main/java/org/sonarsource/sonarlint/omnisharp/OmnisharpServicesExtractor.java +++ b/omnisharp-plugin/src/main/java/org/sonarsource/sonarlint/omnisharp/OmnisharpServicesExtractor.java @@ -69,7 +69,7 @@ private void unzipAnalyzerPlugin() { var analyzerPluginPath = configuration.get(CSharpPropertyDefinitions.getAnalyzerPath()).orElse(null); try (InputStream analyzerPlugin = new FileInputStream(analyzerPluginPath)) { requireNonNull(analyzerPlugin, "Plugin jar not found"); - ZipUtils.unzip(analyzerPlugin, pluginUnzipDir, ze -> ze.getName().endsWith(".zip") || ze.getName().endsWith(".json") || ze.getName().endsWith(".html")); + ZipUtils.unzip(analyzerPlugin, pluginUnzipDir, ze -> ze.getName().endsWith(".zip")); analyzerZipPath = Stream.of(new File(pluginUnzipDir, "static").listFiles((dir, name) -> name.endsWith(".zip"))) .findFirst() .orElseThrow(() -> new IllegalStateException("Unable to find analyzer ZIP"))