Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add vulnerability count #613

Closed
wants to merge 11 commits into from

Conversation

bastiandoetsch
Copy link
Collaborator

@bastiandoetsch bastiandoetsch commented Sep 14, 2024

Description

  • mute logger during shutdown
  • add vulnerability count
  • fix flickering when loading HTML in suggestion panel

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

image image

@bastiandoetsch bastiandoetsch requested a review from a team as a code owner September 14, 2024 05:54
@bastiandoetsch bastiandoetsch changed the title fix: shut up lsp4j logger during shutdown feat: add vulnerability count Sep 14, 2024
@@ -68,7 +68,6 @@ class BranchChooserComboBoxDialog(val project: Project) : DialogWrapper(true) {
}
runAsync {
LanguageServerWrapper.getInstance().updateConfiguration()
LanguageServerWrapper.getInstance().sendScanCommand(project)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update configuration already runs a scan after update

@@ -427,6 +428,7 @@ fun Project.getContentRootPaths(): SortedSet<Path> {
}

fun Project.getContentRootVirtualFiles(): Set<VirtualFile> {
if (this.isDisposed) return emptySet()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes exception during disposal of resources

Comment on lines +33 to +45
private fun getBrowser(): Pair<JBCefClient, JBCefBrowser> {
if (jbCefPair != null) {
return jbCefPair
}
val cefClient = JBCefApp.getInstance().createClient()
cefClient.setProperty("JS_QUERY_POOL_SIZE", 1)
val jbCefBrowser =
JBCefBrowserBuilder().setClient(cefClient).setEnableOpenDevToolsMenuItem(false)
.setMouseWheelEventEnable(true).build()
jbCefBrowser.setOpenLinksInExternalBrowser(true)
val jbCefPair = Pair(cefClient, jbCefBrowser)
return jbCefPair
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initialize the browser component only once, this prevents flickering and is more performant.

@bastiandoetsch
Copy link
Collaborator Author

Merged it into the IaC PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant