From 4dd05a80e0b140d5c3f7f619966a4e5238e5d422 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Fri, 21 Jun 2024 10:58:44 +0200 Subject: [PATCH] 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. --- crates/languages/src/yaml/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/languages/src/yaml/config.toml b/crates/languages/src/yaml/config.toml index 43b21a1329..434c414eaf 100644 --- a/crates/languages/src/yaml/config.toml +++ b/crates/languages/src/yaml/config.toml @@ -9,6 +9,7 @@ brackets = [ { start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] }, ] +auto_indent_using_last_non_empty_line = false increase_indent_pattern = ":\\s*[|>]?\\s*$" prettier_parser_name = "yaml" tab_size = 2