-
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: source IaC results from LS, make progresses & scans cancelable [IDE-630] #616
Conversation
# Conflicts: # src/main/kotlin/io/snyk/plugin/ui/toolwindow/panels/JCEFDescriptionPanel.kt # src/main/resources/META-INF/plugin.xml
# Conflicts: # CHANGELOG.md
|
||
private fun cancelProgress(token: String) { | ||
try { | ||
progresses[token]?.cancel() |
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.
am wondering if we need a mutex here
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.
progresses is a concurrentMap - so we don't
@@ -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.
will LS trigger a scan here on config change? or is it a behavior we don't want atm?
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.
I think, updateConfiguration() already triggers a scan.
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.
🚀🌑✨
# Conflicts: # src/main/kotlin/snyk/common/lsp/SnykLanguageClient.kt
Description
Checklist
Screenshots / GIFs
Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!