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 {
46
46
implementation " org.jetbrains.exposed:exposed-dao:$exposedVersion "
47
47
implementation " org.jetbrains.exposed:exposed-jdbc:$exposedVersion "
48
48
implementation ' com.h2database:h2:1.4.200'
49
- implementation ' com.github.fwcd.ktfmt:ktfmt:8ef3ee752a '
49
+ implementation ' com.github.fwcd.ktfmt:ktfmt:b5d31d1 '
50
50
implementation ' com.beust:jcommander:1.78'
51
51
52
52
testImplementation ' org.hamcrest:hamcrest-all:1.3'
Original file line number Diff line number Diff line change 1
1
package org.javacs.kt.formatting
2
2
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
5
5
import org.eclipse.lsp4j.FormattingOptions
6
6
7
7
fun formatKotlinCode (
8
8
code : String ,
9
9
options : FormattingOptions = FormattingOptions (4, true)
10
- ): String = format(KtfmtOptions (
10
+ ): String = Formatter . format(KtfmtOptions (
11
11
style = KtfmtOptions .Style .GOOGLE ,
12
12
blockIndent = options.tabSize,
13
13
continuationIndent = 2 * options.tabSize
You can’t perform that action at this time.
0 commit comments