-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpackage.json
359 lines (359 loc) · 11 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
{
"name": "text-marker",
"displayName": "Text Marker (Highlighter)",
"description": "Select text in your code and mark all matches. The highlight colour is configurable",
"version": "1.11.0",
"publisher": "ryu1kn",
"license": "SEE LICENSE IN LICENSE.txt",
"icon": "images/text-marker.png",
"bugs": {
"url": "https://github.com/ryu1kn/vscode-text-marker/issues"
},
"homepage": "https://github.com/ryu1kn/vscode-text-marker/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/ryu1kn/vscode-text-marker.git"
},
"engines": {
"vscode": "^1.51.0"
},
"categories": [
"Other"
],
"keywords": [
"mark",
"marker",
"match",
"highlight",
"search"
],
"telemetryKey": "99489808-a33c-4235-af6d-04f95a652ead",
"activationEvents": [
"*"
],
"main": "./out/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "Text Marker (Highlighter) configurations",
"properties": {
"textmarker.highlightColors": {
"description": "List of colors to be used to highlight the selected text",
"type": "array",
"items": {
"type": "string"
},
"default": [
"darkgoldenrod",
"darkmagenta",
"darkolivegreen",
"darkslateblue",
"darkslategray",
"darkviolet",
"darkblue",
"darkturquoise",
"darkgray",
"darkkhaki",
"darkorange",
"darksalmon",
"darkseagreen"
]
},
"textmarker.defaultHighlightColor": {
"description": "Color to be used once all colors listed in `textmarker.highlightColors` are used",
"type": "string",
"default": "gray"
},
"textmarker.defaultHighlightOpacity": {
"description": "Opacity to be used when one is not given in the highlight color",
"type": "number",
"default": 0.7,
"minimum": 0,
"maximum": 1
},
"textmarker.enableIgnoreCase": {
"description": "Enable ignore case mode on startup",
"type": "boolean",
"default": false
},
"textmarker.enableWholeMatch": {
"description": "Enable whole match mode on startup",
"type": "boolean",
"default": false
},
"textmarker.useHighlightColorOnRuler": {
"description": "Use the highlight colour on the ruler instead of the default colour",
"type": "boolean",
"default": true
},
"textmarker.autoSelectDistinctiveTextColor": {
"description": "Text colour will be chosen to be distinctive from the background highlight colour",
"type": "boolean",
"default": false
},
"textmarker.hideStatusBarItems": {
"description": "Hide buttons on the status bar",
"type": "boolean",
"default": false
},
"textmarker.delayForRefreshingHighlight": {
"description": "Number of milliseconds to wait before refreshing the highlights on editor contents change. null for no refresh",
"type": [
"number",
"null"
],
"default": 300
},
"textmarker.commandsOnContextMenu": {
"description": "Commands appear on the context menu",
"type": "object",
"properties": {
"highlightUsingRegex": {
"type": "boolean"
},
"toggleHighlight": {
"type": "boolean"
},
"unhighlight": {
"type": "boolean"
},
"toggleCaseSensitivity": {
"type": "boolean"
},
"toggleWholeMatch": {
"type": "boolean"
},
"clearAllHighlight": {
"type": "boolean"
},
"saveAllHighlights": {
"type": "boolean"
},
"updateHighlight": {
"type": "boolean"
},
"goToNextHighlight": {
"type": "boolean"
},
"goToPreviousHighlight": {
"type": "boolean"
}
},
"default": {
"highlightUsingRegex": false,
"toggleHighlight": true,
"unhighlight": false,
"toggleCaseSensitivity": false,
"toggleWholeMatch": false,
"clearAllHighlight": false,
"saveAllHighlights": false,
"updateHighlight": true,
"goToNextHighlight": true,
"goToPreviousHighlight": true
},
"additionalProperties": false
},
"textmarker.savedHighlights": {
"description": "Highlights that get applied when opening editor",
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"pattern": {
"type": "object",
"properties": {
"type": {
"enum": [
"string",
"regex"
]
},
"expression": {
"type": "string"
},
"ignoreCase": {
"type": "boolean"
},
"wholeMatch": {
"type": "boolean"
}
},
"required": [
"type",
"expression",
"ignoreCase",
"wholeMatch"
]
},
"color": {
"type": "string"
}
},
"required": [
"pattern"
]
}
},
"textmarker.enableTelemetry": {
"description": "Allow usage data to be collected",
"type": "boolean",
"default": true
}
}
},
"commands": [
{
"command": "textmarker.highlightUsingRegex",
"title": "Highlight Text Using Regex",
"category": "TextMarker"
},
{
"command": "textmarker.toggleHighlight",
"title": "Toggle Highlight",
"category": "TextMarker"
},
{
"command": "textmarker.unhighlight",
"title": "Unhighlight Text",
"category": "TextMarker"
},
{
"command": "textmarker.toggleCaseSensitivity",
"title": "Toggle Case Sensitivity",
"category": "TextMarker"
},
{
"command": "textmarker.toggleModeForCaseSensitivity",
"title": "Toggle Mode for Case Sensitivity",
"category": "TextMarker"
},
{
"command": "textmarker.toggleWholeMatch",
"title": "Toggle Whole/Partial Match",
"category": "TextMarker"
},
{
"command": "textmarker.toggleModeForWholeMatch",
"title": "Toggle Mode for Whole/Partial Match",
"category": "TextMarker"
},
{
"command": "textmarker.clearAllHighlight",
"title": "Clear All Highlights",
"category": "TextMarker"
},
{
"command": "textmarker.saveAllHighlights",
"title": "Save All Highlights",
"category": "TextMarker"
},
{
"command": "textmarker.updateHighlight",
"title": "Update Highlight",
"category": "TextMarker"
},
{
"command": "textmarker.goToNextHighlight",
"title": "Go to Next Same Highlight",
"category": "TextMarker"
},
{
"command": "textmarker.goToPreviousHighlight",
"title": "Go to Previous Same Highlight",
"category": "TextMarker"
}
],
"menus": {
"editor/context": [
{
"command": "textmarker.toggleHighlight",
"group": "2_textmarker@1",
"when": "editorTextFocus && config.textmarker.commandsOnContextMenu.toggleHighlight"
},
{
"command": "textmarker.updateHighlight",
"group": "2_textmarker@2",
"when": "editorTextFocus && config.textmarker.commandsOnContextMenu.updateHighlight"
},
{
"command": "textmarker.goToNextHighlight",
"group": "2_textmarker@3",
"when": "editorTextFocus && config.textmarker.commandsOnContextMenu.goToNextHighlight"
},
{
"command": "textmarker.goToPreviousHighlight",
"group": "2_textmarker@4",
"when": "editorTextFocus && config.textmarker.commandsOnContextMenu.goToPreviousHighlight"
},
{
"command": "textmarker.highlightUsingRegex",
"group": "2_textmarker@5",
"when": "editorTextFocus && config.textmarker.commandsOnContextMenu.highlightUsingRegex"
},
{
"command": "textmarker.unhighlight",
"group": "2_textmarker@6",
"when": "editorTextFocus && config.textmarker.commandsOnContextMenu.unhighlight"
},
{
"command": "textmarker.toggleCaseSensitivity",
"group": "2_textmarker@7",
"when": "editorTextFocus && config.textmarker.commandsOnContextMenu.toggleCaseSensitivity"
},
{
"command": "textmarker.toggleWholeMatch",
"group": "2_textmarker@8",
"when": "editorTextFocus && config.textmarker.commandsOnContextMenu.toggleWholeMatch"
},
{
"command": "textmarker.clearAllHighlight",
"group": "2_textmarker@9",
"when": "editorTextFocus && config.textmarker.commandsOnContextMenu.clearAllHighlight"
},
{
"command": "textmarker.saveAllHighlights",
"group": "2_textmarker@10",
"when": "editorTextFocus && config.textmarker.commandsOnContextMenu.saveAllHighlights"
}
]
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"vscode:postpublish": "./tag-release.sh",
"postinstall": "node ./node_modules/vscode/bin/install",
"coverage": "nyc mocha 'src/test/**/*.ts'",
"compile": "tsc -p ./",
"lint": "tslint -p .",
"check": "yarn run compile && yarn run lint && yarn test",
"watch": "tsc -watch -p ./",
"test": "mocha 'src/test/**/*.ts'",
"unit-test": "mocha 'src/test/unit/**/*.ts'",
"acceptance-test": "mocha 'src/test/acceptance/**/*.ts'",
"test-mode": "mocha 'src/test/unit/**/*.ts' --watch"
},
"devDependencies": {
"@types/mocha": "^8.0.4",
"@types/node": "^12.14.1",
"codeclimate-test-reporter": "^0.5.1",
"mocha": "^8.2.1",
"nyc": "^15.1.0",
"testdouble": "^3.13.1",
"ts-node": "^9.0.0",
"tslint": "^6.1.3",
"typescript": "^4.1.2",
"vscode": "^1.1.37"
},
"dependencies": {
"color-name": "1.1.4",
"color-rgba": "2.2.3",
"fp-ts": "2.9.0",
"lodash.isnumber": "3.0.3",
"uuid": "3.3.3",
"vscode-extension-telemetry": "0.0.22"
},
"resolutions": {
"**/minimist": "^1.2.5"
}
}