-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert IntelliJ plugin to Kotlin (#502)
Summary: > [!NOTE] > This requires #501 to be merged first This PR is the basis for future improvements of the plugin. In this PR, the plugin code is converted to Kotlin, the configurable is recreated with the Kotlin UI DSL, and the goal is to maintain the existing behaviours. The only small change is that the style dropdown in the configurable is disabled when ktfmt is disabled. Pull Request resolved: #502 Reviewed By: strulovich Differential Revision: D60968984 Pulled By: hick209 fbshipit-source-id: 467ce14d21d06c783d8e9254e913f966dcbff8ca
- Loading branch information
1 parent
1ae24d9
commit 5d876ca
Showing
15 changed files
with
322 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
[versions] | ||
googleJavaFormat = "1.23.0" | ||
kotlin = "2.0.0" | ||
|
||
# plugins | ||
gradlePlugin-intelliJPlatform = "2.0.0" | ||
gradlePlugin-spotless = "6.25.0" | ||
|
||
[libraries] | ||
googleJavaFormat = { module = "com.google.googlejavaformat:google-java-format", version.ref = "googleJavaFormat" } | ||
gradlePlugin-ktfmt = "0.19.0" | ||
|
||
[plugins] | ||
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } | ||
intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "gradlePlugin-intelliJPlatform" } | ||
spotless = { id = "com.diffplug.spotless", version.ref = "gradlePlugin-spotless" } | ||
ktfmt = { id = "com.ncorti.ktfmt.gradle", version.ref = "gradlePlugin-ktfmt" } |
63 changes: 0 additions & 63 deletions
63
...plugin/src/main/java/com/facebook/ktfmt/intellij/InitialConfigurationStartupActivity.java
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
ktfmt_idea_plugin/src/main/java/com/facebook/ktfmt/intellij/KtfmtConfigurable.form
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.