-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
380 lines (380 loc) · 14.8 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
{
"name": "vscode-gitweblinks",
"displayName": "Git Web Links for VS Code",
"description": "Copy links to files in their online Git repositories",
"version": "2.14.0",
"publisher": "reduckted",
"homepage": "https://github.com/reduckted/GitWebLinks",
"repository": {
"type": "git",
"url": "https://github.com/reduckted/GitWebLinks"
},
"bugs": {
"url": "https://github.com/reduckted/GitWebLinks/issues"
},
"icon": "icon.png",
"galleryBanner": {
"color": "#F0F0E6",
"theme": "light"
},
"keywords": [
"azure devops",
"bitbucket",
"git",
"github",
"gitlab"
],
"private": true,
"main": "./dist/extension",
"license": "MIT",
"scripts": {
"vscode:prepublish": "npm run build",
"lint": "eslint . --max-warnings=0",
"build": "webpack --mode production",
"pretest:clean": "rimraf ./out-test",
"pretest:build": "tsc -p ./",
"pretest": "run-s pretest:clean pretest:build",
"test": "vscode-test",
"watch": "webpack --mode development --watch",
"debug-build": "webpack --mode development",
"debug-test": "npm run pretest"
},
"dependencies": {
"liquidjs": "10.21.0"
},
"devDependencies": {
"@eslint/js": "9.21.0",
"@types/chai": "4.3.16",
"@types/mocha": "10.0.10",
"@types/node": "16.18.97",
"@types/sinon": "17.0.4",
"@types/sinon-chai": "3.2.12",
"@types/vscode": "1.64.0",
"@types/webpack-env": "1.18.8",
"@vscode/test-cli": "0.0.10",
"@vscode/test-electron": "2.4.1",
"@vscode/vsce": "3.2.2",
"ajv": "8.17.1",
"chai": "4.4.1",
"eslint": "9.21.0",
"eslint-plugin-jest": "28.11.0",
"eslint-plugin-jsdoc": "50.6.3",
"eslint-plugin-n": "17.15.1",
"eslint-plugin-perfectionist": "4.9.0",
"eslint-plugin-prettier": "5.2.3",
"glob": "11.0.1",
"mocha": "11.1.0",
"npm-run-all": "4.1.5",
"prettier": "3.5.2",
"rimraf": "6.0.1",
"sinon": "19.0.2",
"sinon-chai": "3.7.0",
"ts-loader": "9.5.2",
"typescript": "5.7.3",
"typescript-eslint": "8.24.1",
"webpack": "5.98.0",
"webpack-cli": "6.0.1"
},
"engines": {
"vscode": "^1.64.0",
"node": ">=16.0.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"extensionDependencies": [
"vscode.git"
],
"contributes": {
"commands": [
{
"command": "gitweblinks.copyFile",
"title": "Copy Link to File",
"category": "Git Web Links"
},
{
"command": "gitweblinks.copySelection",
"title": "Copy Link to Selection",
"category": "Git Web Links"
},
{
"command": "gitweblinks.copySelectionToDefaultBranch",
"title": "Copy Link to Selection (on default branch)",
"category": "Git Web Links"
},
{
"command": "gitweblinks.copySelectionToBranch",
"title": "Copy Link to Selection (on current branch)",
"category": "Git Web Links"
},
{
"command": "gitweblinks.copySelectionToCommit",
"title": "Copy Link to Selection (at current commit)",
"category": "Git Web Links"
},
{
"command": "gitweblinks.copySelectionToChoice",
"title": "Copy Link to Selection (choose type)",
"category": "Git Web Links"
},
{
"command": "gitweblinks.openFile",
"title": "Open Link to File",
"category": "Git Web Links"
},
{
"command": "gitweblinks.openSelection",
"title": "Open Link to Selection",
"category": "Git Web Links"
},
{
"command": "gitweblinks.goToFile",
"title": "Go To File...",
"category": "Git Web Links"
}
],
"keybindings": [
{
"command": "gitweblinks.copySelection",
"key": "ctrl+alt+l",
"mac": "ctrl+cmd+l"
}
],
"menus": {
"editor/context": [
{
"command": "gitweblinks.copySelection",
"group": "gitweblinks@1",
"when": "gitweblinks:hasRepositories && gitweblinks:canCopy"
},
{
"command": "gitweblinks.openSelection",
"group": "gitweblinks@2",
"when": "gitweblinks:hasRepositories && gitweblinks:canOpen"
}
],
"editor/title/context": [
{
"command": "gitweblinks.copyFile",
"group": "gitweblinks@1",
"when": "gitweblinks:hasRepositories && gitweblinks:canCopy"
},
{
"command": "gitweblinks.openFile",
"group": "gitweblinks@2",
"when": "gitweblinks:hasRepositories && gitweblinks:canOpen"
}
],
"explorer/context": [
{
"command": "gitweblinks.copyFile",
"group": "gitweblinks@1",
"when": "gitweblinks:hasRepositories && gitweblinks:canCopy"
},
{
"command": "gitweblinks.openFile",
"group": "gitweblinks@2",
"when": "gitweblinks:hasRepositories && gitweblinks:canOpen"
}
]
},
"configuration": {
"title": "Git Web Links",
"properties": {
"gitweblinks.linkType": {
"type": "string",
"description": "The type of links to create by default.",
"enum": [
"defaultBranch",
"commit",
"branch"
],
"enumDescriptions": [
"Create a link to the default branch.",
"Create a link to the current commit.",
"Create a link to the current branch."
],
"default": "commit"
},
"gitweblinks.linkFormat": {
"type": "string",
"description": "How copied links should be formatted.",
"default": "raw",
"enum": [
"raw",
"markdown",
"markdownWithPreview"
],
"enumDescriptions": [
"The raw URL is copied.",
"The URL is formatted as a markdown link.",
"The URL is formatted as a markdown link with the selected code in a code block."
]
},
"gitweblinks.defaultBranch": {
"type": "string",
"description": "The name of the branch to use when creating a link to the default branch.",
"default": "master"
},
"gitweblinks.preferredRemoteName": {
"type": "string",
"description": "The name of the remote to use when finding the remote repository details.",
"default": "origin"
},
"gitweblinks.azureDevOpsServer": {
"type": "array",
"description": "The URLs of your Azure DevOps Server instances.",
"items": {
"type": "object",
"properties": {
"http": {
"type": "string",
"description": "The base URL for the website. For example:\nhttp://azure.my-server:8000"
},
"ssh": {
"type": "string",
"description": "The SSH URL for remotes. For example:\nssh://azure.my-server:22"
}
},
"required": [
"http"
],
"additionalProperties": false
}
},
"gitweblinks.bitbucketServer": {
"type": "array",
"description": "The URLs of your Bitbucket Server instances.",
"items": {
"type": "object",
"properties": {
"http": {
"type": "string",
"description": "The base URL for the website. For example:\nhttp://my-server:7990/bitbucket"
},
"ssh": {
"type": "string",
"description": "The SSH URL for remotes. For example:\nssh://my-server:7999/bitbucket"
}
},
"required": [
"http"
],
"additionalProperties": false
}
},
"gitweblinks.gitea": {
"type": "array",
"description": "The URLs of your Gitea instances.",
"items": {
"type": "object",
"properties": {
"http": {
"type": "string",
"description": "The base URL for the website. For example:\nhttps://my.gitea.server:8000"
},
"ssh": {
"type": "string",
"description": "The SSH URL for remotes. For example:\nssh://my.gitea.server"
}
},
"required": [
"http"
],
"additionalProperties": false
}
},
"gitweblinks.gitHubEnterprise": {
"type": "array",
"description": "The URLs of your GitHub Enterprise instances.",
"items": {
"type": "object",
"properties": {
"http": {
"type": "string",
"description": "The base URL for the website. For example:\nhttp://github.my-server:8000"
},
"ssh": {
"type": "string",
"description": "The SSH URL for remotes. For example:\nssh://github.my-server"
}
},
"required": [
"http"
],
"additionalProperties": false
}
},
"gitweblinks.gitLabEnterprise": {
"type": "array",
"description": "The URLs of your GitLab Enterprise Edition or GitLab Community Edition instances.",
"items": {
"type": "object",
"properties": {
"http": {
"type": "string",
"description": "The base URL for the website. For example:\nhttp://gitlab.my-server:8000"
},
"ssh": {
"type": "string",
"description": "The SSH URL for remotes. For example:\nssh://gitlab.my-server"
}
},
"required": [
"http"
],
"additionalProperties": false
}
},
"gitweblinks.gitiles": {
"type": "array",
"description": "The URLs of your Gitiles instances.",
"items": {
"type": "object",
"properties": {
"http": {
"type": "string",
"description": "The base URL for the website. For example:\nhttps://git.mygitiles.com:8080/plugins/gitiles"
},
"ssh": {
"type": "string",
"description": "The SSH URL for remotes. For example:\nssh://git.mygitiles.com:29418"
},
"web": {
"type": "string",
"description": "The URL for the web interface if it is different to the `http` URL used for cloning. For example:\nhttps://mygitiles.com/plugins/gitiles"
}
},
"required": [
"http"
],
"additionalProperties": false
}
},
"gitweblinks.showCopy": {
"type": "boolean",
"description": "Controls the visibility of the 'Copy Link' menu item.",
"default": true
},
"gitweblinks.showOpen": {
"type": "boolean",
"description": "Controls the visibility of the 'Open Link' menu item.",
"default": false
},
"gitweblinks.useGitHubDev": {
"type": "boolean",
"description": "Generate links to 'github.dev' instead of 'github.com'.",
"default": false
},
"gitweblinks.useShortHash": {
"type": "boolean",
"description": "Use short SHA hashes in links to specific commits.",
"default": false
}
}
}
}
}