-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: integrate experimental option to get Snyk Code results from Lan…
…guage Server (pre-alpha) [IDE-134] (#474) * feat: initial merge with spike (probably still lots of errors) * feat: add registry feature flag * fix: compilation errors * feat: add feature flag to code * fix: integration with feature flag * fix: rendering of custom UI, default value of feature flag * fix: revert type in plugin to Community Edition (default) * fix: populate quality issues correctly * fix: issue title in description panel (LS source) * feat: add dataflow steps * refactoring: error handling snyk scan, extracting functionality * feat: add snyk code annotator * feat: feature parity to snyk code annotator * feat: add LS code actions as quickfixes * feat: add progress, request message and custom message handling, add fix information in tree * fix: only resolve code action if edit and command is null * fix: duplication of code actions * feat: run code updating code actions in background * feat: prioritize fixes over other code actions * feat: add codevision provider (code lenses) * fix: UI for tree view, code vision provider exceptions * chore: update to LSP4j 0.22.0 * feat: better useragent / integration info when starting up language server * chore: cleanup linting smell * feat: activate analytics reporting * chore: clean up linting smell * fix: tests * feat: enable Snyk Code annotations for all languages * feat: update ls configuration from intellij settings * fix: NullPointerException in Annotator * feat: make message requests non-modal and show as balloon * fix: edge condition in annotator * fix: obsoletion update in cache * feat: rescan on save * chore: update job message * feat: preference toggle for automatic scanning * feat: applying autofix from code lens is now working * fix: test `sendInitializeMessage should send an initialize message to the language server` * feat: implement code lens and inline value refresh handler * fix: capability registration * fix: exceptions * fix: reduce timeouts * fix: a few nullpointerexceptions * Merge branch 'feat/IDE-134_show-snyk-code-findings-in-custom-ui' of /Users/bdoetsch/workspace/snyk-intellij-plugin with conflicts. * chore: update detekt rules * chore: formatting * fix: make sort order in tree view equal to the old sort order * fix: only display code vision when feature flag enabled * fix: only display code vision when feature flag enabled * fix: source dataflow from new issue data field * chore: update gradle intellij plugin * fix: dataflow and navigation * fix: root tree node texts for snyk code * fix: only "start" scan once, fix handleCodeLensRefresh and handleInlineValueRefresh * fix: isSnykCodeRunning, cache * fix: progress, don't set indeterminate = true * fix: progress, don't set indeterminate = true, fix late file listener
- Loading branch information
1 parent
b6c2ff5
commit c24b7ff
Showing
45 changed files
with
2,275 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/kotlin/io/snyk/plugin/events/SnykCodeScanListenerLS.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.snyk.plugin.events | ||
|
||
import com.intellij.util.messages.Topic | ||
import io.snyk.plugin.snykcode.core.SnykCodeFile | ||
import snyk.common.lsp.ScanIssue | ||
import snyk.common.lsp.SnykScanParams | ||
|
||
interface SnykCodeScanListenerLS { | ||
companion object { | ||
val SNYK_SCAN_TOPIC = | ||
Topic.create("Snyk scan LS", SnykCodeScanListenerLS::class.java) | ||
} | ||
|
||
fun scanningStarted(snykScan: SnykScanParams) {} | ||
|
||
fun scanningSnykCodeFinished(snykCodeResults: Map<SnykCodeFile, List<ScanIssue>>) | ||
|
||
fun scanningSnykCodeError(snykScan: SnykScanParams) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
src/main/kotlin/io/snyk/plugin/services/SnykProjectSettingsStateService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.