Skip to content

Commit

Permalink
Skip module check to ensure update action is fast enough on 'scan mod…
Browse files Browse the repository at this point in the history
…ule' action (#612).
  • Loading branch information
jshiell committed Jun 5, 2023
1 parent 78094c0 commit 87cbefc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# CheckStyle-IDEA Changelog

* **5.80.1** Fixed: Skip changelist check to ensure update action is fast enough on 'scan modified files' action (#615).
* **5.80.1** Fixed: Skip changelist & module checks to ensure update action is fast enough on toolbar actions (#612, #615).
* **5.80.0** New: Added Checkstyle 10.12.0.
* **5.79.0** New: Added Checkstyle 10.10.0.
* **5.78.0** New: Added Checkstyle 10.9.3.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repositories {
// Project Metadata
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

version = '5.80.0'
version = '5.80.1'

intellij {
version = 'IC-2022.1.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,7 @@ public final void update(final @NotNull AnActionEvent event) {

project(event).ifPresentOrElse(project -> {
try {
final VirtualFile[] selectedFiles = FileEditorManager.getInstance(project).getSelectedFiles();
if (selectedFiles.length > 0 && ModuleUtil.findModuleForFile(selectedFiles[0], project) != null) {
presentation.setEnabled(!staticScanner(project).isScanInProgress());
} else {
presentation.setEnabled(false);
}
presentation.setEnabled(!staticScanner(project).isScanInProgress());

} catch (Throwable e) {
LOG.warn("Current Module button update failed", e);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<change-notes>
<![CDATA[
<ul>
<li>5.80.1: Fixed: Skip changelist check to ensure update action is fast enough on 'scan modified files' action (#615).</li>
<li>5.80.1: Fixed: Skip changelist & module checks to ensure update action is fast enough on toolbar actions (#612, #615).</li>
<li>5.80.0: New: Added Checkstyle 10.12.0.</li>
<li>5.79.0: New: Added Checkstyle 10.10.0.</li>
<li>5.78.0: New: Added Checkstyle 10.9.3.</li>
Expand Down

0 comments on commit 87cbefc

Please sign in to comment.