From 87aa6a6a129cb4f0414ed685fca58f9efa422c03 Mon Sep 17 00:00:00 2001 From: RedCMD Date: Sat, 15 Jun 2024 09:59:08 +1200 Subject: [PATCH] Restrict `insertFinalNewline` to `ts`, `json` and `jsonc` files --- .vscode/settings.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ce2c8ff..6eaef6b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,10 +9,9 @@ // Turn off tsc task auto detection since we have the necessary tasks as npm scripts "typescript.tsc.autoDetect": "off", "typescript.format.semicolons": "insert", - "files.insertFinalNewline": true, // because of Github "files.trimFinalNewlines": true, "C_Cpp.errorSquiggles": "enabled", - "[json-textmate]": { - "files.insertFinalNewline": false, + "[typescript][json][jsonc]": { + "files.insertFinalNewline": true, // because of Github }, }