on master help sign in
Enable auto format for css and scss files (#4987)

provideFormatter enables capability in LS and auto-format performs format on save

commit2123e91e56caccf60b9285f30bc2f2f12952520a authorAleksey Kuznetsov <zummenix@gmail.com> dateSat 3 Dec 2022, 19:24 (4 years ago) parentbcdb475
1 file changed+4
languages.toml+4
languages.toml+4
@@ -422,6 +422,8 @@ injection-regex = "css"
422422file-types = ["css", "scss"]
423423roots = []
424424language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
425+auto-format = true
426+config = { "provideFormatter" = true }
425427indent = { tab-width = 2, unit = " " }
426428
427429[[grammar]]
@@ -435,6 +437,8 @@ injection-regex = "scss"
435437file-types = ["scss"]
436438roots = []
437439language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
440+auto-format = true
441+config = { "provideFormatter" = true }
438442indent = { tab-width = 2, unit = " " }
439443
440444[[grammar]]