Skip to content

Commit

Permalink
Build 231.3169
Browse files Browse the repository at this point in the history
  • Loading branch information
hurricup committed Dec 11, 2022
1 parent 3b4b795 commit f6dcdcb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
# https://www.jetbrains.com/intellij-repository/releases
# https://www.jetbrains.com/intellij-repository/snapshots
name="Perl5 Support (Camelcade)"
platformVersion=2022
platformBranch=.3
platformVersion=231
platformBranch=-SNAPSHOT
platformBuild=
pluginVersion=2022
pluginBranch=
pluginVersion=231
pluginBranch=.3169-EAP-SNAPSHOT
pluginBuild=
pycharmVersion=192.4787.5-EAP-SNAPSHOT
clionVersion=192.4787.12-EAP-SNAPSHOT
psiViewerVersion=223-SNAPSHOT
psiViewerVersion=231-SNAPSHOT
intelliLangPlugin=org.intellij.intelliLang
remoteRunPlugin=org.jetbrains.plugins.remote-run
coveragePlugin=Coverage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ public void runActivity(@NotNull Project project) {
reset();
}


@Override
public void modulesAdded(@NotNull Project project, @NotNull List<Module> modules) {
public void modulesAdded(@NotNull Project project, @NotNull List<? extends Module> modules) {
reset();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.application.ReadAction;
import com.intellij.openapi.application.WriteAction;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.module.ModuleManager;
Expand Down Expand Up @@ -338,7 +339,7 @@ public void actionPerformed(@NotNull AnActionEvent e) {
if (virtualFile == null) {
return getSdk(project);
}
Module module = ModuleUtilCore.findModuleForFile(virtualFile, project);
Module module = ReadAction.compute(() -> ModuleUtilCore.findModuleForFile(virtualFile, project));
return module == null ? getSdk(project) : getSdk(module);
}

Expand Down

0 comments on commit f6dcdcb

Please sign in to comment.