File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/kotlin/org/javacs/kt/formatting Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ dependencies {
4646 implementation " org.jetbrains.exposed:exposed-dao:$exposedVersion "
4747 implementation " org.jetbrains.exposed:exposed-jdbc:$exposedVersion "
4848 implementation ' com.h2database:h2:1.4.200'
49- implementation ' com.github.fwcd.ktfmt:ktfmt:8ef3ee752a '
49+ implementation ' com.github.fwcd.ktfmt:ktfmt:b5d31d1 '
5050 implementation ' com.beust:jcommander:1.78'
5151
5252 testImplementation ' org.hamcrest:hamcrest-all:1.3'
Original file line number Diff line number Diff line change 11package org.javacs.kt.formatting
22
3- import com.facebook.ktfmt.format
4- import com.facebook.ktfmt.FormattingOptions as KtfmtOptions
3+ import com.facebook.ktfmt.format.Formatter
4+ import com.facebook.ktfmt.format. FormattingOptions as KtfmtOptions
55import org.eclipse.lsp4j.FormattingOptions
66
77fun formatKotlinCode (
88 code : String ,
99 options : FormattingOptions = FormattingOptions (4, true)
10- ): String = format(KtfmtOptions (
10+ ): String = Formatter . format(KtfmtOptions (
1111 style = KtfmtOptions .Style .GOOGLE ,
1212 blockIndent = options.tabSize,
1313 continuationIndent = 2 * options.tabSize
You can’t perform that action at this time.
0 commit comments