From 72dca9981e40a5a843456e8eda9fac3c281a9f47 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Mon, 30 Oct 2023 18:32:55 +0900 Subject: [PATCH] VSCode: ensure that text files are properly terminated per POSIX standard. Text files should always end with a newline, so that all lines are complete and simplistic tools do not skip the last line. VSCode seems to apply this by default to py, but not to json files. --- .vscode/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 01bdc392b3..9298b91a6d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,7 @@ "editor.formatOnType": true, "files.eol": "\n", "files.trimTrailingWhitespace": true, + "files.insertFinalNewline": true, "python.linting.pylintEnabled": true, "python.linting.enabled": true, "python.formatting.provider": "black", @@ -11,4 +12,4 @@ "python.testing.pytestEnabled": true, "pylint.importStrategy": "fromEnvironment", "python.linting.lintOnSave": true, -} \ No newline at end of file +}