Skip to content

Commit eb2759a

Browse files
committed
vscode: add a dictionary for cSpell
The quite useful cSpell extension allows VS Code to have "squiggly" lines under spelling mistakes. By default, this would add too much clutter, though, because so much of Git's source code uses words that would trigger cSpell. Let's add a few words to make the spell checking more useful by reducing the number of false positives. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 2e880b6 commit eb2759a

File tree

1 file changed

+163
-1
lines changed

1 file changed

+163
-1
lines changed

contrib/vscode/init.sh

Lines changed: 163 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,169 @@ cat >.vscode/settings.json.new <<\EOF ||
3232
"files.associations": {
3333
"*.h": "c",
3434
"*.c": "c"
35-
}
35+
},
36+
"cSpell.words": [
37+
"DATAW",
38+
"DBCACHED",
39+
"DFCHECK",
40+
"DTYPE",
41+
"HCAST",
42+
"HEXSZ",
43+
"HKEY",
44+
"HKLM",
45+
"IFGITLINK",
46+
"IFINVALID",
47+
"ISBROKEN",
48+
"ISGITLINK",
49+
"ISSYMREF",
50+
"LPDWORD",
51+
"LPPROC",
52+
"LPWSTR",
53+
"MSVCRT",
54+
"NOARG",
55+
"NOCOMPLETE",
56+
"NOINHERIT",
57+
"RENORMALIZE",
58+
"STARTF",
59+
"STARTUPINFOEXW",
60+
"Schindelin",
61+
"UCRT",
62+
"YESNO",
63+
"argcp",
64+
"beginthreadex",
65+
"committish",
66+
"contentp",
67+
"cpath",
68+
"cpidx",
69+
"ctim",
70+
"dequote",
71+
"envw",
72+
"ewah",
73+
"fdata",
74+
"fherr",
75+
"fhin",
76+
"fhout",
77+
"fragp",
78+
"fsmonitor",
79+
"hnsec",
80+
"idents",
81+
"includeif",
82+
"interpr",
83+
"iprog",
84+
"isexe",
85+
"iskeychar",
86+
"kompare",
87+
"mksnpath",
88+
"mktag",
89+
"mktree",
90+
"mmblob",
91+
"mmbuffer",
92+
"mmfile",
93+
"noenv",
94+
"nparents",
95+
"ntpath",
96+
"ondisk",
97+
"ooid",
98+
"oplen",
99+
"osdl",
100+
"pnew",
101+
"pold",
102+
"ppinfo",
103+
"pushf",
104+
"pushv",
105+
"rawsz",
106+
"reencode",
107+
"repo",
108+
"rerere",
109+
"scld",
110+
"sharedrepo",
111+
"spawnv",
112+
"spawnve",
113+
"spawnvpe",
114+
"strdup'ing",
115+
"topath",
116+
"topo",
117+
"tpatch",
118+
"unexecutable",
119+
"unhide",
120+
"unkc",
121+
"unkv",
122+
"unmark",
123+
"unmatch",
124+
"unsets",
125+
"unshown",
126+
"untracked",
127+
"untrackedcache",
128+
"unuse",
129+
"upos",
130+
"uval",
131+
"vreportf",
132+
"wargs",
133+
"wargv",
134+
"wbuffer",
135+
"wcmd",
136+
"wcsnicmp",
137+
"wcstoutfdup",
138+
"wdeltaenv",
139+
"wdir",
140+
"wenv",
141+
"wenvblk",
142+
"wenvcmp",
143+
"wenviron",
144+
"wenvpos",
145+
"wenvsz",
146+
"wfile",
147+
"wfilename",
148+
"wfopen",
149+
"wfreopen",
150+
"wfullpath",
151+
"which'll",
152+
"wlink",
153+
"wmain",
154+
"wmkdir",
155+
"wmktemp",
156+
"wnewpath",
157+
"wotype",
158+
"wpath",
159+
"wpathname",
160+
"wpgmptr",
161+
"wpnew",
162+
"wpointer",
163+
"wpold",
164+
"wpos",
165+
"wputenv",
166+
"wrmdir",
167+
"wship",
168+
"wtarget",
169+
"wtemplate",
170+
"wunlink",
171+
"xcalloc",
172+
"xgetcwd",
173+
"xmallocz",
174+
"xmemdupz",
175+
"xmmap",
176+
"xopts",
177+
"xrealloc",
178+
"xsnprintf",
179+
"xutftowcs",
180+
"xutftowcsn",
181+
"xwcstoutf"
182+
],
183+
"cSpell.ignoreRegExpList": [
184+
"\\\"(DIRC|FSMN|REUC|UNTR)\\\"",
185+
"\\\\u[0-9a-fA-Fx]{4}\\b",
186+
"\\b(filfre|frotz|xyzzy)\\b",
187+
"\\bCMIT_FMT_DEFAULT\\b",
188+
"\\bde-munge\\b",
189+
"\\bGET_OID_DISAMBIGUATORS\\b",
190+
"\\bHASH_RENORMALIZE\\b",
191+
"\\bTREESAMEness\\b",
192+
"\\bUSE_STDEV\\b",
193+
"\\Wchar *\\*\\W*utfs\\W",
194+
"cURL's",
195+
"nedmalloc'ed",
196+
"ntifs\\.h",
197+
],
36198
}
37199
EOF
38200
die "Could not write settings.json"

0 commit comments

Comments
 (0)