Commit 9d5428c
feat(secrets): persist and run Secrets with other scanners [IDE-1747] (#791)
* feat(secrets): persist and run Secrets with other scanners [IDE-1747]
- Add activateSnykSecrets to SaveConfigRequest and apply in SaveConfigHandler
- Add activateSnykSecrets to LanguageServerSettings and getSettings()
- Add secretsResults to TreeFiltering and matchFilteringWithEnablement
- Add Secrets scan action to SnykTreeScanTypeFilterActionGroup
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(ui): add Secrets root to tool window tree and fix clean-all [IDE-1747]
- Add RootSecretsIssuesTreeNode and SECRETS_ROOT_TEXT; tree shows four roots
(OSS, Code Security, IaC, Secrets) before and after any scan.
- Include Secrets root in removeAllChildren and updateTreeRootNodesPresentation
so Clean all results keeps all four roots with labels reset.
- Wire Secrets in SnykToolWindowSnykScanListener: scanningStarted/scanningError
clear Secrets node; displaySecretsResults and filter refresh populate it.
- Map ScanIssue.SECRETS in description panel and flushPendingTreeRefreshes.
- Tests: expect four roots, pass rootSecretsIssuesTreeNode, assert no null on
Secrets node after clean.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(ui): show Secrets in HTML tree view on first load [IDE-1747]
Add Secrets product node to TreeViewInit.html so the initial HTML tree
view displays all four products (OSS, Code Security, IaC, Secrets) from
plugin load instead of showing Secrets only after the LS sends a tree
view update.
Co-authored-by: Cursor <cursoragent@cursor.com>
* refactor(toolwindow): remove Secrets from native tree [IDE-1747]
- Remove RootSecretsIssuesTreeNode and delete its class file; Secrets are
shown only in the LS-driven HTML tree view (snykTreeView), not in the
native Swing tree.
- SnykToolWindowSnykScanListener now takes three roots (OSS, Code, IaC);
remove all LsProduct.Secrets handling (scanningStarted, scanningError,
displaySecretsResults, SECRETS branch in displayResults/displayIssues).
- Panel: stop creating/passing Secrets root, drop Secrets from filtering
callback and from flushPendingTreeRefreshes.
- Update tests for 3-root native tree.
Made-with: Cursor
* chore(toolwindow): remove SECRETS_ROOT_TEXT, add Secrets description handlers [IDE-1747]
- Remove unused SECRETS_ROOT_TEXT from SnykToolWindowPanel companion object.
- Add ScanIssue.SECRETS branch in SuggestionDescriptionPanel.initializeBrowser()
with SubmitIgnoreRequestHandler so Secrets issue detail HTML can trigger
ignore requests (parity with VS Code submitIgnoreRequest).
Made-with: Cursor
* refactor(toolwindow): remove Secrets from tree filter and HTML tree [IDE-1747]
- Drop treeFiltering.secretsResults and matchFiltering sync (native tree not used for Secrets)
- Remove createSecretsScanAction and Secrets from scan-type filter menu
- Remove product-secrets node from TreeViewInit.html
- Test: use 3-param updateTreeRootNodesPresentation call and comment
Made-with: Cursor
* refactor(toolwindow): remove unused secrets count from tree presentation [IDE-1747]
- Drop secretsResultsCount param from displayIssues and updateTreeRootNodesPresentation
- Restore Secrets cache clear and comments in scan listener (scan started / scan error)
- Call sites: use 3 counts + addHMLPostfix only; test keeps positional updateTreeRootNodesPresentation(0, 0, 0, "")
Made-with: Cursor
* refactor(toolwindow): remove redundant SECRETS branches for PR review [IDE-1747]
- Panel: drop SECRETS branch in productIssues when; Secrets only in HTML tree
- SuggestionDescriptionPanel: remove SECRETS SubmitIgnoreRequestHandler block
Made-with: Cursor
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 4d57c71 commit 9d5428c
5 files changed
Lines changed: 6 additions & 4 deletions
File tree
- src/main/kotlin
- io/snyk/plugin/ui
- jcef
- toolwindow
- snyk/common/lsp
- settings
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
215 | 216 | | |
216 | 217 | | |
217 | 218 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
389 | | - | |
390 | | - | |
| 388 | + | |
391 | 389 | | |
392 | 390 | | |
393 | 391 | | |
| |||
538 | 536 | | |
539 | 537 | | |
540 | 538 | | |
541 | | - | |
| 539 | + | |
542 | 540 | | |
543 | 541 | | |
544 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| 560 | + | |
560 | 561 | | |
561 | 562 | | |
562 | 563 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments