Skip to content

Commit ef137c5

Browse files
committed
feat/clear cache on command
1 parent 057f58d commit ef137c5

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

plugin/src/main/java/io/snyk/eclipse/plugin/views/snyktoolview/handlers/ClearCacheHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import org.eclipse.ui.PlatformUI;
88

99
import io.snyk.eclipse.plugin.utils.SnykMessageDialog;
10+
import io.snyk.languageserver.SnykIssueCache;
1011

1112
public class ClearCacheHandler extends AbstractHandler {
1213

@@ -21,6 +22,8 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
2122

2223
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
2324
SnykMessageDialog.showOkDialog(shell, commandId);
25+
26+
SnykIssueCache.getInstance().clearAll();
2427

2528
return null;
2629
}

plugin/src/main/java/io/snyk/eclipse/plugin/views/snyktoolview/handlers/EnableCodeQualityProductHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ public class EnableCodeQualityProductHandler extends BaseHandler implements IEle
1010
public EnableCodeQualityProductHandler() {
1111
super();
1212
// TODO should we replace the filter button with a filter applied button icon?
13-
iconEnabled = Activator.getImageDescriptor("/icons/oss.png");
14-
iconDisabled = Activator.getImageDescriptor("/icons/oss_disabled.png");
15-
preferenceKey = Preferences.ACTIVATE_SNYK_OPEN_SOURCE;
13+
iconEnabled = Activator.getImageDescriptor("/icons/code.png");
14+
iconDisabled = Activator.getImageDescriptor("/icons/code_disabled.png");
15+
preferenceKey = Preferences.ACTIVATE_SNYK_CODE_QUALITY;
1616
}
1717

1818
}

0 commit comments

Comments
 (0)