-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathpackage.json
453 lines (453 loc) · 13.4 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
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
{
"name": "swift-lang",
"displayName": "Swift",
"description": "Swift Language Support for Visual Studio Code.",
"version": "0.7.0",
"publisher": "sswg",
"icon": "icon.png",
"repository": {
"type": "git",
"url": "https://github.com/swift-server/vscode-swift"
},
"engines": {
"vscode": "^1.65.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"swift",
"sswg"
],
"preview": true,
"activationEvents": [
"onLanguage:swift",
"workspaceContains:Package.swift"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "swift.updateDependencies",
"title": "Update Package Dependencies",
"icon": "$(cloud-download)",
"category": "Swift"
},
{
"command": "swift.resolveDependencies",
"title": "Resolve Package Dependencies",
"icon": "$(refresh)",
"category": "Swift"
},
{
"command": "swift.cleanBuild",
"title": "Clean Build",
"category": "Swift"
},
{
"command": "swift.resetPackage",
"title": "Reset Package Dependencies",
"icon": "$(clear-all)",
"category": "Swift"
},
{
"command": "swift.runSingle",
"title": "Run Swift Script",
"category": "Swift"
},
{
"command": "swift.useLocalDependency",
"title": "Use Local Version",
"category": "Swift"
},
{
"command": "swift.editDependency",
"title": "Edit Locally",
"category": "Swift"
},
{
"command": "swift.uneditDependency",
"title": "Revert To Original Version",
"category": "Swift"
},
{
"command": "swift.openInWorkspace",
"title": "Add to Workspace",
"category": "Swift"
},
{
"command": "swift.openExternal",
"title": "View Repository",
"category": "Swift"
},
{
"command": "swift.openPackage",
"title": "Open Package.swift",
"category": "Swift"
},
{
"command": "swift.switchPlatform",
"title": "Select Target Platform",
"category": "Swift"
},
{
"command": "swift.selectXcodeDeveloperDir",
"title": "Select Xcode Developer Dir",
"category": "Swift"
}
],
"configuration": [
{
"title": "Swift",
"properties": {
"swift.path": {
"type": "string",
"default": "",
"markdownDescription": "The path of the folder containing the Swift executables. The default is to look in **$PATH**.",
"order": 1
},
"swift.buildArguments": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"markdownDescription": "Arguments to pass to `swift build`. Keys and values should be provided as separate entries. If you have created a copy of the build task in `tasks.json` then these build arguments will not be propogated to that task.",
"order": 2
},
"swift.testEnvironmentVariables": {
"type": "object",
"patternProperties": {
".*": {
"type": "string"
}
},
"default": {},
"markdownDescription": "Environment variables to set when running tests. To set environment variables when debugging an application you should edit the relevant `launch.json` configuration",
"order": 3
},
"swift.autoGenerateLaunchConfigurations": {
"type": "boolean",
"default": true,
"markdownDescription": "When loading a `Package.swift`, auto-generate `launch.json` configurations for running any executables.",
"order": 4
},
"swift.problemMatchCompileErrors": {
"type": "boolean",
"default": true,
"description": "List compile errors in the Problems View.",
"order": 5
},
"swift.excludePathsFromPackageDependencies": {
"description": "A list of paths to exclude from the Package Dependencies view.",
"type": "array",
"items": {
"type": "string"
},
"default": [
".git",
".github"
],
"order": 6
},
"swift.backgroundCompilation": {
"type": "boolean",
"default": false,
"markdownDescription": "**Experimental**: Run `swift build` in the background whenever a file is saved.",
"order": 7
},
"swift.buildPath": {
"type": "string",
"default": "",
"markdownDescription": "Path to the build directory passed to all swift package manager commands.",
"order": 8
}
}
},
{
"title": "Sourcekit-LSP",
"properties": {
"sourcekit-lsp.serverPath": {
"type": "string",
"markdownDescription": "The path of the `sourcekit-lsp` executable. The default is to look in the path where `swift` is found.",
"order": 1
},
"sourcekit-lsp.serverArguments": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Arguments to pass to Sourcekit-LSP. Argument keys and values should be provided as separate entries in the array e.g. ['--log-level', 'debug']",
"order": 2
},
"sourcekit-lsp.inlayHints.enabled": {
"type": "boolean",
"default": true,
"description": "Render inlay type annotations in the editor. Inlay hints require Swift 5.6.",
"markdownDeprecationMessage": "**Deprecated**: Please use `#editor.inlayHints.enabled#` instead.",
"order": 3
},
"sourcekit-lsp.trace.server": {
"type": "string",
"default": "off",
"enum": [
"off",
"messages",
"verbose"
],
"description": "Traces the communication between VS Code and the SourceKit-LSP language server.",
"order": 4
}
}
},
{
"title": "Advanced",
"properties": {
"swift.swiftEnvironmentVariables": {
"type": "object",
"patternProperties": {
".*": {
"type": "string"
}
},
"default": {},
"markdownDescription": "Additional environment variables to pass to swift operations.",
"order": 1
},
"swift.runtimePath": {
"type": "string",
"default": "",
"description": "The path of the folder containing the Swift runtime libraries. Only effective when they can't be discovered by RPath.",
"order": 2
},
"swift.SDK": {
"type": "string",
"default": "",
"description": "The path of the SDK to compile against (`--sdk` parameter). The default SDK is determined by the environment on macOS and Windows.",
"order": 3
},
"swift.diagnostics": {
"type": "boolean",
"default": false,
"description": "Output additional diagnostics to the Swift Output View.",
"order": 100
}
}
}
],
"menus": {
"commandPalette": [
{
"command": "swift.updateDependencies",
"when": "swift.hasPackage"
},
{
"command": "swift.resolveDependencies",
"when": "swift.hasPackage"
},
{
"command": "swift.cleanBuild",
"when": "swift.hasPackage"
},
{
"command": "swift.switchPlatform",
"when": "isMac"
},
{
"command": "swift.resetPackage",
"when": "swift.hasPackage"
},
{
"command": "swift.openPackage",
"when": "swift.hasPackage"
},
{
"command": "swift.useLocalDependency",
"when": "false"
},
{
"command": "swift.editDependency",
"when": "false"
},
{
"command": "swift.openInWorkspace",
"when": "false"
},
{
"command": "swift.uneditDependency",
"when": "false"
},
{
"command": "swift.openExternal",
"when": "false"
},
{
"command": "swift.selectXcodeDeveloperDir",
"when": "isMac"
}
],
"view/title": [
{
"command": "swift.updateDependencies",
"when": "view == packageDependencies",
"group": "navigation"
},
{
"command": "swift.resolveDependencies",
"when": "view == packageDependencies",
"group": "navigation"
},
{
"command": "swift.resetPackage",
"when": "view == packageDependencies",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "swift.useLocalDependency",
"when": "view == packageDependencies && viewItem == remote"
},
{
"command": "swift.editDependency",
"when": "view == packageDependencies && viewItem == remote"
},
{
"command": "swift.uneditDependency",
"when": "view == packageDependencies && viewItem == editing"
},
{
"command": "swift.openInWorkspace",
"when": "view == packageDependencies && viewItem == editing"
},
{
"command": "swift.openInWorkspace",
"when": "view == packageDependencies && viewItem == local"
},
{
"command": "swift.openExternal",
"when": "view == packageDependencies && viewItem != local"
}
]
},
"problemMatchers": [
{
"name": "swiftc",
"owner": "swift",
"source": "swiftc",
"fileLocation": [
"absolute"
],
"pattern": [
{
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error|note):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
]
}
],
"taskDefinitions": [
{
"type": "swift",
"properties": {
"args": {
"description": "An array of arguments for the command. Each argument will be quoted separately.",
"type": "array",
"items": {
"type": "string"
}
},
"cwd": {
"description": "The folder to run the task in.",
"type": "string"
}
},
"required": [
"args"
]
},
{
"type": "swift-plugin",
"properties": {
"command": {
"description": "The plugin command to execute. This should not contain any arguments as it will be quoted.",
"type": "string"
},
"args": {
"description": "An array of arguments for the command. Each argument will be quoted separately.",
"type": "array",
"items": {
"type": "string"
}
},
"disableSandbox": {
"description": "Plugins normally run inside a sandbox. Set this to true to disable the sandbox when running .",
"type": "boolean"
},
"cwd": {
"description": "The folder to run the swift plugin in.",
"type": "string"
}
},
"required": [
"command",
"args"
]
}
],
"views": {
"explorer": [
{
"id": "packageDependencies",
"name": "Package Dependencies",
"icon": "$(archive)",
"when": "swift.hasPackage"
}
]
}
},
"extensionDependencies": [
"vadimcn.vscode-lldb"
],
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node --target=node16",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"compile": "tsc",
"watch": "tsc --watch",
"lint": "eslint ./ --ext ts && tsc --noEmit",
"format": "prettier --check src test",
"pretest": "npm run compile && npm run lint",
"test": "tsc -p ./ && node ./out/test/runTest.js",
"package": "vsce package",
"dev-package": "vsce package -o swift-lang-development.vsix"
},
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/vscode": "^1.65.0",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"@vscode/test-electron": "^1.6.2",
"esbuild": "^0.14.5",
"eslint": "^8.1.0",
"eslint-config-prettier": "^8.3.0",
"glob": "^7.1.7",
"mocha": "^9.1.3",
"prettier": "2.5.1",
"typescript": "^4.4.4",
"vsce": "^2.9.0"
},
"dependencies": {
"@types/plist": "^3.0.2",
"plist": "^3.0.5",
"vscode-languageclient": "^8.0.0"
}
}