From 2db19e19a540c5a6cfd4e16dbae90493f2a3a8be Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Sun, 3 Aug 2025 21:17:56 -0700 Subject: [PATCH] Improve the yaml outline to show the key value if it's a simple string (#35562) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before: Screenshot 2025-08-03 at 8 58 16 PM After: Screenshot 2025-08-03 at 8 59 30 PM Release Notes: - Improved the yaml outline to include the key's value if it's a simple string. --- crates/languages/src/yaml/outline.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/languages/src/yaml/outline.scm b/crates/languages/src/yaml/outline.scm index 7ab007835f..c5a7f8e5d4 100644 --- a/crates/languages/src/yaml/outline.scm +++ b/crates/languages/src/yaml/outline.scm @@ -1 +1,9 @@ -(block_mapping_pair key: (flow_node (plain_scalar (string_scalar) @name))) @item +(block_mapping_pair + key: + (flow_node + (plain_scalar + (string_scalar) @name)) + value: + (flow_node + (plain_scalar + (string_scalar) @context))?) @item