Skip to content

Commit ce8ae1d

Browse files
committed
fix: reverting unneed changes
1 parent 5d947a6 commit ce8ae1d

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

plugin/src/main/java/io/snyk/eclipse/plugin/domain/ProductConstants.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ public final class ProductConstants {
4242
DIAGNOSTIC_SOURCE_SNYK_IAC, SCAN_PARAMS_IAC,
4343
DIAGNOSTIC_SOURCE_SNYK_OSS, SCAN_PARAMS_OSS);
4444

45-
public static final Map<String, String> LSP_SOURCE_TO_DISPLAYED = Map.of(
46-
DIAGNOSTIC_SOURCE_SNYK_CODE, DISPLAYED_CODE_SECURITY,
47-
DIAGNOSTIC_SOURCE_SNYK_IAC, DISPLAYED_IAC,
48-
DIAGNOSTIC_SOURCE_SNYK_OSS,
49-
DISPLAYED_OSS);
50-
5145
// code cannot be mapped easily
5246
public static final Map<String, String> SCAN_PARAMS_TO_DISPLAYED = Map.of(
5347
SCAN_PARAMS_OSS, DISPLAYED_OSS,

plugin/src/main/java/io/snyk/eclipse/plugin/views/snyktoolview/SnykToolView.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,6 @@ protected void outputCommandResult(Object result) {
480480

481481
@Override
482482
public void selectTreeNode(Issue issue, String product) {
483-
// If snykUri did not return a usable product, we search the whole tree, if not,
484-
// we only search for the issue in specified product treenodes.
485-
if (product.isEmpty()) {
486-
selectTreenodeForIssue(getRoot(), issue);
487-
return;
488-
}
489-
490483
ProductTreeNode productNode = getProductNode(product, issue.filePath());
491484
selectTreenodeForIssue((TreeNode) productNode, issue);
492485
}

plugin/src/main/java/io/snyk/languageserver/protocolextension/SnykExtendedLanguageClient.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
import io.snyk.eclipse.plugin.analytics.AbstractTask;
7070
import io.snyk.eclipse.plugin.analytics.AnalyticsEventTask;
7171
import io.snyk.eclipse.plugin.analytics.TaskProcessor;
72-
import io.snyk.eclipse.plugin.domain.ProductConstants;
7372
import io.snyk.eclipse.plugin.preferences.Preferences;
7473
import io.snyk.eclipse.plugin.properties.FolderConfigs;
7574
import io.snyk.eclipse.plugin.utils.ResourceUtils;
@@ -474,8 +473,7 @@ public CompletableFuture<ShowDocumentResult> showDocument(
474473

475474
return CompletableFuture.supplyAsync(() -> {
476475
openToolView();
477-
String display_product = ProductConstants.LSP_SOURCE_TO_DISPLAYED.get(uriDetails.product());
478-
this.toolView.selectTreeNode(issue, display_product);
476+
this.toolView.selectTreeNode(issue, uriDetails.product());
479477
return new ShowDocumentResult(true);
480478
});
481479
}

0 commit comments

Comments
 (0)