Skip to content

Commit 68fceb3

Browse files
committed
Fix missing indentation for file block
1 parent ddc34d4 commit 68fceb3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
### Fixed
1616
- Fix a bug with script block indentation.
17+
- Fix missing indentation for file block.
1718

1819
## [1.2.0] - 2023-08-18
1920

src/main/kotlin/io/runescript/plugin/ide/formatter/blocks/impl/RsFileBlock.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@ import com.intellij.lang.ASTNode
55
import io.runescript.plugin.ide.formatter.RsFormatterContext
66
import io.runescript.plugin.ide.formatter.blocks.RsBlock
77

8-
class RsFileBlock(context: RsFormatterContext, node: ASTNode)
9-
: RsBlock(context, node, Indent.getNoneIndent(), null, null)
8+
class RsFileBlock(context: RsFormatterContext, node: ASTNode) :
9+
RsBlock(context, node, Indent.getNoneIndent(), null, null) {
10+
11+
override fun getChildIndent(): Indent? {
12+
return Indent.getNoneIndent()
13+
}
14+
}

0 commit comments

Comments
 (0)