vscode: let cSpell work on commit messages, too
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 30 Jul 2018 15:42:58 +0000 (08:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Jul 2018 20:14:39 +0000 (13:14 -0700)
By default, the cSpell extension ignores all files under .git/. That
includes, unfortunately, COMMIT_EDITMSG, i.e. commit messages. However,
spell checking is *quite* useful when writing commit messages... And
since the user hardly ever opens any file inside .git (apart from commit
messages, the config, and sometimes interactive rebase's todo lists),
there is really not much harm in *not* ignoring .git/.

The default also ignores `node_modules/`, but that does not apply to
Git, so let's skip ignoring that, too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/vscode/init.sh
index a134cb4c5fc703f0e3f3da68ca6ecf0b55078171..27de94994b5dc5fef855ef983d0eb53a512d70c9 100755 (executable)
@@ -33,6 +33,8 @@ cat >.vscode/settings.json.new <<\EOF ||
         "*.h": "c",
         "*.c": "c"
     },
+    "cSpell.ignorePaths": [
+    ],
     "cSpell.words": [
         "DATAW",
         "DBCACHED",