Skip to content

Commit

Permalink
Release 2023.1-1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
onewhl committed Mar 8, 2023
1 parent 9b9a6f2 commit 92d3bf8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 21 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "org.jetbrains.research.refactorinsight"
version = "2022.3-3.0"
version = "2023.1-1.0"

repositories {
mavenCentral()
Expand Down
12 changes: 12 additions & 0 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,16 @@ dependencies {

runIde {
maxHeapSize = "4g"
}

tasks {
buildSearchableOptions {
enabled = false
}

patchPluginXml {
version.set("${project.version}")
sinceBuild.set("221")
untilBuild.set("232.*")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,23 @@ public void handle(String commitId, List<Refactoring> refactorings) {
}
});

ApplicationManager.getApplication().executeOnPooledThread(() -> {
try {
List<Change> 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<Change> 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();
}
Expand Down
6 changes: 5 additions & 1 deletion plugin/src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<id>org.jetbrains.research.refactorinsight</id>
<name>RefactorInsight</name>
<vendor>JetBrains</vendor>
<version>2022.3-3.0</version>

<description><![CDATA[
<p>Enhances IDE representation of code changes with refactoring information.</p>
Expand All @@ -17,6 +16,11 @@
]]></description>

<change-notes><![CDATA[
<h4>2023.1-1.0</h4>
<ul>
<li>Add compatibility with IDEA 2023.1</li>
</ul>
<h4>2022.3-3.0</h4>
<ul>
<li>Add a possibility to hide non-functional changes in code diffs.</li>
Expand Down

0 comments on commit 92d3bf8

Please sign in to comment.