Skip to content

Commit

Permalink
fix: send config before adding a workspace folder [IDE-668] (#635)
Browse files Browse the repository at this point in the history
* fix: send config to language server before adding workspace folders

This enables scans with folder specific settings, stored in folder config.

* docs: CHANGELOG.md

* fix: delta description in settings
  • Loading branch information
bastiandoetsch authored Nov 13, 2024
1 parent 49e2620 commit 2e5282f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
- Add "plugin installed" analytics event (sent after authentication)
- Added a description of custom endpoints to settings dialog.

### Fixed
- folder-specific configs are availabe on opening projects, not only on restart of the IDE

## [2.10.0]
### Changed
- save git folder config in settings
Expand Down
3 changes: 1 addition & 2 deletions src/main/kotlin/io/snyk/plugin/ui/SnykSettingsDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,7 @@ class SnykSettingsDialog(

val netNewIssuesText =
JLabel(
"Specifies whether to see only net new issues or all issues. " +
"Only applies to Code Security and Code Quality."
"Specifies whether to see only net new issues or all issues. This setting does not apply for Snyk Container."
).apply { font = FontUtil.minusOne(this.font) }

netNewIssuesPanel.add(
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/snyk/common/lsp/LanguageServerWrapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ class LanguageServerWrapper(
if (disposed || project.isDisposed) return
ensureLanguageServerInitialized()
ensureLanguageServerProtocolVersion(project)
updateConfiguration()
val added = getWorkspaceFolders(project)
updateWorkspaceFolders(added, emptySet())
}
Expand Down

0 comments on commit 2e5282f

Please sign in to comment.