Skip to content

Commit

Permalink
Merge pull request #611 from snyk/chore/merge-hotfix
Browse files Browse the repository at this point in the history
chore: back-merge 2.9.1
  • Loading branch information
bastiandoetsch authored Sep 12, 2024
2 parents 4de8e11 + bf0c54f commit c26cf14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
- show code vision for Open Source also, when Snyk Code is still analysing
- clean-up old open source scan functionality

## [2.9.1]
### Fixed
- propagate IntelliJ environment to language server. This should mitigate the issue of not finding package managers during scans.

## [2.9.0]
### Changed
- Updated the language server protocol version to 14 to support new communication model.
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/snyk/common/lsp/LanguageServerWrapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class LanguageServerWrapper(
val cmd = listOf(lsPath, "language-server", "-l", logLevel)

val processBuilder = ProcessBuilder(cmd)
pluginSettings().token?.let { EnvironmentHelper.updateEnvironment(processBuilder.environment(), it) }
EnvironmentHelper.updateEnvironment(processBuilder.environment(), pluginSettings().token ?: "")

process = processBuilder.start()
launcher = LSPLauncher.createClientLauncher(languageClient, process.inputStream, process.outputStream)
Expand Down

0 comments on commit c26cf14

Please sign in to comment.