-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
386 lines (386 loc) · 10.8 KB
/
Copy pathpackage.json
File metadata and controls
386 lines (386 loc) · 10.8 KB
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
{
"name": "tfvc",
"displayName": "TFVC",
"description": "Team Foundation Version Control (TFVC) source control integration for VS Code",
"version": "0.4.2",
"publisher": "qodev",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/qodevai/vscode-tfvc.git"
},
"bugs": {
"url": "https://github.com/qodevai/vscode-tfvc/issues"
},
"homepage": "https://github.com/qodevai/vscode-tfvc#readme",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"SCM Providers"
],
"keywords": [
"tfvc",
"tfs",
"azure devops",
"version control",
"source control",
"code review"
],
"activationEvents": [
"workspaceContains:**/.vscode-tfvc/**",
"onCommand:tfvc.setPat",
"onCommand:tfvc.initWorkspace",
"onCommand:tfvc.refresh",
"onCommand:tfvc.checkin",
"onCommand:tfvc.sync",
"onCommand:tfvc.checkout",
"onCommand:tfvc.undo",
"onCommand:tfvc.undoAll",
"onCommand:tfvc.add",
"onCommand:tfvc.delete",
"onCommand:tfvc.shelve",
"onCommand:tfvc.unshelve",
"onCommand:tfvc.shelvesets",
"onCommand:tfvc.history",
"onCommand:tfvc.refreshReviews",
"onCommand:tfvc.submitVerdict"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "tfvc.refresh",
"title": "Refresh",
"category": "TFVC",
"icon": "$(refresh)"
},
{
"command": "tfvc.checkin",
"title": "Check In",
"category": "TFVC",
"icon": "$(check)"
},
{
"command": "tfvc.sync",
"title": "Get Latest (Sync)",
"category": "TFVC",
"icon": "$(cloud-download)"
},
{
"command": "tfvc.checkout",
"title": "Check Out (Lock for Edit)",
"category": "TFVC"
},
{
"command": "tfvc.undo",
"title": "Undo",
"category": "TFVC",
"icon": "$(discard)"
},
{
"command": "tfvc.undoAll",
"title": "Undo All Changes",
"category": "TFVC"
},
{
"command": "tfvc.add",
"title": "Add File",
"category": "TFVC"
},
{
"command": "tfvc.delete",
"title": "Delete File",
"category": "TFVC"
},
{
"command": "tfvc.include",
"title": "Include Change",
"category": "TFVC",
"icon": "$(add)"
},
{
"command": "tfvc.exclude",
"title": "Exclude Change",
"category": "TFVC",
"icon": "$(remove)"
},
{
"command": "tfvc.openDiff",
"title": "Open Diff",
"category": "TFVC",
"icon": "$(diff)"
},
{
"command": "tfvc.openFile",
"title": "Open File",
"category": "TFVC",
"icon": "$(go-to-file)"
},
{
"command": "tfvc.shelve",
"title": "Shelve Changes",
"category": "TFVC"
},
{
"command": "tfvc.unshelve",
"title": "Unshelve Changes",
"category": "TFVC"
},
{
"command": "tfvc.shelvesets",
"title": "List Shelvesets",
"category": "TFVC",
"icon": "$(archive)"
},
{
"command": "tfvc.history",
"title": "Show History",
"category": "TFVC"
},
{
"command": "tfvc.refreshReviews",
"title": "Refresh Code Reviews",
"category": "TFVC",
"icon": "$(refresh)"
},
{
"command": "tfvc.openReviewFileDiff",
"title": "Open Review File Diff",
"category": "TFVC"
},
{
"command": "tfvc.submitVerdict",
"title": "Submit Review Verdict",
"category": "TFVC",
"icon": "$(pass)"
},
{
"command": "tfvc.initWorkspace",
"title": "Initialize Workspace",
"category": "TFVC",
"icon": "$(folder-opened)"
},
{
"command": "tfvc.setPat",
"title": "Set PAT (Personal Access Token)",
"category": "TFVC"
}
],
"menus": {
"scm/title": [
{
"command": "tfvc.checkin",
"group": "navigation",
"when": "scmProvider == tfvc"
},
{
"command": "tfvc.refresh",
"group": "navigation",
"when": "scmProvider == tfvc"
},
{
"command": "tfvc.sync",
"group": "navigation",
"when": "scmProvider == tfvc"
},
{
"command": "tfvc.undoAll",
"group": "1_modification",
"when": "scmProvider == tfvc"
},
{
"command": "tfvc.shelve",
"group": "2_shelve",
"when": "scmProvider == tfvc"
},
{
"command": "tfvc.unshelve",
"group": "2_shelve",
"when": "scmProvider == tfvc"
},
{
"command": "tfvc.shelvesets",
"group": "2_shelve",
"when": "scmProvider == tfvc"
}
],
"scm/resourceState/context": [
{
"command": "tfvc.openDiff",
"group": "inline",
"when": "scmProvider == tfvc"
},
{
"command": "tfvc.openFile",
"group": "inline",
"when": "scmProvider == tfvc"
},
{
"command": "tfvc.undo",
"group": "inline",
"when": "scmProvider == tfvc"
},
{
"command": "tfvc.include",
"group": "1_modification",
"when": "scmProvider == tfvc && scmResourceGroup == excluded"
},
{
"command": "tfvc.exclude",
"group": "1_modification",
"when": "scmProvider == tfvc && scmResourceGroup == included"
},
{
"command": "tfvc.undo",
"group": "2_undo",
"when": "scmProvider == tfvc"
}
],
"scm/resourceGroup/context": [
{
"command": "tfvc.undoAll",
"group": "1_modification",
"when": "scmProvider == tfvc"
}
],
"view/title": [
{
"command": "tfvc.refreshReviews",
"group": "navigation",
"when": "view == tfvcReviews"
}
],
"view/item/context": [
{
"command": "tfvc.submitVerdict",
"group": "inline",
"when": "view == tfvcReviews && viewItem == reviewRequest"
}
],
"commandPalette": [
{
"command": "tfvc.include",
"when": "false"
},
{
"command": "tfvc.exclude",
"when": "false"
},
{
"command": "tfvc.openDiff",
"when": "false"
},
{
"command": "tfvc.openFile",
"when": "false"
},
{
"command": "tfvc.openReviewFileDiff",
"when": "false"
}
]
},
"views": {
"scm": [
{
"id": "tfvcReviews",
"name": "TFVC Code Reviews",
"when": "config.tfvc.adoOrg || config.tfvc.adoBaseUrl"
}
]
},
"configuration": {
"title": "TFVC",
"properties": {
"tfvc.adoOrg": {
"type": "string",
"default": "",
"description": "Azure DevOps organization name (e.g. 'myorg'). For cloud: dev.azure.com/{org}."
},
"tfvc.adoProject": {
"type": "string",
"default": "",
"description": "Azure DevOps project name (e.g. 'MyProject'). Used as scope for TFVC operations."
},
"tfvc.adoBaseUrl": {
"type": "string",
"default": "",
"description": "On-prem Azure DevOps Server base URL (e.g. 'https://devops.example.com'). Leave empty for cloud."
},
"tfvc.adoCollectionPath": {
"type": "string",
"default": "",
"description": "On-prem TFS collection path (e.g. '/tfs/DefaultCollection'). Leave empty for cloud."
},
"tfvc.adoApiVersion": {
"type": "string",
"default": "",
"description": "Override the ADO REST api-version query parameter. Leave empty to auto-select: 6.0 for on-prem, 7.1 for cloud. Older TFS installs may need to downgrade (TFS 2018: '4.1', TFS 2019: '5.0'/'5.1')."
},
"tfvc.autoCheckout": {
"type": "string",
"enum": [
"disabled",
"onSave",
"onEdit"
],
"default": "onSave",
"enumDescriptions": [
"Never auto-checkout files",
"Automatically checkout files when saving",
"Automatically checkout files when editing (may be slow)"
],
"description": "When to automatically checkout files for editing."
},
"tfvc.autoRefreshInterval": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Auto-refresh interval in seconds. Set to 0 to disable."
},
"tfvc.reviewRequestOpenState": {
"type": "string",
"default": "Requested",
"description": "State value that identifies open code reviews. Localized on non-English ADO servers (e.g. 'Angefordert' on German TFS)."
},
"tfvc.reviewResponseClosedState": {
"type": "string",
"default": "Closed",
"description": "State value the verdict workflow transitions a Code Review Response to. Localized on non-English ADO servers (e.g. 'Geschlossen' on German TFS)."
},
"tfvc.strictSSL": {
"type": "boolean",
"default": true,
"description": "Validate the server's TLS certificate. Set to false to trust self-signed or internal-CA certificates on on-prem Azure DevOps Server — disables certificate verification entirely, so only turn off on networks you trust."
},
"tfvc.proxy": {
"type": "string",
"default": "",
"description": "HTTP proxy URL to tunnel ADO requests through (e.g. 'http://user:pass@proxy.corp:8080'). Leave empty to use the HTTPS_PROXY / HTTP_PROXY environment variables, or direct connections."
}
}
}
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts",
"test": "tsc -p tsconfig.test.json && node --test out-test/test/*.test.js",
"test:e2e": "tsc -p tsconfig.e2e.json && tsc -p ./ && node out-e2e/runTest.js",
"test:live": "tsc -p tsconfig.live.json && node --test out-live/test-live/*.test.js",
"test:live:janitor": "tsc -p tsconfig.live.json && node out-live/test-live/janitor.js",
"package": "vsce package --no-dependencies"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.10",
"@types/node": "^24.0.0",
"@types/vscode": "^1.85.0",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.9.0",
"glob": "^13.0.6",
"mocha": "^11.7.5",
"typescript": "^5.3.3"
}
}