Skip to content

Commit 45fb41a

Browse files
java-team-github-botgoogle-java-format Team
authored and
google-java-format Team
committed
Fix the google-java-format IDEA plugin for 2020.2 IDEs.
PiperOrigin-RevId: 320945302
1 parent 1715884 commit 45fb41a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

idea_plugin/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ apply plugin: 'java'
3131

3232
intellij {
3333
pluginName = "google-java-format"
34-
version = "2020.1"
34+
version = "202.6250.13-EAP-SNAPSHOT"
3535
}
3636

3737
patchPluginXml {
3838
pluginDescription = "Formats source code using the google-java-format tool. This version of " +
3939
"the plugin uses version ${googleJavaFormatVersion} of the tool."
40-
version = "${googleJavaFormatVersion}.0.0"
40+
version = "${googleJavaFormatVersion}.0.1"
4141
sinceBuild = '201'
4242
untilBuild = ''
4343
}

idea_plugin/resources/META-INF/plugin.xml

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
<change-notes><![CDATA[
3030
<dl>
31+
<dt>1.8.0.1</dt>
32+
<dd>Fixed support for 2020.2 IDEs.<dd>
3133
<dt>1.8.0.0</dt>
3234
<dd>Updated to use google-java-format 1.8.<dd>
3335
<dt>1.7.0.5</dt>

idea_plugin/src/com/google/googlejavaformat/intellij/CodeStyleManagerDecorator.java

+5
Original file line numberDiff line numberDiff line change
@@ -231,4 +231,9 @@ public int adjustLineIndent(final Document document, final int offset, Formattin
231231
}
232232
return offset;
233233
}
234+
235+
@Override
236+
public void scheduleReformatWhenSettingsComputed(PsiFile file) {
237+
delegate.scheduleReformatWhenSettingsComputed(file);
238+
}
234239
}

0 commit comments

Comments
 (0)