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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

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