diff --git a/build.gradle.kts b/build.gradle.kts
index a8b6297c..b373aff9 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ plugins {
}
group = "org.jetbrains.research.refactorinsight"
-version = "2022.3-3.0"
+version = "2023.1-1.0"
repositories {
mavenCentral()
diff --git a/plugin/build.gradle b/plugin/build.gradle
index 109fa84f..3c56e2cc 100644
--- a/plugin/build.gradle
+++ b/plugin/build.gradle
@@ -28,4 +28,16 @@ dependencies {
runIde {
maxHeapSize = "4g"
+}
+
+tasks {
+ buildSearchableOptions {
+ enabled = false
+ }
+
+ patchPluginXml {
+ version.set("${project.version}")
+ sinceBuild.set("221")
+ untilBuild.set("232.*")
+ }
}
\ No newline at end of file
diff --git a/plugin/src/main/java/org/jetbrains/research/refactorinsight/processors/CommitMiner.java b/plugin/src/main/java/org/jetbrains/research/refactorinsight/processors/CommitMiner.java
index 3b967208..9ea921ac 100644
--- a/plugin/src/main/java/org/jetbrains/research/refactorinsight/processors/CommitMiner.java
+++ b/plugin/src/main/java/org/jetbrains/research/refactorinsight/processors/CommitMiner.java
@@ -106,25 +106,23 @@ public void handle(String commitId, List refactorings) {
}
});
- ApplicationManager.getApplication().executeOnPooledThread(() -> {
- try {
- List changes = new ArrayList<>();
- GitLogUtil.readFullDetailsForHashes(project,
- ProjectFileIndex.getInstance(project).getContentRootForFile(project.getProjectFile()),
- Collections.singletonList(commitHash),
- GitCommitRequirements.DEFAULT,
- c -> changes.addAll(c.getChanges()));
- ApplicationManager.getApplication().invokeLater(() -> {
- var refactorings = KotlinRMiner.INSTANCE.detectRefactorings(project, changes);
- refactorings.forEach(
- r -> createRefactoringEntry(map, commitHash, commitParentHash,
- commitTimestamp, project, refactorings)
- );
- });
- } catch (VcsException e) {
- throw new RuntimeException(e);
- }
- });
+ try {
+ List changes = new ArrayList<>();
+ GitLogUtil.readFullDetailsForHashes(project,
+ ProjectFileIndex.getInstance(project).getContentRootForFile(project.getProjectFile()),
+ Collections.singletonList(commitHash),
+ GitCommitRequirements.DEFAULT,
+ c -> changes.addAll(c.getChanges()));
+ ApplicationManager.getApplication().invokeLater(() -> {
+ var refactorings = KotlinRMiner.INSTANCE.detectRefactorings(project, changes);
+ refactorings.forEach(
+ r -> createRefactoringEntry(map, commitHash, commitParentHash,
+ commitTimestamp, project, refactorings)
+ );
+ });
+ } catch (VcsException e) {
+ throw new RuntimeException(e);
+ }
} catch (Exception e) {
e.printStackTrace();
}
diff --git a/plugin/src/main/resources/META-INF/plugin.xml b/plugin/src/main/resources/META-INF/plugin.xml
index 39430f3c..337851c2 100644
--- a/plugin/src/main/resources/META-INF/plugin.xml
+++ b/plugin/src/main/resources/META-INF/plugin.xml
@@ -2,7 +2,6 @@
org.jetbrains.research.refactorinsight
RefactorInsight
JetBrains
- 2022.3-3.0
Enhances IDE representation of code changes with refactoring information.
@@ -17,6 +16,11 @@
]]>
2023.1-1.0
+
+ - Add compatibility with IDEA 2023.1
+
+
2022.3-3.0
- Add a possibility to hide non-functional changes in code diffs.