-
Notifications
You must be signed in to change notification settings - Fork 34
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
Conversation
@@ -68,7 +68,6 @@ class BranchChooserComboBoxDialog(val project: Project) : DialogWrapper(true) { | |||
} | |||
runAsync { | |||
LanguageServerWrapper.getInstance().updateConfiguration() | |||
LanguageServerWrapper.getInstance().sendScanCommand(project) |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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
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 | ||
} |
There was a problem hiding this comment.
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.
Merged it into the IaC PR |
Description
Checklist
Screenshots / GIFs