From 4213cc013cce38e57d2a9d6ae2eca2c845d4f912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Hovs=C3=A4ter?= Date: Fri, 9 Jun 2023 15:23:19 +0200 Subject: [PATCH] Update JavaScript outline queries Add support for exported const declarations in the outline view. --- crates/zed/src/languages/javascript/outline.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/zed/src/languages/javascript/outline.scm b/crates/zed/src/languages/javascript/outline.scm index f8691fa41d..a1d4d339e8 100644 --- a/crates/zed/src/languages/javascript/outline.scm +++ b/crates/zed/src/languages/javascript/outline.scm @@ -18,6 +18,13 @@ "interface" @context name: (_) @name) @item +(program + (export_statement + (lexical_declaration + ["let" "const"] @context + (variable_declarator + name: (_) @name) @item))) + (program (lexical_declaration ["let" "const"] @context