-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
249 lines (249 loc) · 8.51 KB
/
package.json
File metadata and controls
249 lines (249 loc) · 8.51 KB
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": "data-size-count",
"displayName": "Data Size Count",
"description": "Shows: File Size, Lines count, Words count, Array Length, Object size, HTML or XML Tags Count in Statusbar",
"version": "4.0.0",
"icon": "images/data-size-count-logo.png",
"publisher": "Thinker",
"license": "MIT",
"author": {
"name": "Sivaraman",
"email": "sendmsg2siva@gmail.com"
},
"repository": {
"type": "git",
"url": "https://github.com/R35007/data-size-count-vscode-extension"
},
"keywords": [
"selected",
"lines",
"count",
"size",
"file size",
"tags count",
"HTML Tag count",
"XML Tag count",
"children count",
"tags count",
"array length",
"object size",
"data count",
"data size",
"stats",
"length",
"data",
"words",
"status"
],
"engines": {
"vscode": "^1.75.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "data-size-count.showCombinedDetails",
"category": "Data Size Count",
"title": "Show Combined Details"
}
],
"configuration": {
"title": "Data Size Count",
"properties": {
"data-size-count.statusBar.fileSizeFormat": {
"order": 1,
"type": "string",
"required": true,
"default": "$(file-text) ${fileSize}",
"description": "You can use these variables to custom display format: ${fileSize}"
},
"data-size-count.statusBar.selectedSizeFormat": {
"order": 2,
"type": "string",
"required": true,
"default": "$(selection) ${selectedSize}",
"description": "You can use these variables to custom display format: ${selectedSize}"
},
"data-size-count.statusBar.selectionCountFormat": {
"order": 3,
"type": "string",
"required": true,
"default": "${linesCount} : ${wordsCount} : ${charCount}",
"description": "You can use these variables to custom display format: ${linesCount} ${wordsCount} ${charCount} ${charCountWithoutSpaces} ${duplicateLinesCount} ${emptyLineCount} ${duplicateWordsCount}"
},
"data-size-count.statusBar.dataCountFormat": {
"order": 4,
"type": "string",
"required": true,
"default": "$(database) ${dataCountWithBrackets} / ${maxDepth}",
"description": "You can use these variables to custom display format: ${dataType} ${dataCount} ${maxDepth} ${dataCountDesc} ${dataCountWithBrackets} ${openBracket} ${closeBracket}"
},
"data-size-count.statusBar.regexCount": {
"order": 5,
"type": "array",
"items": {
"type": "object",
"properties": {
"order": {
"type": "number",
"description": "Priority order for applying this regex entry. Lower numbers are shown earlier."
},
"format": {
"type": "string",
"description": "Display format for the regex count. Use ${regexCount} to embed the count. Leave empty to ignore this entry."
},
"onlyOnSelection": {
"type": "boolean",
"description": "If true, evaluate this regex only when the text selection changes. If false, it is always evaluated on document load or active editor change.",
"default": false
},
"alwaysShow": {
"type": "boolean",
"description": "If true, the regex entry will be shown even when the match count is zero. If false, entries with zero matches are hidden.",
"default": false
},
"title": {
"type": "string",
"description": "Human‑readable title for this regex entry."
},
"description": {
"type": "string",
"description": "Additional human‑readable description for this regex entry."
},
"regex": {
"type": "string",
"description": "Regular expression string to match. Use standard JS RegExp syntax; include flags (e.g. '/pattern/flags') if needed."
}
},
"required": [
"format",
"regex"
],
"additionalProperties": false
},
"examples": [
[
{
"title": "Imports",
"format": "$(cloud-download) ${matchCount} Imports",
"regex": "^\\s*import\\b.*$",
"onlyOnSelection": false,
"alwaysShow": false
},
{
"title": "Exports",
"format": "$(cloud-upload) ${matchCount} Exports",
"regex": "^\\s*export\\b.*$",
"onlyOnSelection": false,
"alwaysShow": false
},
{
"title": "Comments",
"format": "$(comment) ${matchCount} Comments",
"regex": "^\\s*(//.*|#.*|<!--.*-->|/\\*.*\\*/.*)$",
"onlyOnSelection": false,
"alwaysShow": false
},
{
"title": "Consoles",
"format": "$(debug-console) ${matchCount} Console",
"regex": "console\\.(log|warn|error)\\s*\\(",
"onlyOnSelection": false,
"alwaysShow": false
},
{
"title": "TODOs",
"format": "$(checklist) TODOs: ${matchCount}",
"regex": "^\\s*(//.*TODO.*|#.*TODO.*|<!--.*TODO.*-->|/\\*.*TODO.*\\*/.*)$",
"onlyOnSelection": false,
"alwaysShow": false
}
]
],
"default": [
{
"title": "Imports",
"format": "$(cloud-download) ${matchCount} Imports",
"regex": "^\\s*import\\b.*$",
"onlyOnSelection": false,
"alwaysShow": false
},
{
"title": "Consoles",
"format": "$(debug-console) ${matchCount} Console",
"regex": "console\\.(log|warn|error)\\s*\\(",
"onlyOnSelection": false,
"alwaysShow": false
},
{
"title": "TODOs",
"format": "$(checklist) TODOs: ${matchCount}",
"regex": "^\\s*(//.*TODO.*|#.*TODO.*|<!--.*TODO.*-->|/\\*.*TODO.*\\*/.*)$",
"onlyOnSelection": false,
"alwaysShow": false
}
],
"description": "Array of regex match count entries for the status bar. Each entry uses ${regexCount} in its format."
},
"data-size-count.statusBar.selectionMetricsSeparator": {
"order": 6,
"type": "string",
"default": " | ",
"description": "Separator to use between different selectedSizeFormat, selectionCountFormat and dataCountFormat items"
},
"data-size-count.statusBar.regexCountSeparator": {
"order": 7,
"type": "string",
"default": ", ",
"description": "Separator to use between different regex count format items"
},
"data-size-count.statusBar.position": {
"order": 8,
"type": "string",
"default": "Left",
"enum": [
"Right",
"Left"
],
"description": "Set Custom Statusbar position"
},
"data-size-count.statusBar.priority": {
"order": 9,
"type": "number",
"default": -1,
"required": true,
"description": "The priority of the statusbar. Higher value means the statusbar should be shown more to the left"
}
}
}
},
"main": "./dist/extension.js",
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/node": "14.x",
"@types/vscode": "^1.75.0",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"eslint": "^8.11.0",
"ts-loader": "^9.2.8",
"typescript": "^4.5.5",
"webpack": "^5.70.0",
"webpack-cli": "^4.9.2"
},
"dependencies": {
"comment-json": "^4.2.5",
"jsdom": "^17.0.0",
"json5": "^2.2.3"
}
}