Skip to content

Commit

Permalink
fix: refresh feature flags once before scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Sep 14, 2024
1 parent f968446 commit c52b51b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/snyk/common/lsp/LanguageServerWrapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class LanguageServerWrapper(
} catch (ignore: Exception) {
// do nothing
} finally {
if (lsIsAlive()) process.destroyForcibly()
if (lsIsAlive()) process.destroyForcibly()
}
lsp4jLogger.level = previousLSP4jLogLevel
messageProducerLogger.level = previousMessageProducerLevel
Expand Down Expand Up @@ -342,8 +342,8 @@ class LanguageServerWrapper(
fun sendScanCommand(project: Project) {
if (!ensureLanguageServerInitialized()) return
DumbService.getInstance(project).runWhenSmart {
refreshFeatureFlags()
getTrustedContentRoots(project).forEach {
refreshFeatureFlags()
sendFolderScanCommand(it.path, project)
}
}
Expand Down

0 comments on commit c52b51b

Please sign in to comment.