Skip to content

Commit

Permalink
Merge branch 'master' into chore/move-ai-fix-scripts-to-ls
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusZdroba committed Feb 11, 2025
2 parents f22a3be + 2f38314 commit d6fa92d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,8 @@ class ReferenceChooserDialog(val project: Project) : DialogWrapper(true) {
val baseBranch = getSelectedItem(it.value) ?: ""
val referenceFolderControl = referenceFolders[folderConfig]
val referenceFolder = referenceFolderControl?.text ?: ""
if (baseBranch.isNotBlank()) {
folderConfigSettings.addFolderConfig(folderConfig.copy(baseBranch = baseBranch))
}
if (referenceFolder.isNotBlank()) {
folderConfigSettings.addFolderConfig(folderConfig.copy(referenceFolderPath = referenceFolder))
if (referenceFolder.isNotBlank() || baseBranch.isNotBlank()) {
folderConfigSettings.addFolderConfig(folderConfig.copy(baseBranch = baseBranch, referenceFolderPath = referenceFolder))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class ToggleDeltaHandler {
fun generate(jbCefBrowser: JBCefBrowserBase): CefLoadHandlerAdapter {
val toggleDeltaQuery = JBCefJSQuery.create(jbCefBrowser)
toggleDeltaQuery.addHandler {deltaEnabled ->
pluginSettings().setDeltaEnabled(deltaEnabled.toBoolean())
runInBackground("Snyk: updating configuration") {
pluginSettings().setDeltaEnabled(deltaEnabled.toBoolean())
LanguageServerWrapper.getInstance().updateConfiguration()
}
return@addHandler JBCefJSQuery.Response("success")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,7 @@ class SnykToolWindowPanel(
PRODUCT_IAC -> it.currentIacResultsLS[snykFile] = issueList
}
}

Tree(rootTreeNode).apply {
this.isRootVisible = pluginSettings().isDeltaFindingsEnabled()
}
vulnerabilitiesTree.isRootVisible = pluginSettings().isDeltaFindingsEnabled()
}

override fun scanningSnykCodeFinished() = Unit
Expand Down

0 comments on commit d6fa92d

Please sign in to comment.