I am using vs code for my scala/play application.
Whenever I save my main.scala.html layout file, the formatting screws up my references to my assets files.
It inserts a space and my references to my css and js files fails.
<link rel="stylesheet" media="screen" href="@routes.Assets.versioned(" dist/styles.min.css")"> <link
Note: there is a space between (" dist/...")
If I remove the space and save, it gets inserted again.
I first thought it was scala format, but if I explicitly exclude the file it doesnt' do anything.
In my .scalafmt.conf file I added: (I added the project.excludeFilters setting):
version = "2.4.0"
align = more
maxColumn = 110
spaces.inImportCurlyBraces = true
rewrite.rules = [SortImports, RedundantParens, SortModifiers]
rewrite.redundantBraces.stringInterpolation = true
project.excludeFilters = [
"myapp/app/views/main.scala.html"
]
I am using scala format version 2.4.0
I'm not sure if this is scala format or metals doing this?
My extensions are: