Skip to content

Commit

Permalink
Fix the google-java-format IDEA plugin for 2020.2 IDEs.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 320945302
  • Loading branch information
java-team-github-bot authored and google-java-format Team committed Jul 13, 2020
1 parent 1715884 commit 45fb41a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions idea_plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ apply plugin: 'java'

intellij {
pluginName = "google-java-format"
version = "2020.1"
version = "202.6250.13-EAP-SNAPSHOT"
}

patchPluginXml {
pluginDescription = "Formats source code using the google-java-format tool. This version of " +
"the plugin uses version ${googleJavaFormatVersion} of the tool."
version = "${googleJavaFormatVersion}.0.0"
version = "${googleJavaFormatVersion}.0.1"
sinceBuild = '201'
untilBuild = ''
}
Expand Down
2 changes: 2 additions & 0 deletions idea_plugin/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

<change-notes><![CDATA[
<dl>
<dt>1.8.0.1</dt>
<dd>Fixed support for 2020.2 IDEs.<dd>
<dt>1.8.0.0</dt>
<dd>Updated to use google-java-format 1.8.<dd>
<dt>1.7.0.5</dt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,9 @@ public int adjustLineIndent(final Document document, final int offset, Formattin
}
return offset;
}

@Override
public void scheduleReformatWhenSettingsComputed(PsiFile file) {
delegate.scheduleReformatWhenSettingsComputed(file);
}
}

0 comments on commit 45fb41a

Please sign in to comment.