Skip to content

Commit 2e5282f

Browse files
fix: send config before adding a workspace folder [IDE-668] (#635)
* 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
1 parent 49e2620 commit 2e5282f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
- Add "plugin installed" analytics event (sent after authentication)
77
- Added a description of custom endpoints to settings dialog.
88

9+
### Fixed
10+
- folder-specific configs are availabe on opening projects, not only on restart of the IDE
11+
912
## [2.10.0]
1013
### Changed
1114
- save git folder config in settings

src/main/kotlin/io/snyk/plugin/ui/SnykSettingsDialog.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,7 @@ class SnykSettingsDialog(
631631

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

638637
netNewIssuesPanel.add(

src/main/kotlin/snyk/common/lsp/LanguageServerWrapper.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ class LanguageServerWrapper(
576576
if (disposed || project.isDisposed) return
577577
ensureLanguageServerInitialized()
578578
ensureLanguageServerProtocolVersion(project)
579+
updateConfiguration()
579580
val added = getWorkspaceFolders(project)
580581
updateWorkspaceFolders(added, emptySet())
581582
}

0 commit comments

Comments
 (0)