This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
308 lines (308 loc) · 9.12 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
{
"name": "vscode-swift-development-environment",
"displayName": "Maintained Swift Development Environment",
"description": "New home of Swift Development Environment for VS Code",
"author": {
"name": "Valentin Knabel",
"email": "[email protected]",
"url": "https://github.com/vknabel"
},
"license": "Apache-2.0",
"version": "2.12.3",
"publisher": "vknabel",
"icon": "icons/icon.png",
"galleryBanner": {
"color": "#FC823F",
"theme": "light"
},
"repository": {
"type": "git",
"url": "https://github.com/vknabel/vscode-swift-development-environment"
},
"engines": {
"vscode": "^1.54.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"swift",
"sde",
"linux",
"lldb",
"development"
],
"preview": false,
"activationEvents": [
"onLanguage:swift",
"workspaceContains:**/*swift",
"onCommand:sde.commands.build",
"onCommand:sde.commands.run",
"onCommand:sde.commands.clean",
"onCommand:sde.commands.selectRun"
],
"main": "./out/clientMain",
"contributes": {
"commands": [
{
"command": "sde.commands.build",
"title": "Build Package",
"category": "SDE"
},
{
"command": "sde.commands.restartLanguageServer",
"title": "Restart Language Server",
"category": "SDE"
},
{
"command": "sde.commands.run",
"title": "Run Default Target",
"category": "SDE",
"enablement": "sde:running == false"
},
{
"command": "sde.commands.selectRun",
"title": "Run Target…",
"category": "SDE",
"enablement": "sde:running == false"
},
{
"command": "sde.commands.restartRun",
"title": "Restart Target",
"category": "SDE",
"enablement": "sde:running == true"
},
{
"command": "sde.commands.stop",
"title": "Stop Running Target",
"category": "SDE",
"enablement": "sde:running == true"
},
{
"command": "sde.commands.clean",
"title": "Clean Package",
"category": "SDE"
}
],
"keybindings": [
{
"command": "sde.commands.build",
"key": "alt+b"
},
{
"command": "sde.commands.run",
"key": "alt+r"
},
{
"command": "sde.commands.selectRun",
"key": "alt+shift+r"
},
{
"command": "sde.commands.stop",
"key": "alt+s"
}
],
"configuration": {
"type": "object",
"title": "Swift Development Environment",
"properties": {
"sourcekit-lsp.serverPath": {
"type": "string",
"description": "The path of the sourcekit-lsp executable\nIn SDE: defaults to the toolchain's sourcekit-lsp. Only available in global config for security reasons.",
"scope": "machine"
},
"sourcekit-lsp.toolchainPath": {
"type": "string",
"description": "The path of the swift toolchain.\nIn SDE: defaults to Xcode's default toolchain."
},
"swift.languageServerPath": {
"type": "string",
"default": "/usr/local/bin/langserver-swift",
"description": "[DEPRECATED] The fully qualified path to the Swift Language Server executable. Only available in global config for security reasons.",
"scope": "machine"
},
"swift.path.sourcekite": {
"type": "string",
"description": "The fully path to the sourcekite(SDE's LS backend). Only available in global config for security reasons.",
"scope": "machine"
},
"swift.path.sourcekiteDockerMode": {
"type": "boolean",
"default": false,
"description": "[DEPRECATED] (Experimental)Enable to run dedicated docker shell command. It is the responsibility of user to guarantee that the docker cmd 'docker run --rm -i jinmingjian/docker-sourcekite' works in your system.",
"scope": "machine"
},
"swift.path.swift_driver_bin": {
"type": "string",
"default": "/usr/bin/swift",
"description": "The fully path to the swift driver binary. Only available in global config for security reasons.",
"scope": "machine"
},
"swift.path.shell": {
"type": "string",
"default": "/bin/sh",
"description": "The fully path to the shell binary. Only available in global config for security reasons.",
"scope": "machine"
},
"sde.sourcekit.compilerOptions": {
"type": "array",
"description": "Optional compiler options like the target or search paths. Will only be used as default. `(debug|release).yaml` builds will override these settings.",
"default": [],
"items": {
"type": "string"
}
},
"swift.targets": {
"type": "array",
"description": "If SDE cannot reliably detect all targets, you can manually configure them.",
"default": [],
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"required": true,
"description": "The module name of the target. Will be passed as -module-name."
},
"path": {
"type": "string",
"required": true,
"description": "The reference path."
},
"sources": {
"required": false,
"type": "array",
"description": "An array of globs to determine all sources within the current target.",
"default": [
"**/*.swift"
],
"items": {
"type": "string"
}
},
"compilerArguments": {
"type": "array",
"required": false,
"description": "Additional compiler arguments to be passed.",
"items": {
"type": "string"
}
}
}
}
},
"sde.enable": {
"type": "boolean",
"default": true,
"description": "Enable SDE functionality"
},
"sde.languageServerMode": {
"type": "string",
"default": "sourcekite",
"enum": [
"sourcekite",
"langserver",
"sourcekit-lsp"
],
"description": "Decides which language server should be used. `sourcekite` is the default LSP for SDE, `sourcekit-lsp` is Apple's official one and `langserver` is RLovelett's Langserver."
},
"sde.enableTracing.client": {
"type": "boolean",
"default": false,
"description": "Enable tracing output for SDE client"
},
"sde.enableTracing.LSPServer": {
"type": "boolean",
"default": false,
"description": "Enable tracing output for SDE LS server"
},
"sde.buildOnSave": {
"type": "boolean",
"default": true,
"description": "Indicates wether SDE shall build the project on save."
},
"sde.swiftBuildingParams": {
"type": "array",
"description": "The params that shall be passed to the swift command.",
"default": [
"build"
],
"items": {
"type": "string"
}
},
"swift.diagnosis.max_num_problems": {
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server. NOET: Not used now."
}
}
},
"languages": [
{
"id": "swift",
"extensions": [
".swift"
],
"aliases": [
"Swift"
],
"firstLine": "^#!/.*\\bswift[0-9.-]*\\b"
}
],
"breakpoints": [
{
"language": "swift"
}
]
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"printWidth": 100
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "npm run compile",
"compile": "npx tsc",
"format": "npx prettier CHANGELOG.md README.md src/*.ts src/sourcekites-server/**/*.ts tsconfig.json --write",
"test": "npx jest"
},
"devDependencies": {
"@types/bunyan": "^1.8.4",
"@types/glob": "^7.1.3",
"@types/jest": "^27.0.0",
"@types/js-yaml": "^4.0.0",
"@types/node": "^14.14.33",
"@types/vscode": "1.54.0",
"@types/xml-js": "^1.0.0",
"jest": "^27.0.0",
"prettier": "^2.2.1",
"ts-jest": "^27.0.0",
"tsc": "^1.20150623.0",
"typescript": "^4.2.3"
},
"dependencies": {
"bunyan": "^1.8.5",
"fs-promise": "^2.0.3",
"glob": "^7.1.4",
"js-yaml": "^4.0.0",
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^7.0.0",
"vscode-languageserver-textdocument": "^1.0.1",
"xml-js": "^1.6.11"
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testMatch": [
"**/*.spec.ts"
],
"moduleFileExtensions": [
"ts",
"js"
],
"collectCoverage": true
}
}