From cf3b4b0ba79e342fb6a41659d52daac1f7aa2703 Mon Sep 17 00:00:00 2001 From: Chase Weaver Date: Wed, 24 Jan 2024 15:24:49 -0500 Subject: [PATCH] Fix: Comment shortcut in Svelte files now respects if the line(s) are HTML vs JS/TS (#5860) Release Notes: - Fixed: When using the comment shortcut, previously HTML or JS/TS would all prefix lines with `// `. This PR brings the comments inline with what is expected (`// ` for JS/TS, `` for HTML). Fixes [#4578](https://github.com/zed-industries/zed/issues/4578). --- crates/zed/src/languages/svelte/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/zed/src/languages/svelte/config.toml b/crates/zed/src/languages/svelte/config.toml index 76f03493b5..ff450f3f84 100644 --- a/crates/zed/src/languages/svelte/config.toml +++ b/crates/zed/src/languages/svelte/config.toml @@ -1,6 +1,6 @@ name = "Svelte" path_suffixes = ["svelte"] -line_comment = "// " +block_comment = [""] autoclose_before = ";:.,=}])>" brackets = [ { start = "{", end = "}", close = true, newline = true },