always ends up being 2. Is there an easy way to get the correct
indentSize
or does it have to be calculated each time based on the
PsiElement/ASTNode
and where it's positioned in the file?
eygraber
06/11/2021, 9:40 AM
I'm defaulting to
2
for now so that my tests pass
r
romtsn
06/11/2021, 12:16 PM
the one that you’re trying to retrieve via
getUserData
comes actually from what you’ve set in
.editorconfig
romtsn
06/11/2021, 12:39 PM
and indeed it’s constant. If you are looking for how to get the current indent of a line, you can use our extension or if you need the indent of a nodehere’s how Kotlin does it