This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 106
/
vscode-settings.json5
174 lines (157 loc) · 4.15 KB
/
vscode-settings.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
// These are recommended configuration settings for VS Code. You might want to
// make these your workspace settings and leave local changes in user settings,
// or you can just copy-paste from here. VS Code workspace settings go into
// .vscode/settings.json.
//
// Note that VS Code permits comments and trailing commas in its JSON,
// which they call "JSON with comments" or "jsonc". This file has a .json5
// extension to render well on GitHub.
////////// General //////////
"files.associations": {
// Interpret this very file as JSON with Comments.
"vscode-settings.json5": "jsonc",
// Interpret .template files as Go. We run these through a tool called genny.
"*.template": "go",
},
// Add a newline at the end of all files.
"files.insertFinalNewline": true,
// Don't look through these big directories when finding files: it's not our
// code anyhow.
"files.exclude": {
"vendor": true,
},
// Show some non-printable characters.
"editor.renderWhitespace": "boundary",
////////// Go //////////
// See test names and log output.
"go.testFlags": ["-v"],
// Tests commonly fail by running forever. You probably don't want to wait the
// default 30s.
"go.testTimeout": "5s",
// See test coverage when you run a single test. This helps you see what the
// test does.
"go.coverOnSingleTest": true,
// Run tools when you save to get faster feedback.
"go.lintOnSave": "package",
"go.vetOnSave": "package",
////////// Spell checker //////////
// Map spelling errors to Hints so that they don't show up in the Problems pane.
"cSpell.diagnosticLevel": "Hint",
// Make hints more visible in the main editor pane.
"workbench.colorCustomizations": {
"editorHint.border": "#aa0",
"editorHint.foreground": "#ffffff00",
},
// This makes the spell checker more lenient when two words are jammed together.
"cSpell.allowCompoundWords": true,
// This is the default list of filetypes to spell check except with proto3 added.
"cSpell.enabledLanguageIds": [
"asciidoc",
"c",
"cpp",
"csharp",
"css",
"go",
"handlebars",
"html",
"jade",
"javascript",
"javascriptreact",
"json",
"latex",
"less",
"markdown",
"php",
"plaintext",
"python",
"pub",
"restructuredtext",
"rust",
"scss",
"text",
"typescript",
"typescriptreact",
"yml",
"proto3",
],
// This is a whitelist of words that we think we spell just fine.
"cSpell.words": [
"Enumerate's",
"akutan",
"akutanql",
"btree",
"cfg",
"cmds",
"cncf",
"cpus",
"debugf",
"deps",
"diskview",
"ebay",
"errored",
"gogoproto",
"goparsify",
"goroutine",
"goroutines",
"grafana",
"grafana's",
"grpc",
"infof",
"jaeger",
"kandasamy",
"kgobject",
"kroeker",
"kube",
"kubeconfig",
"kubectl",
"kubernetes",
"log",
"logrus",
"minikube",
"oids",
"oneof",
"ongaro",
"parserish",
"parsify",
"pmap",
"proto",
"protobuf",
"qexec",
"rcrowley",
"rdfs",
"recvd",
"repo",
"rsync",
"sathish",
"sparql",
"stretchr",
"structs",
"systemd",
"timeout",
"tsdb",
"tx",
"txns",
"txview",
"uint",
"unbatched",
"unbuffered",
"unexported",
"unparsed",
"unregister",
"upsert",
"vektah",
"virtualbox",
"warnf"
],
// This is a blacklist of words that are incorrect but cspell would not
// otherwise flag.
"cSpell.flagWords": [
"comparision",
"gathes",
"leafs",
"messure",
"promethues",
"tripple"
]
}