Skip to content

Commit efb46f9

Browse files
ackebastiandoetschShawkyZ
authored
feat: create a new snyk view [IDE-711][IDE-712][IDE-713] (#213)
* feat: add view with tree view, browser and toolbar buttons * feat: added initial text and image to browser view. No styling! * fix: added buttons and handlers for product activation * fix: update the string for use in Eclipse * feat: Added Tree and View Menu * tidy: fix imports * fix: cleanup image when plugin is shuting down * feat: enable/disable products, viewmenu buttons and preferencepage * fix: added filters to preferencesstore * fix: added handlers for each severity * chore: remove JAVASE-21 from manifest * feat: add interfaces and first functionality to retrieve html * fix: tests * fix: use basehandler for handlers * tidy: rename rootobject to rootnode * feat: updated viewmenu and added handlers for stop scan and clear cache commands * feat/IDE-712_populate-the-tree-view-with-publish-diagnostics-data-from-IaC,-Open-Source-and-Code,-using-a-local-cache (#215) * chore: wip * fix: add info nodes for no issues found and no fixable issues found * fix: tests * feat: add initial tree filling impl * feat: display info nodes * feat: add generic filter method to cache * feat: show view when scanning * feat: choose the right icon for root nodes in the treeview * tidy: remove the open preference action, replaced by preference handler * fix: removed conflicting handlers * feat/clear cache on command * fix: move strings to bundle.properties * fix: also clear scanstate when clearing cache * fix: added a SnykIcon class for all imagedescriptors and added collaps/expand treeviewer. * feat: adding logic for fixable issues filter. * fix: updated UX to use enabled/disabled icons * chore: added unit test for BaseTreeNode * tidy: make fixable comments more clear * fix: update lsconfiguration when preferences has been updated * tidy: reformat unit tests * fix: call ui updates after state updates * fix: handle enable/disable of tree filters * fix: remove unneeded ImageDescriptorProvider * fix: update Ignores Preferences and some tidying * feat: populate tree [IDE-712] (#218) * feat: add project level * fix: tests * feat: add file & issue nodes (wip) * feat: add issue navigation * fix: add missing icons * fix: node filtering * fix: create custom publishDiagnostic for faster deserilization * fix: use Webview2 browser on Windows * chore: added comment * wip: cancel all scans * tidy: clean up unused things * fix: clean up tree when scan is cancelled * fix: expand treenodes after product nodes are added to tree * fix: added unit tests for progressmanager * fix: indentation * fix: dont run progress cancellation in UI --------- Co-authored-by: Knut Funkel <knut.funkel@snyk.io> Co-authored-by: Abdelrahman Shawki Hassan <shawki.hassan@snyk.io> * fix: progress manager and tests (#222) * Fix/tests (#223) fix: tests on command line * feat: add product node suffixes (#224) * feat: new setting for consistent ignores [IDE-714] (#221) * feat: prepending the treenodes for ignores and AI Fix with identifier * fix: added space after ignore tag * feat: add a call to read feature flags, and call that function to read snykCodeConsistentIgnores * fix: expand treeviewer to show all issues. * fix: wip remvoe ignores filters if needed * fix: rename file * fix: call featureflag service after auth and settings persistence * fix: notifyProgress if param is null * feat: taskprocessor for sending tasks after ls init * fix: tests use current pref * feat: filter issues based on ignore preferences * fix: remove commands if ff for ignores are false * fix: adding the handlers and commands for filters * fix: adding an asyncExec on the ui updates --------- Co-authored-by: Abdelrahman Shawki Hassan <shawki.hassan@snyk.io> * feat: style description panel (#220) * wip: html provider * fix: populate tree after snyk.Scan success * refactor: use css from LS * wip: html provider * fix: merge conflicts * fix: added HtmlProviderFactory tests * fix: use comperator for sorting issues * refactor: create BrowserHandler * fix: cache theme instance * fix: cache test * fix: HtmlProviderTest doesn't extend LsBaseTest * fix: ignore calling workbench if in test * fix: assert nonexisting string * fix: publishDiagnostics tests * fix: dont get workbench if test --------- Co-authored-by: Bastian Doetsch <bastian.doetsch@snyk.io> Co-authored-by: Abdelrahman Shawki Hassan <shawki.hassan@snyk.io>
1 parent 42da586 commit efb46f9

97 files changed

Lines changed: 6633 additions & 1518 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

plugin/META-INF/MANIFEST.MF

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ Require-Bundle: org.eclipse.ui,
2222
org.eclipse.lsp4j.jsonrpc,
2323
org.eclipse.text,
2424
org.eclipse.ui.editors,
25-
org.eclipse.ui.genericeditor
25+
org.eclipse.ui.genericeditor,
26+
org.eclipse.swt,
27+
org.eclipse.jface,
28+
com.google.gson;bundle-version="2.11.0"
2629
Automatic-Module-Name: io.snyk.eclipse.plugin.tests
2730
Bundle-ActivationPolicy: lazy
2831
Bundle-ClassPath: .,

plugin/OSGI-INF/l10n/bundle.properties

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,52 @@ Bundle-Name=Snyk Plugin
44
extension.name=Snyk
55
category.name=Snyk
66
view.name=Snyk Results
7+
toolView.name=Snyk
78
page.name=Snyk
9+
810
command.name=Run
911
command.label=Snyk Test
1012
command.label.0=Snyk Test Project
13+
command.stopScan=Stop Scan
14+
command.clearCache=Clear Cache
15+
command.openSnykPreferences=Open Snyk Preferences
16+
command.criticalSeverity=Critical Severity
17+
command.highSeverity=High Severity
18+
command.mediumSeverity=Medium Severity
19+
command.lowSeverity=Low Severity
20+
command.openSource=Open Source
21+
command.codeSecurity=Code Security
22+
command.codeQuality=Code Quality
23+
command.infrastructureAsCode=Infrastructure as Code
24+
command.collapseTree=Collapse Tree
25+
command.expandTree=Expand Tree
26+
command.allIssues=All Issues
27+
command.netNewIssues=Net New Issues
28+
command.openIssues=Open Issues
29+
command.ignoredIssues=Ignored Issues
30+
31+
tooltip.scan=Scan
32+
tooltip.stopScan=Stop Scan
33+
tooltip.collapseAll=Collapse all tree nodes
34+
tooltip.expandAll=Expand all tree nodes
35+
tooltip.emptyScanResults=Empty Scan Results Cache
36+
tooltip.criticalSeverity=Critical Severity
37+
tooltip.highSeverity=High Severity
38+
tooltip.mediumSeverity=Medium Severity
39+
tooltip.lowSeverity=Low Severity
40+
tooltip.openPreferences=Open Snyk Preferences
41+
tooltip.enableOSS=Enable/disable OSS scans
42+
tooltip.enableCodeSecurity=Enable/disable Code scans
43+
tooltip.enableCodeQuality=Enable/disable Code scans
44+
tooltip.enableIAC=Enable/disable IAC scans
45+
tooltip.hideIgnored=Hide Ignored
46+
tooltip.showIgnored=Show Ignored
47+
tooltip.showAllIssues=Show All Issues
48+
tooltip.showNetNewIssues=Show Only Net New Issues
1149

1250
scanWorkspace.name=snykWorkspaceScan
1351
scanWorkspace.label=Snyk Test Workspace
1452

53+
snyk.trust.dialog.warning.text=When scanning project files for vulnerabilities, Snyk may automatically execute code such as invoking the package manager to get dependency information.<br><br>You should only scan projects you trust.<br><br>
54+
55+

plugin/icons/code.png

553 Bytes
Loading

plugin/icons/code.svg

Lines changed: 14 additions & 0 deletions
Loading

plugin/icons/code_disabled.png

564 Bytes
Loading

plugin/icons/code_disabled.svg

Lines changed: 14 additions & 0 deletions
Loading

plugin/icons/container.png

604 Bytes
Loading

plugin/icons/container.svg

Lines changed: 20 additions & 0 deletions
Loading
618 Bytes
Loading
Lines changed: 22 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)