-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
314 lines (314 loc) · 13 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
{
"name": "git-branch-master",
"displayName": "Git Branch Master",
"description": "Level up Inspector for Git Branches",
"version": "1.0.3",
"publisher": "carbonsoda",
"author": {
"name": "David W."
},
"homepage": "https://marketplace.visualstudio.com/items?itemName=carbonsoda.git-branch-master",
"repository": {
"type": "git",
"url": "https://github.com/CarbonicSoda/vscode-git-branch-master"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/CarbonicSoda/vscode-git-branch-master/issues",
"email": "[email protected]"
},
"engines": {
"vscode": "^1.80.0"
},
"keywords": [
"git",
"branch",
"merge",
"status",
"rebase",
"checkout",
"delete"
],
"categories": [
"SCM Providers"
],
"activationEvents": [
"onStartupFinished"
],
"icon": "media/icon.png",
"main": "./dist/extension",
"extensionDependencies": [
"vscode.git"
],
"scripts": {
"vscode:prepublish": "webpack --mode production",
"compile": "webpack",
"watch": "tsc --watch -p ./",
"webpack-dev": "webpack --mode development --watch",
"webpack": "webpack --mode development",
"package": "webpack --mode production --devtool hidden-source-map",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src"
},
"devDependencies": {
"@types/mocha": "^10.0.8",
"@types/node": "20.x",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.11.1",
"ts-loader": "^9.5.1",
"typescript": "^5.6.2",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4"
},
"capabilities": {
"virtualWorkspaces": false,
"untrustedWorkspaces": {
"supported": false
}
},
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "gitBranchMaster",
"title": "Branch Master",
"icon": "$(merge)"
}
]
},
"views": {
"gitBranchMaster": [
{
"id": "git-branch-master.gitBranchMaster",
"name": "Branch Master"
}
]
},
"viewsWelcome": [
{
"view": "git-branch-master.gitBranchMaster",
"contents": "Git is not enabled or not installed. Install and enable Git to use this extension.",
"when": "!config.git.enabled || git.missing"
},
{
"view": "git-branch-master.gitBranchMaster",
"contents": "You have not yet opened a repository.\n[Open Folder](command:workbench.action.files.openFolder)\n[Clone Repository](command:git.clone)\nOpening a folder will close all currently open editors. To keep them open, [add a folder](command:workbench.action.addRootFolder) instead.",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount == 0 && openFolderWorkspaceSupport"
},
{
"view": "git-branch-master.gitBranchMaster",
"contents": "You have not yet opened a repository.\n[Open Folder](command:workbench.action.files.openFolderViaWorkspace)\n[Clone Repository](command:git.clone)\nOpening a folder will close all currently open editors. To keep them open, [add a folder](command:workbench.action.addRootFolder) instead.",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount == 0 && !openFolderWorkspaceSupport && workbenchState == workspace"
},
{
"view": "git-branch-master.gitBranchMaster",
"contents": "Waiting for Git to initialize...",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state != initialized"
},
{
"view": "git-branch-master.gitBranchMaster",
"contents": "The folder currently open doesn't have a Git repository. You can initialize a repository which will enable this extension powered by Git.\n[Initialize Repository](command:git.init)",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && gitOpenRepositoryCount == 0"
},
{
"view": "git-branch-master.gitBranchMaster",
"contents": "Fetching data from Git...\n\nThis might take a while depending on the number of branches your repository has.\n\nIf this is taking too long, [inspect configurations](command:workbench.action.openSettings?[\"git-branch-master\"]).",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && gitOpenRepositoryCount > 0 && !git-branch-master.loaded && !git-branch-master.noCommits"
},
{
"view": "git-branch-master.gitBranchMaster",
"contents": "The current Git repository does not have an initial commit.\n\nCheck back and reload later.",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && gitOpenRepositoryCount > 0 && !git-branch-master.loaded && git-branch-master.noCommits"
},
{
"view": "git-branch-master.gitBranchMaster",
"contents": "The current repository only has a single active branch. The extension is only useful for repositories with multiple branches!\n\nCheck back and reload later.",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && gitOpenRepositoryCount > 0 && git-branch-master.loaded && git-branch-master.singleBranch && config.git-branch-master.includeRemotes"
},
{
"view": "git-branch-master.gitBranchMaster",
"contents": "The current repository only has a single active branch. The extension is only useful for repositories with multiple branches!\n\nIf you forgot to include remote branches, [enable it](command:workbench.action.openSettings?[\"git-branch-master.view.includeRemotes\"]) and check back.",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && gitOpenRepositoryCount > 0 && git-branch-master.loaded && git-branch-master.singleBranch && !config.git-branch-master.includeRemotes"
}
],
"commands": [
{
"command": "git-branch-master.reloadView",
"title": "Refresh View",
"enablement": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible",
"icon": "$(refresh)",
"category": "Git Branch Master"
},
{
"command": "git-branch-master.switchRepo",
"title": "Switch Repository",
"enablement": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible && gitOpenRepositoryCount > 1",
"icon": "$(repo)",
"category": "Git Branch Master"
},
{
"command": "git-branch-master.toggleViewFold",
"title": "Toggle View Fold",
"enablement": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible",
"icon": "$(fold)",
"category": "Git Branch Master"
},
{
"command": "git-branch-master.copyBranchName",
"title": "Copy Branch Name",
"enablement": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible && git-branch-master.loaded && (viewItem == LocalBranch || viewItem == RemoteBranch)",
"icon": "$(copy)",
"category": "Git Branch Master"
},
{
"command": "git-branch-master.copyCommitHash",
"title": "Copy Full Commit Hash",
"enablement": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible && git-branch-master.loaded && viewItem == Commit",
"icon": "$(copy)",
"category": "Git Branch Master"
},
{
"command": "git-branch-master.switchToBranch",
"title": "Switch to Branch",
"enablement": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible && git-branch-master.loaded && viewItem == LocalBranch",
"icon": "$(arrow-swap)",
"category": "Git Branch Master"
},
{
"command": "git-branch-master.toggleRemoteBranches",
"title": "Toggle Remote Branches",
"enablement": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible",
"icon": "$(github-alt)",
"category": "Git Branch Master"
}
],
"keybindings": [
{
"command": "git-branch-master.reloadView",
"when": "focusedView == 'git-branch-master.gitBranchMaster'",
"key": "Ctrl+R"
}
],
"menus": {
"view/title": [
{
"command": "git-branch-master.switchRepo",
"when": "view == git-branch-master.gitBranchMaster",
"group": "navigation@1"
},
{
"command": "git-branch-master.toggleRemoteBranches",
"when": "view == git-branch-master.gitBranchMaster",
"group": "navigation@2"
},
{
"command": "git-branch-master.reloadView",
"when": "view == git-branch-master.gitBranchMaster",
"group": "navigation@3"
},
{
"command": "git-branch-master.toggleViewFold",
"when": "view == git-branch-master.gitBranchMaster",
"group": "navigation@4"
}
],
"view/item/context": [
{
"command": "git-branch-master.copyBranchName",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible && (viewItem == LocalBranch || viewItem == RemoteBranch)",
"group": "inline@1"
},
{
"command": "git-branch-master.copyBranchName",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible && (viewItem == LocalBranch || viewItem == RemoteBranch)"
},
{
"command": "git-branch-master.copyCommitHash",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible && git-branch-master.loaded && viewItem == Commit",
"group": "inline@1"
},
{
"command": "git-branch-master.copyCommitHash",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible && git-branch-master.loaded && viewItem == Commit"
},
{
"command": "git-branch-master.switchToBranch",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible && git-branch-master.loaded && viewItem == LocalBranch",
"group": "inline@2"
},
{
"command": "git-branch-master.switchToBranch",
"when": "config.git.enabled && !git.missingg && workspaceFolderCount != 0 && git.state == initialized && view.git-branch-master.gitBranchMaster.visible && git-branch-master.loaded && viewItem == LocalBranch"
}
]
},
"configuration": [
{
"title": "Git Branch Master",
"properties": {
"git-branch-master.includeRemotes": {
"order": 101,
"title": "Include Remote Branches",
"type": "boolean",
"description": "Include remote branches in the view by default.\n\nIncluding remote branches may slow down the extension, or even unusable if the repository contains many branches (e.g. vscode with thousands of remote branches!). This should only be toggled on for smaller projects.\nAlso, manual reloads are required for remote branches.",
"default": false,
"scope": "resource"
},
"git-branch-master.defaultBranchesSortMethod": {
"order": 201,
"title": "Sorting Method for Branches",
"type": "string",
"description": "Default sorting method used to order branches in the view.",
"enum": [
"Commit Date",
"Alphabetic"
],
"default": "Commit Date"
},
"git-branch-master.expandBranchesByDefault": {
"order": 301,
"title": "Expand Branches by Default",
"type": "boolean",
"description": "Expand primary hierarchy branch items in the view by default.",
"default": false
},
"git-branch-master.expandUnmergedDetailsByDefault": {
"order": 302,
"title": "Expand Unmerged Details by Default",
"type": "boolean",
"description": "Expand unmerged branches details in the view by default.",
"default": false
},
"git-branch-master.pinnedBranches": {
"order": 401,
"title": "Pinned Branches",
"type": "array",
"items": {
"type": "string"
},
"description": "Branches that would be pinned on top of the view, if exists, in the order given below.\nRemote versions of entries e.g. <origin>/<master> will alse be pinned given <master>.",
"default": [
"master",
"main"
],
"uniqueItems": true,
"scope": "resource"
},
"git-branch-master.fetchDelay": {
"order": 501,
"title": "Fetch Delay",
"type": "number",
"minimum": 1000,
"maximum": 120000,
"description": "Delay before performing the next forced Git fetch to update the view in ms. Usually event listeners would be suffice, manually reloading the view is only required for remote branches.",
"default": 10000
}
}
}
]
}
}