]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
editor: vscode: do not trim diff file trailing whitespace 24411/head
authorShiji Yang <yangshiji66@outlook.com>
Sat, 25 Jul 2026 02:53:03 +0000 (10:53 +0800)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sat, 25 Jul 2026 20:45:06 +0000 (22:45 +0200)
This rule will break the patch structure.

Fixes: af75e1c527d0 ("vscode: update editor formatting and line endings settings")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/24411
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
.vscode/settings.json

index fd1d4e77eda2a7da1efe4b8967486946a44d2aa3..1bdcb571047f8682176eede9b0f87eb5ff435d60 100644 (file)
@@ -3,5 +3,9 @@
     "files.trimTrailingWhitespace": true,
     "files.insertFinalNewline": true,
     "files.trimFinalNewlines": true,
-    "files.eol": "\n"
+    "files.eol": "\n",
+
+    "[diff]": {
+        "files.trimTrailingWhitespace": false
+    }
 }