-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
341 lines (341 loc) · 11.7 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
{
"name": "coc-esbonio",
"version": "0.14.4",
"esbonioLsVersion": "0.16.4",
"description": "esbonio ([Sphinx] Python Documentation Generator) language server extension for coc.nvim",
"author": "yaegassy <yosstools@gmail.com>",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"vim",
"neovim",
"python",
"sphinx",
"documentation",
"lsp",
"linter",
"restructuredtext"
],
"engines": {
"coc": "^0.0.80"
},
"repository": {
"type": "git",
"url": "https://github.com/yaegassy/coc-esbonio"
},
"scripts": {
"lint": "eslint src --ext ts",
"clean": "rimraf lib",
"watch": "node esbuild.js --watch",
"build": "node esbuild.js",
"prepare": "node esbuild.js"
},
"prettier": {
"singleQuote": true,
"printWidth": 120,
"semi": true
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/semver": "^7.3.10",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"coc.nvim": "^0.0.82",
"esbuild": "^0.16.17",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.1.1",
"rimraf": "^5.0.1",
"semver": "^7.3.7",
"typescript": "^5.3.3",
"which": "^2.0.2"
},
"activationEvents": [
"onLanguage:rst"
],
"contributes": {
"configuration": {
"type": "object",
"title": "coc-esbonio configuration",
"properties": {
"esbonio.enable": {
"type": "boolean",
"default": true,
"description": "Enable coc-esbonio extension"
},
"esbonio.enableFixDirectiveCompletion": {
"type": "boolean",
"default": true,
"description": "Enable fix patch for `Directive` completion issue"
},
"esbonio.client.sectionCharacterLevel1": {
"type": "string",
"default": "=",
"enum": [
"=",
"-",
":",
"~",
".",
"^",
"_",
"*",
"+",
"#",
"\"",
"'",
"`"
],
"description": "Character to be used in the Section builder (level1) of the code action"
},
"esbonio.client.sectionCharacterLevel2": {
"type": "string",
"default": "-",
"enum": [
"=",
"-",
":",
"~",
".",
"^",
"_",
"*",
"+",
"#",
"\"",
"'",
"`"
],
"description": "Character to be used in the Section builder (level2) of the code action"
},
"esbonio.client.sectionCharacterLevel3": {
"type": "string",
"default": "~",
"enum": [
"=",
"-",
":",
"~",
".",
"^",
"_",
"*",
"+",
"#",
"\"",
"'",
"`"
],
"description": "Character to be used in the Section builder (level3) of the code action"
},
"esbonio.server.enabled": {
"scope": "window",
"type": "boolean",
"default": true,
"description": "Enable/Disable the language server"
},
"esbonio.server.enabledInPyFiles": {
"scope": "window",
"type": "boolean",
"default": true,
"description": "Enable/Disable the language server in Python files."
},
"esbonio.server.startupModule": {
"scope": "window",
"type": "string",
"default": "esbonio",
"description": "The module (or script) to use to launch the server."
},
"esbonio.server.excludedModules": {
"scope": "window",
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "A list of modules to exclude from the server's configuration"
},
"esbonio.server.includedModules": {
"scope": "window",
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "A list of additional modules to include in the server's configuration"
},
"esbonio.server.logLevel": {
"scope": "application",
"type": "string",
"default": "error",
"enum": [
"debug",
"info",
"error"
],
"description": "The level of log message to show in the log"
},
"esbonio.server.logFilter": {
"scope": "application",
"type": "array",
"default": null,
"items": {
"type": "string"
},
"description": "A list of logger names to limit output from"
},
"esbonio.server.pythonPath": {
"scope": "window",
"type": "string",
"default": "",
"description": "The path to the Python interpreter to use when running the Langague Server.\n\nBy default this extension will try to use the interpreter configured via the Python Extension. If you do not use the Python Extension or you wish to use a different environment, then this option can be used to override the default behavior."
},
"esbonio.server.showDeprecationWarnings": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "Developer flag to enable deprecation warnings."
},
"esbonio.server.hideSphinxOutput": {
"scope": "application",
"type": "boolean",
"default": false,
"description": "Hide Sphinx build output from the Language Server log.",
"deprecationMessage": "This option will be removed when the language server reaches v1.0. The esbonio.sphinx.quiet and esbonio.sphinx.silent options should be used instead."
},
"esbonio.server.completion.preferredInsertBehavior": {
"scope": "window",
"type": "string",
"enum": [
"insert",
"replace"
],
"enumDescriptions": [
"Completions will only append to existing text. Server will only provide suggestions compatible with existing text.",
"Completions will replace existing text, allowing for complete rewrites of existing items. Server will respond with all valid options."
],
"default": "replace",
"description": "Indicate to the server how you would prefer completions to behave when accepted."
},
"esbonio.sphinx.buildDir": {
"scope": "window",
"type": "string",
"default": null,
"description": "The directory in which to store Sphinx's build output.\n\nBy default the Language Server will store any build files in a storage area provided by coc.nvim, this option allows you to override this to be a directory of your choosing e.g. your local _build/ directory.",
"markdownDescription": "The directory in which to store Sphinx's build output.\n\nBy default the Language Server will store any build files in a storage area provided by coc.nvim, this option allows you to override this to be a directory of your choosing e.g. your local `_build/` directory."
},
"esbonio.sphinx.builderName": {
"scope": "window",
"type": "string",
"default": "html",
"description": "The builder to use when building the documentation.",
"markdownDescription": "The builder to use when building the documentation. **Note:** While many builders will work fine, many features (such as previews) will only work with the `html` builder."
},
"esbonio.sphinx.confDir": {
"scope": "window",
"type": "string",
"default": "",
"description": "The Language Server should be able to automatically find the folder containing your project's 'conf.py' file. However this setting can be used to force the Language Server to use a particular directory if required."
},
"esbonio.sphinx.configOverrides": {
"scope": "window",
"type": "object",
"default": {},
"description": "Any conf.py options to override."
},
"esbonio.sphinx.doctreeDir": {
"scope": "window",
"type": "string",
"default": null,
"description": "The directory in which to store Sphinx's doctree cache."
},
"esbonio.sphinx.forceFullBuild": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "Force a full build of the documentation project on server startup."
},
"esbonio.sphinx.keepGoing": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "Continue building when errors generated from warnings are encountered"
},
"esbonio.sphinx.makeMode": {
"scope": "window",
"type": "boolean",
"default": true,
"description": "Flag indicating if the language server should be have like a sphinx-build -M ... command"
},
"esbonio.sphinx.numJobs": {
"scope": "window",
"type": "integer",
"default": 1,
"markdownDescription": "The number of parallel jobs to use during a Sphinx build.\n\n- A value of `0` is equivalent to passing `-j auto` to a `sphinx-build` command.\n- A value of `1` will disable parallel processing."
},
"esbonio.sphinx.quiet": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "Hide standard Sphinx output messages"
},
"esbonio.sphinx.silent": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "Hide all Sphinx output"
},
"esbonio.sphinx.srcDir": {
"scope": "window",
"type": "string",
"default": "",
"description": "The directory containing your rst source files. By default the Language Server will assume this is the same as `esbonio.sphinx.confDir` but this opton can override this if necessary.",
"markdownDescription": "The directory containing your rst source files. By default the Language Server will assume this is the same as `#esbonio.sphinx.confDir#` but this opton can override this if necessary."
},
"esbonio.sphinx.tags": {
"scope": "window",
"type": "array",
"default": [],
"description": "Tags to enable during a build."
},
"esbonio.sphinx.verbosity": {
"scope": "window",
"type": "integer",
"default": 0,
"description": "The verbosity of Sphinx's output"
},
"esbonio.sphinx.warningIsError": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "Treat any warnings as errors."
},
"esbonio.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between coc.nvim and the esbonio language server."
}
}
},
"commands": [
{
"command": "esbonio.languageServer.install",
"title": "Install/Upgrade Language Server",
"category": "Esbonio"
},
{
"command": "esbonio.languageServer.restart",
"title": "Restart Language Server",
"category": "Esbonio"
}
]
}
}