We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
align.inInterpolation = true
runner.dialect = scala3 version = "3.4.2" maxColumn = 80 align.inInterpolation = true
Given code like this:
val s = raw""" ${ if true then println() "1" else "2" } ${if false then "3" else "4"} """
When I run scalafmt from Format Document command in VSCode:
Format Document
Scalafmt formats code like this:
val s = raw""" ${if true then println() "1" else "2"} ${if false then "3" else "4"} """
and the following compile error is raised by the Scala 3 compiler:
end of statement expected but 'else' found
I would like the formatted output to compile
The text was updated successfully, but these errors were encountered:
looks like scala 3 must use a different newlines.inInterpolation setting. i can add a check and use oneline instead.
newlines.inInterpolation
oneline
Sorry, something went wrong.
inInterpolation=allow
if
Successfully merging a pull request may close this issue.
Steps
Given code like this:
When I run scalafmt from
Format Document
command in VSCode:Problem
Scalafmt formats code like this:
and the following compile error is raised by the Scala 3 compiler:
Expectation
I would like the formatted output to compile
The text was updated successfully, but these errors were encountered: