forked from zawys/vscode-as-git-mergetool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
400 lines (400 loc) · 15.2 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
{
"name": "vscode-as-git-mergetool",
"displayName": "VS Code as Git Mergetool",
"description": "Diff editor layouts for common-base merging",
"version": "0.14.0",
"engines": {
"vscode": "^1.48.0"
},
"publisher": "zawys",
"repository": {
"type": "git",
"url": "https://github.com/zawys/vscode-as-git-mergetool"
},
"categories": [
"SCM Providers",
"Other"
],
"activationEvents": [
"*"
],
"icon": "media/packaged/icon.png",
"main": "out/dist/extension.js",
"targets": {
"main": {
"context": "node",
"includeNodeModules": {
"vscode": false,
"node-pty": false
},
"isLibrary": true,
"outputFormat": "commonjs"
}
},
"bugs": {
"url": "https://github.com/zawys/vscode-as-git-mergetool/issues"
},
"qna": "https://github.com/zawys/vscode-as-git-mergetool/issues",
"contributes": {
"commands": [
{
"command": "vscode-as-git-mergetool.gitMergetoolStart",
"title": "Start `git mergetool`",
"enablement": "vscode-as-git-mergetool.gitMergetoolRunning == false",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.mergeContinue",
"title": "Stage file and continue merging other files",
"enablement": "vscode-as-git-mergetool.gitMergetoolRunning == true",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.gitMergetoolSkip",
"title": "Skip file and continue merging other files",
"enablement": "vscode-as-git-mergetool.gitMergetoolRunning == true",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.resetMergedFile",
"title": "Discard changes made to merged file; reset",
"enablement": "vscode-as-git-mergetool.gitMergetoolRunning == true",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.gitMergetoolStop",
"title": "Stop `git mergetool`",
"enablement": "vscode-as-git-mergetool.gitMergetoolRunning == true",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.gitMergetoolReopenMergeSituation",
"title": "Reopen current merge situation in diff layout",
"enablement": "vscode-as-git-mergetool.gitMergetoolRunning == true",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.deactivateLayout",
"title": "Deactivate diff layout",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.focusPreviousConflict",
"title": "Focus previous merge conflict",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.focusNextConflict",
"title": "Focus next merge conflict",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.gitMergeAbort",
"title": "Abort merge",
"category": "Git"
},
{
"command": "vscode-as-git-mergetool.commit",
"title": "Commit with opened commit message",
"icon": "$(check)",
"enablement": "resourceLangId == git-commit",
"category": "Git"
},
{
"command": "vscode-as-git-mergetool.nextMergeStep",
"title": "Start mergetool, go to next conflict, or do commit",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.mergeArbitraryFiles",
"title": "Merge arbitrary files…",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.resetTemporarySettings",
"title": "Reset temporary settings activated on diff layout start",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.switchLayout",
"title": "Switch diff editor layout temporarily…",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.zoomDefault",
"title": "zoom: default",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.zoomCenter",
"title": "zoom: center",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.zoomLeft",
"title": "zoom: left",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.zoomRight",
"title": "zoom: right",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.zoomTop",
"title": "zoom: top",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.zoomBottom",
"title": "zoom: bottom",
"category": "Git Mergetool"
},
{
"command": "vscode-as-git-mergetool.runSettingsAssistant",
"title": "Launch settings assistant",
"category": "Git Mergetool"
}
],
"configuration": {
"title": "Git Mergetool",
"properties": {
"vscode-as-git-mergetool.settingsAssistantOnStartup": {
"type": "boolean",
"default": true,
"description": "If the setup assistant for the 'VS Code as Git Mergetool' extension shall be run on next VS Code startup.",
"scope": "window"
},
"vscode-as-git-mergetool.editCommitMessageAfterMergetool": {
"type": "boolean",
"default": true,
"description": "Open commit message in editor after successful `git mergetool`. This is a workaround for [VS Code issue #7989](https://github.com/microsoft/vscode/issues/7989), i.e. that VS Code does not allow to commit a merge when only local/current changes have been included in the commit; as well as [VS Code issue #30562](https://github.com/microsoft/vscode/issues/30562).",
"scope": "window"
},
"vscode-as-git-mergetool.layout": {
"type": "string",
"default": "4TransferRight",
"enum": [
"3DiffToMerged",
"3DiffToBase",
"3DiffToBaseRows",
"3DiffToBaseMergedRight",
"4TransferRight",
"4TransferDown"
],
"enumDescriptions": [
"3-column layout focussing on the state of the merged file. Suitable for situations where both versions contain many similar changes. \nRemote→Merged | Base→Merged | Local→Merged.",
"Classical layout with diffs in 3 columns: \nBase→Local | Base→Merged | Base→Remote.",
"Like 3DiffToBase, but rows instead of 3 columns: \nBase→Local // \nBase→Merged // \nBase→Remote. \nUseful for long lines.",
"Like 3DiffToBase, but the right editor is moved below left editor, leaving much space for the merged file: \n(Base→Local // Base→Remote) | Base→Merged.",
"Layout with 4 tiles: \nBase→Local | Remote→Merged // \nBase→Remote | Local→Merged. \nThe idea is to see local changes on the top, remote changes on the bottom; and to try to align the right edits to the ones on the left.",
"Layout with 4 tiles: \nBase→Local | Base→Remote // \nRemote→Merged | Local→Merged. \nThe idea is to see local changes on the left, remote changes on the right; and to try to align the bottom edits to the ones on the top. \nUseful for long lines."
],
"scope": "window"
},
"vscode-as-git-mergetool.workaroundFocusPauseLengthOnClose": {
"type": "number",
"default": 500,
"description": "Workaround: Increase this if you experience diff editors kept open after deactivating the diff layout or git mergetool. Length of the pause before deactivating the layout in milliseconds. Vote for [VS Code issue #15178](https://github.com/microsoft/vscode/issues/15178). Has only effect when “Workaround Quick Layout Deactivation” is off.",
"scope": "machine"
},
"vscode-as-git-mergetool.workaroundQuickLayoutDeactivation": {
"type": "boolean",
"default": true,
"description": "Workaround: Speed layout deactivation up by switching the grid to a single column before closing every editor. Causes the previous editor groups to be merged into one. Necessary because of [VS Code issue #15178](https://github.com/microsoft/vscode/issues/15178).",
"scope": "machine-overridable"
},
"vscode-as-git-mergetool.labelsInStatusBar": {
"type": "boolean",
"default": false,
"description": "Add a text label to each status bar item.",
"scope": "machine-overridable"
},
"vscode-as-git-mergetool.scrollSynchronizationMethod": {
"type": "string",
"default": "centered interval",
"enum": [
"centered interval",
"top"
],
"description": "Vertical position in the editor at which the extension shall try to align the contents such that corresponding lines match.",
"scope": "window"
},
"vscode-as-git-mergetool.askToConfirmResetWhenSkipping": {
"type": "boolean",
"default": true,
"description": "When using the “Skip file” command, if a message shall be displayed which informs about the reset and backup of changes and which allows to cancel.",
"scope": "application"
}
}
},
"menus": {
"scm/title": [
{
"command": "vscode-as-git-mergetool.gitMergetoolStart",
"group": "Merge@1"
},
{
"command": "vscode-as-git-mergetool.gitMergeAbort",
"group": "Merge@2"
},
{
"command": "vscode-as-git-mergetool.mergeArbitraryFiles",
"group": "Merge@3"
}
],
"editor/title": [
{
"command": "vscode-as-git-mergetool.commit",
"when": "resourceLangId == git-commit",
"group": "navigation"
}
]
},
"keybindings": [
{
"command": "vscode-as-git-mergetool.nextMergeStep",
"key": "alt+shift+m m"
},
{
"command": "merge-conflict.accept.current",
"key": "alt+shift+m c"
},
{
"command": "merge-conflict.accept.all-current",
"key": "alt+shift+m ctrl+c"
},
{
"command": "merge-conflict.accept.incoming",
"key": "alt+shift+m i"
},
{
"command": "merge-conflict.accept.all-incoming",
"key": "alt+shift+m ctrl+i"
},
{
"command": "merge-conflict.accept.both",
"key": "alt+shift+m b"
},
{
"command": "merge-conflict.accept.all-both",
"key": "alt+shift+m ctrl+b"
},
{
"key": "shift+alt+m n",
"command": "merge-conflict.next"
},
{
"key": "shift+alt+m p",
"command": "merge-conflict.previous"
},
{
"key": "shift+alt+m s",
"command": "vscode-as-git-mergetool.gitMergetoolSkip"
},
{
"key": "shift+alt+m a",
"command": "vscode-as-git-mergetool.gitMergeAbort"
},
{
"key": "shift+alt+m l",
"command": "vscode-as-git-mergetool.switchLayout"
},
{
"key": "shift+alt+m backspace",
"command": "vscode-as-git-mergetool.zoomDefault"
},
{
"key": "shift+alt+m space",
"command": "vscode-as-git-mergetool.zoomCenter"
},
{
"key": "shift+alt+m left",
"command": "vscode-as-git-mergetool.zoomLeft"
},
{
"key": "shift+alt+m right",
"command": "vscode-as-git-mergetool.zoomRight"
},
{
"key": "shift+alt+m up",
"command": "vscode-as-git-mergetool.zoomTop"
},
{
"key": "shift+alt+m down",
"command": "vscode-as-git-mergetool.zoomBottom"
}
]
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"clean": "rm -rf out packages",
"recompile": "yarn run clean && yarn run compile",
"lint": "eslint src test tools --ext ts --max-warnings=0",
"copy_files": "cpy --parents --cwd=./test '**/*' '!**/*.ts' ../out/test && cpy out/tools/extension.js out/tools/extension.js.map out/dist",
"test": "yarn install && yarn run recompile && yarn run lint && yarn run copy_files && yarn run bundle && yarn run test:only",
"test:only": "node ./out/test/runTests.js",
"test:dev": "yarn run copy_files && yarn run test:only",
"bundle:dev": "webpack --mode development",
"bundle": "webpack --mode production",
"package": "mkdir packages && vsce package --out=packages/${npm_package_name}-${npm_package_version}.vsix --githubBranch=master --yarn",
"debug:pre": "yarn run copy_files",
"build:dev": "yarn install && yarn run clean && yarn run bundle:dev && yarn run package",
"build": "yarn install && yarn run clean && yarn run bundle && yarn run package",
"working_dir_is_clean": "git diff --quiet && ! git ls-files -o --exclude-standard | grep '.'",
"index_is_clean": "git diff --staged --quiet && git diff --quiet && ! git ls-files -o --exclude-standard | grep '.'",
"format": "prettier --ignore-path .gitignore --write .",
"pre-commit": "ts-node ./tools/pre-commit.ts",
"post-commit": "ts-node ./tools/post-commit.ts",
"check_dependencies": "yarn audit",
"preversion": "yarn run check_dependencies && yarn run index_is_clean",
"sign_package": "cd packages && sha256sum vscode-as-git-mergetool-$npm_package_version.vsix > SHA256SUMS && gpg --detach-sign --sign-with=$npm_package_publisher --sign SHA256SUMS",
"publish:github": "cd packages && hub release create --attach=vscode-as-git-mergetool-$npm_package_version.vsix --attach=SHA256SUMS --attach=SHA256SUMS.sig --message=v$npm_package_version --edit v$npm_package_version",
"publish:marketplace": "vsce publish --packagePath packages/vscode-as-git-mergetool-$npm_package_version.vsix",
"postversion": "yarn run build && yarn run sign_package && git push && git push --tags && yarn run publish:github && yarn run publish:marketplace",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
},
"devDependencies": {
"@types/diff": "^5.0.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/node": "^15.0.2",
"@types/tmp": "^0.2.0",
"@types/vscode": "^1.56.0",
"@types/which": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"cpy-cli": "^3.1.1",
"dotenv": "^9.0.2",
"eslint": "^7.26.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-unicorn": "^32.0.1",
"glob": "^7.1.7",
"husky": "^6.0.0",
"mocha": "^8.4.0",
"pinst": "^2.1.6",
"prettier": "^2.3.0",
"ts-loader": "^9.1.2",
"ts-node": "^9.1.1",
"typescript": "^4.2.4",
"vsce": "^1.88.0",
"vscode-test": "^1.5.2",
"webpack": "^5.37.0",
"webpack-cli": "^4.7.0"
},
"license": "AGPL-3.0-or-later",
"dependencies": {
"diff": "^5.0.0",
"p-defer": "^4.0.0",
"regenerator-runtime": "^0.13.7",
"tmp-promise": "^3.0.2",
"which": "^2.0.2"
}
}