Skip to content

Commit f8f5742

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

File tree

3 files changed

+115
-211
lines changed

3 files changed

+115
-211
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
}

0 commit comments

Comments
 (0)