-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpackage.json
295 lines (295 loc) · 9.83 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
{
"name": "solargraph",
"publisher": "castwide",
"displayName": "Ruby Solargraph",
"description": "A Ruby language server featuring code completion, intellisense, and inline documentation",
"icon": "solargraph.png",
"version": "0.24.1",
"categories": [
"Programming Languages",
"Linters",
"Formatters"
],
"keywords": [
"Ruby",
"autocomplete",
"intellisense",
"YARD",
"language server"
],
"repository": {
"type": "git",
"url": "https://github.com/castwide/vscode-solargraph"
},
"license": "MIT",
"engines": {
"vscode": "^1.64.0"
},
"extensionKind": [
"workspace"
],
"activationEvents": [
"onLanguage:ruby",
"onCommand:solargraph.search",
"onCommand:solargraph.restart",
"onCommand:solargraph.config",
"onCommand:solargraph.downloadCore",
"onCommand:solargraph.buildGemDocs",
"onCommand:solargraph.rebuildAllGemDocs"
],
"main": "./out/extension.js",
"files": [
"views"
],
"contributes": {
"configuration": {
"title": "Solargraph settings for Ruby",
"properties": {
"solargraph.transport": {
"type": "string",
"default": "socket",
"enum": [
"socket",
"stdio",
"external"
],
"description": "The type of transport to use."
},
"solargraph.externalServer": {
"type": "object",
"description": "The host and port to use for external transports. (Ignored for stdio and socket transports.)",
"properties": {
"host": {
"type": "string",
"default": "localhost"
},
"port": {
"type": "integer",
"default": 7658
}
},
"default": {
"host": "localhost",
"port": 7658
}
},
"solargraph.commandPath": {
"type": "string",
"default": "solargraph",
"description": "Path to the solargraph command. Set this to an absolute path to select from multiple installed Ruby versions.",
"scope": "resource"
},
"solargraph.useBundler": {
"type": "boolean",
"description": "Use `bundle exec` to run solargraph. (If this is true, the solargraph.commandPath setting is ignored.)",
"default": false
},
"solargraph.bundlerPath": {
"type": "string",
"description": "Path to the bundle executable, defaults to 'bundle'. Needs to be an absolute path for the 'bundle' exec/shim",
"default": "bundle",
"scope": "resource"
},
"solargraph.checkGemVersion": {
"type": "boolean",
"description": "Automatically check if a new version of the Solargraph gem is available.",
"default": true,
"enum": [
true,
false
]
},
"solargraph.completion": {
"type": [
"boolean"
],
"description": "Enable completion",
"default": true,
"enum": [
true,
false
]
},
"solargraph.hover": {
"type": [
"boolean"
],
"description": "Enable hover",
"default": true,
"enum": [
true,
false
]
},
"solargraph.diagnostics": {
"type": [
"boolean"
],
"description": "Enable diagnostics",
"default": false,
"enum": [
true,
false
]
},
"solargraph.autoformat": {
"type": [
"boolean"
],
"description": "Enable automatic formatting while typing (WARNING: experimental)",
"default": false,
"enum": [
true,
false
]
},
"solargraph.formatting": {
"type": [
"boolean"
],
"description": "Enable document formatting",
"enum": [
true,
false
],
"default": false
},
"solargraph.symbols": {
"type": [
"boolean"
],
"description": "Enable symbols",
"enum": [
true,
false
],
"default": true
},
"solargraph.definitions": {
"type": [
"boolean"
],
"description": "Enable definitions (go to, etc.)",
"enum": [
true,
false
],
"default": true
},
"solargraph.rename": {
"type": [
"boolean"
],
"description": "Enable symbol renaming",
"enum": [
true,
false
],
"default": true
},
"solargraph.references": {
"type": [
"boolean"
],
"description": "Enable finding references",
"enum": [
true,
false
],
"default": true
},
"solargraph.folding": {
"type": "boolean",
"description": "Enable folding ranges",
"default": true
},
"solargraph.logLevel": {
"type": "string",
"description": "Level of debug info to log. `warn` is least and `debug` is most.",
"enum": [
"warn",
"info",
"debug"
],
"default": "warn"
}
}
},
"commands": [
{
"command": "solargraph.search",
"title": "Search Ruby Documentation",
"category": "Solargraph"
},
{
"command": "solargraph.restart",
"title": "Restart Solargraph",
"category": "Solargraph"
},
{
"command": "solargraph.config",
"title": "Create a Solargraph config file",
"category": "Solargraph"
},
{
"command": "solargraph.checkGemVersion",
"title": "Check Solargraph gem version",
"category": "Solargraph"
},
{
"command": "solargraph.downloadCore",
"title": "Download current Ruby documentation",
"category": "Solargraph"
},
{
"command": "solargraph.buildGemDocs",
"title": "Build new gem documentation",
"category": "Solargraph"
},
{
"command": "solargraph.rebuildAllGemDocs",
"title": "Rebuild all gem documentation",
"category": "Solargraph"
},
{
"command": "solargraph.environment",
"title": "Get environment info",
"category": "Solargraph"
}
],
"keybindings": [
{
"command": "solargraph.search",
"key": "ctrl+shift+r",
"mac": "cmd+shift+r"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"lint:fix": "eslint src --ext ts --fix",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.64.0",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"eslint": "^8.9.0",
"glob": "^7.2.0",
"mocha": "^9.1.3",
"typescript": "^4.5.4",
"@vscode/test-electron": "^2.0.3"
},
"dependencies": {
"is-relative": "^1.0.0",
"solargraph-utils": "^1.2.0",
"vscode-languageclient": "^7.0.0"
}
}