-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
393 lines (393 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
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
{
"name": "find-related",
"displayName": "Find Related Files",
"description": "Finds files related to the current file based on user-defined configuration rules",
"version": "1.0.0",
"engines": {
"vscode": "^1.72.0"
},
"license": "SEE LICENSE IN LICENSE",
"publisher": "amodio",
"author": {
"name": "Eric Amodio",
"email": "[email protected]"
},
"homepage": "https://github.com/eamodio/vscode-find-related",
"bugs": {
"url": "https://github.com/eamodio/vscode-find-related/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/eamodio/vscode-find-related.git"
},
"main": "./dist/find-related.js",
"browser": "./dist/browser/find-related.js",
"icon": "images/icon.png",
"preview": false,
"badges": [
{
"url": "https://img.shields.io/badge/vscode--dev--community-find--related--files-blue.svg?logo=slack&labelColor=555555",
"href": "https://vscode-slack.amod.io",
"description": "Join us in the #find-related-files channel"
}
],
"sponsor": {
"url": "https://github.com/sponsors/eamodio"
},
"categories": [
"Other"
],
"galleryBanner": {
"color": "#56098c",
"theme": "dark"
},
"keywords": [
"find",
"related",
"files",
"open",
"similar"
],
"activationEvents": [
"onCommand:findrelated.show"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
},
"contributes": {
"configuration": [
{
"id": "rules",
"title": "Rules",
"order": 10,
"properties": {
"findrelated.applyRulesets": {
"type": "array",
"default": [
"aspnet",
"aspnet-mvc",
"aurelia",
"c/c++",
"csharp",
"delphi",
"elixir",
"minified",
"phoenix",
"xaml"
],
"items": {
"type": "string",
"enum": [
"aspnet",
"aspnet-mvc",
"aurelia",
"c/c++",
"csharp",
"delphi",
"elixir",
"minified",
"phoenix",
"xaml"
],
"enumDescriptions": [
"Applies rules for ASP.NET projects",
"Applies rules for ASP.NET MVC projects",
"Applies rules for Aurelia projects",
"Applies rules for C/C++ projects",
"Applies rules for C# projects",
"Applies rules for Delphi projects",
"Applies rules for Elixir projects",
"Applies rules for minified CSS/JS files",
"Applies rules for Phoenix framework projects",
"Applies rules for XAML files"
]
},
"uniqueItems": true,
"markdownDescription": "Specifies the rulesets to use to find related files",
"scope": "window",
"order": 10
},
"findrelated.rulesets": {
"type": "array",
"default": [],
"items": {
"type": "object",
"required": [
"name",
"rules"
],
"properties": {
"name": {
"type": "string",
"description": "Specifies the name of the ruleset"
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"pattern",
"locators"
],
"properties": {
"pattern": {
"type": "string",
"description": "Specifies a regex pattern to which this rule applies; Capture groups can be used as replacements in the `locators`"
},
"locators": {
"type": "array",
"items": {
"type": "string",
"uniqueItems": true
},
"description": "Specifies the list of glob pattern locators that will be used to search for related files; `$[0-9]` can be use as replacement tokens from the capture groups in the `pattern`"
}
},
"uniqueItems": true
},
"description": "Specifies the rules to find related files"
}
}
},
"markdownDescription": "Defines rulesets that can be used find related files; Will be merged with built-in rulesets",
"scope": "window",
"order": 11
},
"findrelated.applyWorkspaceRulesets": {
"type": "array",
"default": [],
"items": {
"type": "string",
"uniqueItems": true
},
"markdownDescription": "Specifies the workspace-specific rulesets to use find related files",
"scope": "window",
"order": 20
},
"findrelated.workspaceRulesets": {
"type": "array",
"default": [],
"items": {
"type": "object",
"required": [
"name",
"rules"
],
"properties": {
"name": {
"type": "string",
"description": "Specifies the name of the ruleset"
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"pattern",
"locators"
],
"properties": {
"pattern": {
"type": "string",
"description": "Specifies a regex pattern to which this rule applies; Capture groups can be used as replacements in the `locators`"
},
"locators": {
"type": "array",
"items": {
"type": "string",
"uniqueItems": true
},
"description": "Specifies the list of glob pattern locators that will be used to search for related files; `$[0-9]` can be use as replacement tokens from the capture groups in the `pattern`"
}
},
"uniqueItems": true
},
"description": "Specifies the rules to find related files"
}
}
},
"markdownDescription": "Defines workspace-specific rulesets that can be used find related files; Will be merged with built-in rulesets",
"scope": "window",
"order": 21
}
}
},
{
"id": "findrelated",
"title": "Find Related Files",
"order": 20,
"properties": {
"findrelated.openPreview": {
"type": "boolean",
"default": true,
"markdownDescription": "Specifies whether to open the related file in a preview tab",
"scope": "window",
"order": 10
},
"findrelated.openSideBySide": {
"type": "boolean",
"default": false,
"markdownDescription": "Specifies whether to open the related file to the side",
"scope": "window",
"order": 11
},
"findrelated.autoPreview": {
"type": "boolean",
"default": true,
"markdownDescription": "Specifies whether to automatically preview related files upon selection",
"scope": "window",
"order": 20
},
"findrelated.autoOpen": {
"type": "boolean",
"default": false,
"markdownDescription": "Specifies whether to automatically open the related file if there is only 1 result",
"scope": "window",
"order": 21
},
"findrelated.ignoreExcludes": {
"type": "boolean",
"default": false,
"markdownDescription": "Specifies whether to ignore file excludes when searching for related files",
"scope": "window",
"order": 30
},
"findrelated.outputLevel": {
"type": "string",
"default": "errors",
"enum": [
"silent",
"errors",
"verbose",
"debug"
],
"enumDescriptions": [
"Logs nothing",
"Logs only errors",
"Logs all errors, warnings, and messages",
"Logs all errors, warnings, and messages with extra context useful for debugging"
],
"markdownDescription": "Specifies how much (if any) output will be sent to the FindRelated output channel",
"scope": "window",
"order": 40
}
}
}
],
"commands": [
{
"command": "findrelated.show",
"title": "Show Related Files",
"category": "Files"
}
],
"keybindings": [
{
"command": "findrelated.show",
"key": "alt+r",
"when": "editorTextFocus"
},
{
"command": "findrelated.key.left",
"key": "left",
"when": "findrelated:key:left"
},
{
"command": "findrelated.key.alt+left",
"key": "alt+left",
"when": "findrelated:key:alt+left"
},
{
"command": "findrelated.key.ctrl+left",
"key": "ctrl+left",
"mac": "cmd+left",
"when": "findrelated:key:ctrl+left"
},
{
"command": "findrelated.key.right",
"key": "right",
"when": "findrelated:key:right"
},
{
"command": "findrelated.key.alt+right",
"key": "alt+right",
"when": "findrelated:key:alt+right"
},
{
"command": "findrelated.key.ctrl+right",
"key": "ctrl+right",
"mac": "cmd+right",
"when": "findrelated:key:ctrl+right"
},
{
"command": "findrelated.key.alt+enter",
"key": "alt+enter",
"when": "findrelated:key:alt+enter"
},
{
"command": "findrelated.key.ctrl+enter",
"key": "ctrl+enter",
"when": "findrelated:key:ctrl+enter"
},
{
"command": "findrelated.key.escape",
"key": "escape",
"when": "findrelated:key:escape && editorTextFocus && !findWidgetVisible && !quickFixWidgetVisible && !renameInputVisible && !suggestWidgetVisible && !isInEmbeddedEditor"
}
]
},
"scripts": {
"analyze:bundle": "webpack --mode production --env analyzeBundle",
"analyze:deps": "webpack --env analyzeDeps",
"build": "webpack --mode development",
"bundle": "webpack --mode production",
"clean": "npx rimraf dist out .vscode-test .vscode-test-web .eslintcache* tsconfig*.tsbuildinfo",
"lint": "eslint \"src/**/*.ts?(x)\" --fix",
"package": "vsce package --yarn",
"package-pre": "yarn run patch-pre && yarn run package --pre-release",
"patch-pre": "node ./scripts/applyPreReleasePatch.js",
"pretty": "prettier --config .prettierrc --loglevel warn --write .",
"pub": "vsce publish --yarn",
"pub-pre": "vsce publish --yarn --pre-release",
"rebuild": "yarn run reset && yarn run build",
"reset": "yarn run clean && yarn --frozen-lockfile",
"watch": "webpack --watch --mode development",
"web": "vscode-test-web --extensionDevelopmentPath=. --folder-uri=vscode-vfs://github/eamodio/vscode-find-related",
"web:serve": "npx serve --cors -l 5000",
"web:tunnel": "npx localtunnel -p 5000",
"update-dts": "pushd \"src/@types\" && npx vscode-dts dev && popd",
"update-dts:master": "pushd \"src/@types\" && npx vscode-dts master && popd",
"vscode:prepublish": "yarn run bundle"
},
"dependencies": {
"os-browserify": "0.3.0",
"path-browserify": "1.0.1"
},
"devDependencies": {
"@types/node": "16.11.47",
"@types/vscode": "1.72.0",
"@typescript-eslint/eslint-plugin": "5.57.1",
"@typescript-eslint/parser": "5.57.1",
"@vscode/vsce": "2.18.0",
"circular-dependency-plugin": "5.2.2",
"clean-webpack-plugin": "4.0.0",
"esbuild": "0.17.16",
"esbuild-loader": "3.0.1",
"eslint": "8.38.0",
"eslint-cli": "1.1.1",
"eslint-config-prettier": "8.8.0",
"eslint-import-resolver-typescript": "3.5.5",
"eslint-plugin-anti-trojan-source": "1.1.1",
"eslint-plugin-import": "2.27.5",
"fork-ts-checker-webpack-plugin": "6.5.3",
"prettier": "2.8.7",
"terser-webpack-plugin": "5.3.7",
"ts-loader": "9.4.2",
"typescript": "5.0.4",
"webpack": "5.78.0",
"webpack-bundle-analyzer": "4.8.0",
"webpack-cli": "5.0.1"
}
}