Skip to content

Commit cb1c8dc

Browse files
committed
fix: also clear scanstate when clearing cache
1 parent ed87de2 commit cb1c8dc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 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.ScanState;
1011
import io.snyk.languageserver.SnykIssueCache;
1112

1213
public class ClearCacheHandler extends AbstractHandler {
@@ -24,6 +25,9 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
2425
SnykMessageDialog.showOkDialog(shell, commandId);
2526

2627
SnykIssueCache.getInstance().clearAll();
28+
ScanState.getInstance().clearAllScanStates();
29+
30+
//TODO update TreeView and reset UI
2731

2832
return null;
2933
}

0 commit comments

Comments
 (0)