-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
249 lines (249 loc) · 10.4 KB
/
package.json
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
{
"name": "cppincludeguard",
"displayName": "C/C++ Include Guard",
"description": "Insert C/C++ Include Guard",
"version": "1.9.0",
"license": "MIT",
"engines": {
"vscode": "1.94.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "extension.insertIncludeGuard",
"title": "Insert C/C++ Include Guard"
},
{
"command": "extension.removeIncludeGuard",
"title": "Remove C/C++ Include Guard"
},
{
"command": "extension.updateIncludeGuard",
"title": "Insert or Update C/C++ Include Guard"
}
],
"configuration": {
"title": "C/C++ Include Guard",
"type": "object",
"properties": {
"C/C++ Include Guard.Auto Include Guard Insertion For New File": {
"type": "boolean",
"default": true,
"description": "Automatically insert the include guard when adding a new header file",
"scope": "resource"
},
"C/C++ Include Guard.Auto Update Include Guard": {
"type": "boolean",
"default": true,
"markdownDescription": "Automatically update the include guard when renaming a file (only effective when macro type is not `GUID`)",
"scope": "resource"
},
"C/C++ Include Guard.Auto Update Path Allowlist": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of path roots that will be automatically updated when `C/C++ Include Guard.Auto Update Include Guard` is enabled. If empty, all paths are included by default.",
"scope": "resource"
},
"C/C++ Include Guard.Auto Update Path Blocklist": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of path roots that will not be automatically updated when `C/C++ Include Guard.Auto Update Include Guard` is enabled.",
"scope": "resource"
},
"C/C++ Include Guard.Header Extensions": {
"type": "array",
"items": {
"type": "string"
},
"default": [
".h",
".hpp",
".h++",
".hh"
],
"description": "File extensions of header files",
"scope": "resource"
},
"C/C++ Include Guard.Macro Type": {
"type": "string",
"enum": [
"GUID",
"Filename",
"Filename and GUID",
"Filepath"
],
"enumDescriptions": [
"Random GUID v4. Separated by underscores.",
"File name of the current document. All non-alphanumeric characters are replaced with underscores.",
"File name of the current document, followed by GUID, separated by an underscore.",
"File path of the current document. All non-alphanumeric characters are replaced with underscores. Works like Filename outside workspaces."
],
"default": "GUID",
"description": "Source of include guard macros. GUID, Filename, Filename and GUID, or File path.",
"scope": "resource"
},
"C/C++ Include Guard.File Path Pascal Case to Snake Case": {
"type": "boolean",
"default": false,
"description": "Converts camelCase/PascalCase directores/filenames to snake_case.",
"scope": "resource"
},
"C/C++ Include Guard.Path Depth": {
"type": "number",
"default": "0",
"description": "Number of folders which should be used for include guard. Disabled with 0.",
"scope": "resource"
},
"C/C++ Include Guard.Path Separator": {
"type": "string",
"default": "_",
"description": "String to replace path separators with when using Filepath Macro Type."
},
"C/C++ Include Guard.Path Skip": {
"type": "number",
"default": "0",
"description": "Number of folders below the workspace root that should be skipped for include guard. Disabled with 0."
},
"C/C++ Include Guard.Ignore if Pragma Once": {
"type": "boolean",
"default": "false",
"description": "Ignore file if #pragma once directive detected. Does not apply to update command.",
"scope": "resource"
},
"C/C++ Include Guard.Remove Pragma Once": {
"type": "boolean",
"default": "true",
"description": "Removes #pragma once directive if detected.",
"scope": "resource"
},
"C/C++ Include Guard.Prevent Decimal": {
"type": "boolean",
"default": "true",
"description": "Prevent GUIDs from starting with a decimal number.",
"scope": "resource"
},
"C/C++ Include Guard.Prefix": {
"type": "string",
"default": "",
"description": "Prefix added to include guard macros. Prefix will be concatenated to the beginning of the subfolder prefix.",
"scope": "resource"
},
"C/C++ Include Guard.Subfolder Prefixes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"folderPath": {
"type": "string",
"description": "Folder path relative to the workspace root."
},
"prefix": {
"type": "string",
"description": "Prefix added to include guard macros."
}
},
"required": [
"folderPath",
"prefix"
],
"additionalProperties": false
},
"default": [],
"description": "Prefix added to include guard macros when file is in a subfolder of the workspace root."
},
"C/C++ Include Guard.Suffix": {
"type": "string",
"default": "",
"description": "Suffix added to include guard macros.",
"scope": "resource"
},
"C/C++ Include Guard.Skip Comment Blocks": {
"type": "boolean",
"default": "true",
"description": "Insert include guard beneath the first comment blocks.",
"scope": "resource"
},
"C/C++ Include Guard.Insert Blank Line": {
"type": "boolean",
"default": "false",
"description": "Insert a blank line after the first comment blocks.",
"scope": "resource"
},
"C/C++ Include Guard.Shorten Underscores": {
"type": "boolean",
"default": "true",
"description": "Shorten multiple underscores in filenames or file paths.",
"scope": "resource"
},
"C/C++ Include Guard.Remove Extension": {
"type": "boolean",
"default": "false",
"description": "Remove file extension from include guard macros.",
"scope": "resource"
},
"C/C++ Include Guard.Comment Style": {
"type": "string",
"enum": [
"Block",
"Line",
"None"
],
"enumDescriptions": [
"Block Comment /* */",
"Line Comment //",
"No Comment"
],
"default": "Block",
"markdownDescription": "Comment style for `#endif` line",
"scope": "resource"
},
"C/C++ Include Guard.Spaces After Endif": {
"type": "number",
"default": "1",
"description": "Number of spaces between #endif and its comment.",
"scope": "resource"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@eslint/js": "9.14.0",
"@types/node": "22.9.3",
"@types/vscode": "1.95.0",
"eslint": "9.14.0",
"globals": "15.12.0",
"typescript": "5.6.3",
"typescript-eslint": "8.13.0"
},
"dependencies": {
"uuid": "11.0.3"
},
"publisher": "akiramiyakoda",
"repository": {
"url": "https://github.com/AkiraMiyakoda/cppIncludeGuard",
"type": "git"
},
"keywords": [
"c",
"c++",
"multi-root ready"
]
}