summaryrefslogtreecommitdiff
path: root/contrib/vscode
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-07-30 15:42:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-30 20:14:39 (GMT)
commit12861e200a0e530f5293374a9507c6aea0359e25 (patch)
treef15e9165807544c92b17ba38fad0ff271caed1f4 /contrib/vscode
parent2a2cdd069a071277923b4fcb51d93c38f0616956 (diff)
downloadgit-12861e200a0e530f5293374a9507c6aea0359e25.zip
git-12861e200a0e530f5293374a9507c6aea0359e25.tar.gz
git-12861e200a0e530f5293374a9507c6aea0359e25.tar.bz2
vscode: let cSpell work on commit messages, too
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>
Diffstat (limited to 'contrib/vscode')
-rwxr-xr-xcontrib/vscode/init.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/vscode/init.sh b/contrib/vscode/init.sh
index a134cb4..27de949 100755
--- a/contrib/vscode/init.sh
+++ b/contrib/vscode/init.sh
@@ -33,6 +33,8 @@ cat >.vscode/settings.json.new <<\EOF ||
"*.h": "c",
"*.c": "c"
},
+ "cSpell.ignorePaths": [
+ ],
"cSpell.words": [
"DATAW",
"DBCACHED",