Skip to content

Commit 2d196bc

Browse files
committed
fix: clean up code
1 parent 7b284d9 commit 2d196bc

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

plugin/src/main/java/io/snyk/eclipse/plugin/html/StaticPageHtmlProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ public String getInitHtml() {
149149
return replaceCssVariables(html);
150150
}
151151

152+
//TODO update this when we got new design from Andy
152153
public String getSummaryInitHtml() {
153154
var html = """
154155
<!DOCTYPE html>

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ public Object function(Object[] arguments) {
2424
Preferences.getInstance().store(Preferences.ENABLE_DELTA, Boolean.FALSE.toString());
2525
updateConfiguration();
2626

27-
// TODO remove this when we get the HTML from Snyk Language Server
28-
browser.execute("document.body.innerHTML += '<p>All issues tab clicked</p>';");
29-
3027
return null;
3128
}
3229
};
@@ -37,9 +34,6 @@ public Object function(Object[] arguments) {
3734
Preferences.getInstance().store(Preferences.ENABLE_DELTA, Boolean.TRUE.toString());
3835
updateConfiguration();
3936

40-
// TODO remove this when we get the HTML from Snyk Language Server
41-
browser.execute("document.body.innerHTML += '<p>Delta issues tab clicked</p>';");
42-
4337
return null;
4438
}
4539

@@ -53,14 +47,11 @@ private void updateConfiguration() {
5347
// Update the Snyk Language Server configuration.
5448
final var lc = SnykExtendedLanguageClient.getInstance();
5549
lc.updateConfiguration();
56-
57-
// TODO do we want to start scan here?
58-
lc.triggerScan(null);
5950
});
6051
}
6152

6253
public void setDefaultBrowserText() {
63-
browser.setText(StaticPageHtmlProvider.getInstance().getSummaryInitHtml2());
54+
browser.setText(StaticPageHtmlProvider.getInstance().getSummaryInitHtml());
6455
}
6556

6657
public void setBrowserText(String summary) {

0 commit comments

Comments
 (0)