Enable auto format for css and scss files (#4987)

provideFormatter enables capability in LS and
auto-format performs format on save
This commit is contained in:
Aleksey Kuznetsov 2022-12-03 19:24:43 +05:00 committed by GitHub
parent bcdb475b71
commit 2123e91e56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,6 +422,8 @@ injection-regex = "css"
file-types = ["css", "scss"]
roots = []
language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
auto-format = true
config = { "provideFormatter" = true }
indent = { tab-width = 2, unit = " " }
[[grammar]]
@ -435,6 +437,8 @@ injection-regex = "scss"
file-types = ["scss"]
roots = []
language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
auto-format = true
config = { "provideFormatter" = true }
indent = { tab-width = 2, unit = " " }
[[grammar]]