forked from Pure-D/code-d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
245 lines (245 loc) · 6.01 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
{
"name": "code-d",
"description": "auto-complete, snippets, linter and formatter for dlang",
"version": "0.10.10",
"publisher": "webfreak",
"repository": {
"type": "git",
"url": "https://github.com/Pure-D/code-d.git"
},
"icon": "images/dlogo-square.svg",
"license": "MIT",
"engines": {
"vscode": "^0.10.10"
},
"categories": [
"Languages",
"Snippets",
"Linters",
"Other"
],
"activationEvents": [
"onLanguage:d",
"onLanguage:dml",
"workspaceContains:dub.json",
"workspaceContains:dub.sdl"
],
"main": "./out/src/extension",
"extensionDependencies": [
"vscode.jade"
],
"contributes": {
"languages": [
{
"id": "d",
"extensions": [
".d",
".di"
],
"aliases": [
"D"
]
},
{
"id": "dscript",
"aliases": [
"arsd.DScript"
],
"extensions": [
".dscript",
".ds"
]
},
{
"id": "dml",
"aliases": [
"DlangUI Markup Language"
],
"extensions": [
".dml"
]
},
{
"id": "sdl",
"aliases": [
"Simple Declarative Language"
],
"extensions": [
".sdl"
]
},
{
"id": "jade",
"aliases": [
"Diet"
],
"extensions": [
".dt"
]
}
],
"grammars": [
{
"language": "d",
"scopeName": "source.d",
"path": "./syntaxes/d.json"
},
{
"language": "dscript",
"scopeName": "source.dscript",
"path": "./syntaxes/arsd.dscript.json"
},
{
"language": "dml",
"scopeName": "source.dml",
"path": "./syntaxes/dml.json"
},
{
"language": "sdl",
"scopeName": "source.sdl",
"path": "./syntaxes/sdl.json"
}
],
"snippets": [
{
"language": "d",
"path": "./snippets/d.json"
}
],
"configuration": {
"title": "D configuration",
"type": "object",
"properties": {
"d.workspacedPath": {
"type": "string",
"default": "workspace-d",
"description": "Path of the workspace-d executable. Path can be omitted if in $PATH"
},
"d.stdlibPath": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"/usr/include/dmd/druntime/import",
"/usr/include/dmd/phobos"
],
"description": "Array of paths to phobos and D runtime for automatic inclusion for auto completion"
},
"d.dcdClientPath": {
"type": "string",
"default": "dcd-client",
"description": "Path of the dcd-client executable. Path can be omitted if in $PATH"
},
"d.dcdServerPath": {
"type": "string",
"default": "dcd-server",
"description": "Path of the dcd-server executable. Path can be omitted if in $PATH"
},
"d.dscannerPath": {
"type": "string",
"default": "dscanner",
"description": "Path of the dscanner executable. Path can be omitted if in $PATH"
},
"d.dfmtPath": {
"type": "string",
"default": "dfmt",
"description": "Path of the dfmt executable. Path can be omitted if in $PATH"
},
"d.enableLinting": {
"type": "boolean",
"default": true,
"description": "If code-d should watch for file saves and report static analysis. Might interfere with other lint plugins or settings."
},
"d.enableDubLinting": {
"type": "boolean",
"default": true,
"description": "If code-d should build on save to check for compile errors."
},
"d.enableAutoComplete": {
"type": "boolean",
"default": true,
"description": "Start dcd-server at startup and complete using dcd-client."
},
"d.neverUseDub": {
"type": "boolean",
"default": false,
"description": "If this is true then a custom workspace where you manually provide the import paths will always be used instead of dub. See d.projectImportPaths for setting import paths then. This is discouraged as it will remove most features like packages, building & compiler linting. If this is a standalone project with no external dependencies with a custom build system then this should be true."
},
"d.projectImportPaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Setting for import paths in your workspace if not using dub. This will replace other paths. Its recommended to set this in your workspace settings instead of your user settings to keep it separate for each project."
}
}
},
"commands": [
{
"command": "code-d.switchConfiguration",
"title": "code-d: Switch Configuration"
},
{
"command": "code-d.switchBuildType",
"title": "code-d: Switch Build Type"
},
{
"command": "code-d.killServer",
"title": "code-d: Kill DCD Server"
},
{
"command": "code-d.restartServer",
"title": "code-d: Restart DCD Server"
},
{
"command": "code-d.reloadImports",
"title": "code-d: Reload import paths"
},
{
"command": "code-d.run",
"title": "code-d: Run project"
},
{
"command": "code-d.build",
"title": "code-d: Build project"
},
{
"command": "code-d.stop",
"title": "code-d: Stop project"
},
{
"command": "code-d.uploadSelection",
"title": "code-d: Upload selection to dpaste.com"
},
{
"command": "code-d.insertDscanner",
"title": "code-d: Insert default dscanner.ini content"
},
{
"command": "code-d.rdmdCurrent",
"title": "code-d: Run current document using rdmd"
}
],
"jsonValidation": [
{
"fileMatch": "dub.json",
"url": "./json-validation/dub.schema.json"
}
]
},
"scripts": {
"postinstall": "node ./node_modules/vscode/bin/install && tsc",
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./"
},
"dependencies": {
"request": "^2.72.0",
"jsonc-parser": "^0.2.0"
},
"devDependencies": {
"typescript": "^1.8.10",
"vscode": "^0.11.0"
}
}