From ff7bbbab648ff92d49d2fbf0f902fffa96ec3e56 Mon Sep 17 00:00:00 2001 From: Brendon Smith Date: Fri, 18 Sep 2020 13:45:25 -0400 Subject: [PATCH] Avoid removing backslashes from Dockerfiles foxundermoon/vs-shell-format#29 foxundermoon/vs-shell-format#62 mvdan/sh#424 The foxundermoon/vs-shell-format extension formats Dockerfiles, but it shouldn't, because the underlying formatter mvdan/sh isn't engineered for Dockerfiles. As explained in mvdan/sh#424, > Removing the `\` is correct in shell, because a line ending in `&&` > just continues the command in the following line. This commit will disable Dockerfile formatting. --- codium/User/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codium/User/settings.json b/codium/User/settings.json index 1a7e0a7..21155de 100644 --- a/codium/User/settings.json +++ b/codium/User/settings.json @@ -95,7 +95,7 @@ "cSpell.spellCheckDelayMs": 5000, "deno.unstable": false, "[dockerfile]": { - "editor.defaultFormatter": "foxundermoon.shell-format" + "editor.formatOnSave": false }, "[dotenv]": { "editor.defaultFormatter": "foxundermoon.shell-format" @@ -150,6 +150,7 @@ "editor.rulers": [80], "files.eol": "\n" }, + "shellformat.effectLanguages": ["shellscript"], "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },