From e763fd0942800c8fb8543b9d1b100274b084d0f3 Mon Sep 17 00:00:00 2001 From: Colin Adler Date: Mon, 21 Mar 2022 20:25:30 -0500 Subject: [PATCH] chore: enable files.insertFinalNewline in vscode Ensures there's always a newline at the end of files. They seem to be randomly missing, which cause weird diffs. --- .vscode/settings.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 6a0c756a79fe0..04a58243faf8b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -61,6 +61,8 @@ "files.exclude": { "**/node_modules": true }, + // Ensure files always have a newline. + "files.insertFinalNewline": true, "go.lintTool": "golangci-lint", "go.lintFlags": ["--fast"], "go.lintOnSave": "package", @@ -79,5 +81,5 @@ }, // We often use a version of TypeScript that's ahead of the version shipped // with VS Code. - "typescript.tsdk": "./site/node_modules/typescript/lib" + "typescript.tsdk": "./site/node_modules/typescript/lib", }