forked from moshfeu/vscode-compare-folders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
405 lines (405 loc) · 11.9 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
394
395
396
397
398
399
400
401
402
403
404
405
{
"name": "compare-folders",
"displayName": "Compare Folders",
"description": "Compare folders by contents, present the files that have differences and display the diffs side by side",
"version": "0.24.2",
"repository": {
"type": "git",
"url": "https://github.com/moshfeu/vscode-compare-folders"
},
"keywords": [
"compare",
"compare folders",
"diff",
"diff folders"
],
"icon": "resources/icon.png",
"galleryBanner": {
"color": "#ffbe6c",
"theme": "light"
},
"publisher": "moshfeu",
"author": {
"name": "Mosh Feuchtwanger",
"email": "[email protected]",
"url": "https://twitter.com/moshfeu"
},
"engines": {
"vscode": "^1.38.0",
"node": ">=18.0.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"icons": {
"comparefolders-icon": {
"description": "compare folders icon",
"default": {
"fontPath": "resources/fonts/comparefolders.woff",
"fontCharacter": "\\e900"
}
}
},
"configuration": {
"type": "object",
"title": "Compare Folders",
"properties": {
"compareFolders.folderLeft": {
"type": "string",
"description": "Default setting for left folder",
"default": "",
"scope": "resource"
},
"compareFolders.folderRight": {
"type": "string",
"description": "Default setting for right folder",
"default": "",
"scope": "resource"
},
"compareFolders.compareContent": {
"type": "boolean",
"default": true,
"description": "Compare content",
"scope": "resource"
},
"compareFolders.ignoreLineEnding": {
"type": "boolean",
"default": false,
"description": "Ignore crlf/lf line ending differences",
"scope": "resource"
},
"compareFolders.ignoreWhiteSpaces": {
"type": "boolean",
"default": false,
"description": "Ignore white spaces at the beginning and ending of a line (similar to 'diff -b')",
"scope": "resource"
},
"compareFolders.ignoreAllWhiteSpaces": {
"type": "boolean",
"default": false,
"description": "Ignore all white space differences (similar to 'diff -w')",
"scope": "resource"
},
"compareFolders.ignoreEmptyLines": {
"type": "boolean",
"default": false,
"description": "Ignore differences caused by empty lines (similar to 'diff -B')",
"scope": "resource"
},
"compareFolders.ignoreFileNameCase": {
"type": "boolean",
"default": true,
"description": "If true fileName / FileName / FiLE naMe will consider as same file and will be compared",
"scope": "resource"
},
"compareFolders.ignoreExtension": {
"type": "array",
"default": [],
"description": "Pairs of extensions to to considered the same file (.e.g [index.js, index.ts]). Each extension can appear **only once**",
"scope": "resource"
},
"compareFolders.includeFilter": {
"type": "array",
"description": "Include filters",
"scope": "resource"
},
"compareFolders.excludeFilter": {
"type": "array",
"description": "Exclude filters",
"scope": "resource"
},
"compareFolders.respectGitIgnore": {
"type": "boolean",
"description": "Include / Exclude files based on .gitignore",
"scope": "resource"
},
"compareFolders.diffViewTitle": {
"type": "string",
"default": "name only",
"enum": [
"name only",
"compared path",
"full path"
],
"enumDescriptions": [
"eg. file-name.txt",
"eg. file-name.txt ↔ path/to/compared/file-name.txt",
"eg. c://file-name.txt ↔ c://path/to/compared/file-name.txt"
],
"markdownDescription": "Specifies how the diff view's title look like",
"scope": "window"
},
"compareFolders.diffLayout": {
"type": "string",
"default": "local <> compared",
"enum": [
"local <> compared",
"compared <> local"
],
"enumDescriptions": [
"eg. left: local file, right: compared file",
"eg. left: compared file, right: local file"
],
"markdownDescription": "Specifies which file will be in the left and the right sides of the diff view",
"scope": "window"
},
"compareFolders.showIdentical": {
"type": "boolean",
"default": false,
"description": "Show identical files",
"scope": "resource"
},
"compareFolders.useDiffMerge": {
"type": "boolean",
"default": false,
"description": "Use Diff & Merge extension as diff view",
"scope": "window"
},
"compareFolders.warnBeforeDelete": {
"type": "boolean",
"default": "true",
"description": "Show a warning message before deleting files",
"scope": "resource"
}
}
},
"menus": {
"commandPalette": [
{
"command": "foldersCompare.refresh",
"when": "false"
},
{
"command": "foldersCompare.chooseFoldersAndCompare",
"when": "false"
},
{
"command": "foldersCompare.compareFoldersAgainstWorkspace",
"when": "workspaceFolderCount != 0"
},
{
"command": "foldersCompare.compareSelectedFolders",
"when": "false"
},
{
"command": "foldersCompare.copyToCompared",
"when": "false"
},
{
"command": "foldersCompare.copyToMy",
"when": "false"
},
{
"command": "foldersCompare.takeMyFile",
"when": "false"
},
{
"command": "foldersCompare.dissmissDifference",
"when": "false"
},
{
"command": "foldersCompare.takeComparedFile",
"when": "false"
},
{
"command": "foldersCompare.deleteFile",
"when": "false"
}
],
"view/title": [
{
"command": "foldersCompare.refresh",
"group": "navigation@2",
"when": "view == foldersCompareAppService && foldersCompareContext.hasFolders"
},
{
"command": "foldersCompare.swap",
"group": "navigation@1",
"when": "view == foldersCompareAppService && foldersCompareContext.hasFolders"
},
{
"command": "foldersCompare.pickFromRecentCompares",
"group": "navigation@3",
"when": "view == foldersCompareAppService"
}
],
"explorer/context": [
{
"command": "foldersCompare.compareSelectedFolders",
"when": "explorerResourceIsFolder && listDoubleSelection"
}
],
"view/item/context": [
{
"command": "foldersCompare.copyToCompared",
"when": "view == foldersCompareAppServiceOnlyA",
"group": "1_folderCompares_actions@1"
},
{
"command": "foldersCompare.copyToMy",
"when": "view == foldersCompareAppServiceOnlyB",
"group": "1_folderCompares_actions@1"
},
{
"command": "foldersCompare.deleteFile",
"when": "view == foldersCompareAppServiceOnlyA || view == foldersCompareAppServiceOnlyB"
},
{
"command": "foldersCompare.takeMyFile",
"when": "view == foldersCompareAppService",
"group": "1_folderCompares_actions@1"
},
{
"command": "foldersCompare.dissmissDifference",
"when": "view == foldersCompareAppService && viewItem == file",
"group": "inline"
},
{
"command": "foldersCompare.takeComparedFile",
"when": "view == foldersCompareAppService",
"group": "1_folderCompares_actions@2"
}
]
},
"commands": [
{
"title": "Compare Folders: Pick from recent compares",
"command": "foldersCompare.pickFromRecentCompares",
"icon": {
"dark": "resources/dark/history.svg",
"light": "resources/light/history.svg"
}
},
{
"title": "Compare Folders: Clear recent compares",
"command": "foldersCompare.clearRecentCompares"
},
{
"title": "Copy to compared folder",
"command": "foldersCompare.copyToCompared"
},
{
"title": "Copy to my folder",
"command": "foldersCompare.copyToMy"
},
{
"title": "Delete",
"command": "foldersCompare.deleteFile"
},
{
"title": "Dissmiss Difference",
"command": "foldersCompare.dissmissDifference",
"icon": "$(close)"
},
{
"title": "Take my file",
"command": "foldersCompare.takeMyFile"
},
{
"title": "Take compared file",
"command": "foldersCompare.takeComparedFile"
},
{
"title": "Choose Folders And Compare",
"command": "foldersCompare.chooseFoldersAndCompare"
},
{
"title": "Compare Folders: Compare a folder against workspace",
"command": "foldersCompare.compareFoldersAgainstWorkspace"
},
{
"title": "Compare Folders: Choose 2 folders and compare",
"command": "foldersCompare.compareFoldersAgainstEachOther"
},
{
"title": "Refresh",
"command": "foldersCompare.refresh",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"title": "Swap Sides",
"command": "foldersCompare.swap",
"icon": {
"light": "resources/light/swap.svg",
"dark": "resources/dark/swap.svg"
}
},
{
"command": "foldersCompare.compareSelectedFolders",
"title": "[Compare Folders] Compare selected folders"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "foldersCompare",
"title": "Compare Folders",
"icon": "$(comparefolders-icon)"
}
]
},
"views": {
"foldersCompare": [
{
"id": "foldersCompareAppService",
"name": "Differences"
},
{
"id": "foldersCompareAppServiceOnlyA",
"name": "Only in my folder"
},
{
"id": "foldersCompareAppServiceOnlyB",
"name": "Only in compared folder"
},
{
"id": "foldersCompareAppServiceIdenticals",
"name": "Identical files",
"when": "config.compareFolders.showIdentical"
}
]
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile",
"test": "node ./out/test/runTest.js",
"deploy": "npx vsce publish -p",
"deploy:insider": "node scripts/deploy-insider.js",
"deploy:openvsx": "sh scripts/deploy-openvsx.sh",
"package": "npx vsce package"
},
"devDependencies": {
"@types/fs-extra": "8.1.0",
"@types/glob": "^7.1.1",
"@types/lodash": "^4.14.140",
"@types/mocha": "^10.0.1",
"@types/node": "^10.12.21",
"@types/sinon": "^10.0.13",
"@types/vscode": "^1.38.0",
"@vscode/test-electron": "^2.3.8",
"dotenv": "^8.2.0",
"glob": "^7.1.4",
"mocha": "^10.2.0",
"sinon": "^14.0.0",
"tslint": "^5.12.1",
"typescript": "^4.7.4"
},
"dependencies": {
"@cjs-exporter/globby": "^13.1.3",
"dir-compare": "^4.2.0",
"fs-extra": "8.1.0",
"lodash": "^4.17.21",
"parse-gitignore": "^2.0.0"
}
}