Skip to content

Commit

Permalink
fix: bulk file listener (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch authored Aug 28, 2024
1 parent d923a29 commit 8139591
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import com.intellij.openapi.vfs.VirtualFileManager
import com.intellij.openapi.vfs.newvfs.events.VFileEvent
import com.intellij.openapi.vfs.readText
import io.snyk.plugin.SnykBulkFileListener
import io.snyk.plugin.getPsiFile
import io.snyk.plugin.getSnykCachedResults
import io.snyk.plugin.toLanguageServerURL
import io.snyk.plugin.toSnykFileSet
Expand Down Expand Up @@ -60,9 +59,9 @@ class SnykCodeBulkFileListener : SnykBulkFileListener() {
virtualFile.readText()
)
languageServer.textDocumentService.didSave(param)
virtualFile.getPsiFile(project)?.let { DaemonCodeAnalyzer.getInstance(project).restart(it) }
}
VirtualFileManager.getInstance().asyncRefresh()
DaemonCodeAnalyzer.getInstance(project).restart()
}
}

Expand Down

0 comments on commit 8139591

Please sign in to comment.