Skip to content

Commit ff7bbba

Browse files
committed
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.
1 parent a833916 commit ff7bbba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codium/User/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"cSpell.spellCheckDelayMs": 5000,
9696
"deno.unstable": false,
9797
"[dockerfile]": {
98-
"editor.defaultFormatter": "foxundermoon.shell-format"
98+
"editor.formatOnSave": false
9999
},
100100
"[dotenv]": {
101101
"editor.defaultFormatter": "foxundermoon.shell-format"
@@ -150,6 +150,7 @@
150150
"editor.rulers": [80],
151151
"files.eol": "\n"
152152
},
153+
"shellformat.effectLanguages": ["shellscript"],
153154
"[typescript]": {
154155
"editor.defaultFormatter": "esbenp.prettier-vscode"
155156
},

0 commit comments

Comments
 (0)