YAML: set auto_indent_using_last_non_empty_line to false (fix wonky formatting) (#13351)
This makes us treat yaml like other indentation-sensitive languages (e.g. Python) and not reformat it on pasting and what not. Fixes #12236 Fixes #13338 Release Notes: - Fixed spurious appliance of auto-formatting to YAML blocks.
This commit is contained in:
parent
44c479c50c
commit
4dd05a80e0
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ brackets = [
|
||||||
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] },
|
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
auto_indent_using_last_non_empty_line = false
|
||||||
increase_indent_pattern = ":\\s*[|>]?\\s*$"
|
increase_indent_pattern = ":\\s*[|>]?\\s*$"
|
||||||
prettier_parser_name = "yaml"
|
prettier_parser_name = "yaml"
|
||||||
tab_size = 2
|
tab_size = 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue