Skip to content

Commit

Permalink
fix: don't navigate to source on scan finished (#502)
Browse files Browse the repository at this point in the history
* fix: don't navigate to source on scan finished

* docs: update CHANGELOG.md
  • Loading branch information
bastiandoetsch authored Apr 4, 2024
1 parent fa6d6e0 commit 66ec5d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Snyk Security Changelog

## [2.7.14]

### Added
- Render Snyk Code vulnerabilities using HTML served by the Language Server behind a feature flag.

## [2.7.13]
### Added
- Render Snyk Code vulnerabilities using HTML served by the Language Server behind a feature flag.
- (LS Preview) added timeout to commands executed via code lenses

### Fixed
- (LS Preview) don't navigate to source of selected code tree node after scan

## [2.7.12]
### Added
- Mark ignored findings as ignored behind a feature flag.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class SnykToolWindowPanel(val project: Project) : JPanel(), Disposable {
* */
private var smartReloadMode = false

private var navigateToSourceEnabled = true
var navigateToSourceEnabled = true

private val treeNodeStub = object : RootTreeNodeBase("", project) {
override fun getSnykError(): SnykError? = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ class SnykToolWindowSnykCodeScanListenerLS(

override fun scanningSnykCodeFinished(snykCodeResults: Map<SnykCodeFile, List<ScanIssue>>) {
ApplicationManager.getApplication().invokeLater {
this.snykToolWindowPanel.navigateToSourceEnabled = false
displaySnykCodeResults(snykCodeResults)
refreshAnnotationsForOpenFiles(project)
this.snykToolWindowPanel.navigateToSourceEnabled = true
}
}

Expand Down

0 comments on commit 66ec5d0

Please sign in to comment.