From eb4fc7154b80b5554c292aead209531daee541ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Thu, 4 Apr 2024 10:35:44 +0900 Subject: [PATCH] Disable todotxt grammar for files named "todo.txt" The file name is too common and can unintentionally conflict. Users should manually opt in. Fixes #10113 --- languages.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 755b37debab69..95c467659c0f3 100644 --- a/languages.toml +++ b/languages.toml @@ -3135,7 +3135,8 @@ source = { git = "https://github.com/kylegoetz/tree-sitter-unison", rev = "1f505 [[language]] name = "todotxt" scope = "text.todotxt" -file-types = [{ glob = "todo.txt" }, { glob = "*.todo.txt" }, "todotxt"] +# glob = "todo.txt" is too common and can conflict regular files, define in user config if necessary +file-types = [{ glob = "*.todo.txt" }, "todotxt"] formatter = { command = "sort" } auto-format = true