coc-ltex-plus 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +197 -0
- package/lib/index.js +2319 -0
- package/package.json +700 -0
package/package.json
ADDED
|
@@ -0,0 +1,700 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "coc-ltex-plus",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Grammar and prose checking for coc.nvim powered by ltex-ls-plus",
|
|
5
|
+
"author": "SeniorMars <cjh16@rice.edu>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "lib/index.js",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"coc.nvim",
|
|
10
|
+
"grammar",
|
|
11
|
+
"languagetool",
|
|
12
|
+
"latex",
|
|
13
|
+
"ltex",
|
|
14
|
+
"ltex-ls-plus",
|
|
15
|
+
"markdown",
|
|
16
|
+
"prose",
|
|
17
|
+
"spell",
|
|
18
|
+
"typst"
|
|
19
|
+
],
|
|
20
|
+
"files": [
|
|
21
|
+
"lib",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"coc": "^0.0.82"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"watch": "node esbuild.mjs --watch",
|
|
30
|
+
"build": "node esbuild.mjs",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"test": "node scripts/unit-tests.mjs",
|
|
33
|
+
"smoke:managed-install": "node scripts/managed-install-smoke.mjs",
|
|
34
|
+
"prepare": "node esbuild.mjs"
|
|
35
|
+
},
|
|
36
|
+
"activationEvents": [
|
|
37
|
+
"onCommand:ltex.activateExtension",
|
|
38
|
+
"onCommand:ltex.restart",
|
|
39
|
+
"onCommand:ltex.resetAndRestart",
|
|
40
|
+
"onCommand:ltex.checkCurrentDocument",
|
|
41
|
+
"onCommand:ltex.checkSelection",
|
|
42
|
+
"onCommand:ltex.checkAllDocumentsInWorkspace",
|
|
43
|
+
"onCommand:ltex.clearDiagnosticsInCurrentDocument",
|
|
44
|
+
"onCommand:ltex.clearAllDiagnostics",
|
|
45
|
+
"onCommand:ltex.toggleDiagnostics",
|
|
46
|
+
"onCommand:ltex.showStatusInformation",
|
|
47
|
+
"onCommand:ltex.serverStatus",
|
|
48
|
+
"onCommand:ltex.showOutputChannel",
|
|
49
|
+
"onCommand:ltex.disableHere",
|
|
50
|
+
"onCommand:ltex.reloadExternalSettings",
|
|
51
|
+
"onCommand:ltex.installServer",
|
|
52
|
+
"onCommand:ltex.updateServer",
|
|
53
|
+
"onCommand:ltex.checkDuplicateServer",
|
|
54
|
+
"onLanguage:bibtex",
|
|
55
|
+
"onLanguage:context",
|
|
56
|
+
"onLanguage:context.tex",
|
|
57
|
+
"onLanguage:html",
|
|
58
|
+
"onLanguage:latex",
|
|
59
|
+
"onLanguage:markdown",
|
|
60
|
+
"onLanguage:mdx",
|
|
61
|
+
"onLanguage:typst",
|
|
62
|
+
"onLanguage:org",
|
|
63
|
+
"onLanguage:quarto",
|
|
64
|
+
"onLanguage:rsweave",
|
|
65
|
+
"onLanguage:restructuredtext",
|
|
66
|
+
"onLanguage:mail",
|
|
67
|
+
"onLanguage:neorg",
|
|
68
|
+
"onLanguage:norg",
|
|
69
|
+
"onLanguage:help"
|
|
70
|
+
],
|
|
71
|
+
"contributes": {
|
|
72
|
+
"configuration": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"title": "coc-ltex-plus configuration",
|
|
75
|
+
"properties": {
|
|
76
|
+
"ltex.enabled": {
|
|
77
|
+
"oneOf": [
|
|
78
|
+
{
|
|
79
|
+
"type": "boolean"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"scope": "window",
|
|
89
|
+
"default": [
|
|
90
|
+
"bibtex",
|
|
91
|
+
"context",
|
|
92
|
+
"context.tex",
|
|
93
|
+
"html",
|
|
94
|
+
"latex",
|
|
95
|
+
"markdown",
|
|
96
|
+
"mdx",
|
|
97
|
+
"typst",
|
|
98
|
+
"org",
|
|
99
|
+
"quarto",
|
|
100
|
+
"rsweave",
|
|
101
|
+
"restructuredtext",
|
|
102
|
+
"mail",
|
|
103
|
+
"neorg",
|
|
104
|
+
"norg",
|
|
105
|
+
"help"
|
|
106
|
+
],
|
|
107
|
+
"markdownDescription": "Enable LTeX+ for all supported filetypes, no filetypes, or the listed Coc filetypes."
|
|
108
|
+
},
|
|
109
|
+
"ltex.ltex-ls.path": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"scope": "window",
|
|
112
|
+
"default": "",
|
|
113
|
+
"markdownDescription": "Path to the `ltex-ls-plus` executable or to an extracted ltex-ls-plus directory containing `bin/ltex-ls-plus`. When unset, coc-ltex-plus first uses its managed install, then resolves `ltex-ls-plus` from `$PATH`."
|
|
114
|
+
},
|
|
115
|
+
"ltex.ltex-ls.args": {
|
|
116
|
+
"type": "array",
|
|
117
|
+
"scope": "window",
|
|
118
|
+
"default": [],
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"markdownDescription": "Additional arguments passed to `ltex-ls-plus`."
|
|
123
|
+
},
|
|
124
|
+
"ltex.ltex-ls.logLevel": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"scope": "window",
|
|
127
|
+
"default": "fine",
|
|
128
|
+
"enum": [
|
|
129
|
+
"severe",
|
|
130
|
+
"warning",
|
|
131
|
+
"info",
|
|
132
|
+
"config",
|
|
133
|
+
"fine",
|
|
134
|
+
"finer",
|
|
135
|
+
"finest"
|
|
136
|
+
],
|
|
137
|
+
"markdownDescription": "Java logging level used by ltex-ls-plus."
|
|
138
|
+
},
|
|
139
|
+
"ltex.java.path": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"scope": "window",
|
|
142
|
+
"default": "",
|
|
143
|
+
"markdownDescription": "Optional Java home used when starting `ltex-ls-plus`. The extension prepends `<path>/bin` to `PATH` and sets `JAVA_HOME`."
|
|
144
|
+
},
|
|
145
|
+
"ltex.java.initialHeapSize": {
|
|
146
|
+
"type": "integer",
|
|
147
|
+
"scope": "window",
|
|
148
|
+
"default": 64,
|
|
149
|
+
"minimum": 1,
|
|
150
|
+
"markdownDescription": "Initial Java heap size in MiB, passed to ltex-ls-plus as `-Xms<size>m`."
|
|
151
|
+
},
|
|
152
|
+
"ltex.java.maximumHeapSize": {
|
|
153
|
+
"type": "integer",
|
|
154
|
+
"scope": "window",
|
|
155
|
+
"default": 512,
|
|
156
|
+
"minimum": 1,
|
|
157
|
+
"markdownDescription": "Maximum Java heap size in MiB, passed to ltex-ls-plus as `-Xmx<size>m`."
|
|
158
|
+
},
|
|
159
|
+
"ltex.language": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"scope": "resource",
|
|
162
|
+
"default": "en-US",
|
|
163
|
+
"enum": [
|
|
164
|
+
"auto",
|
|
165
|
+
"ar",
|
|
166
|
+
"ast-ES",
|
|
167
|
+
"be-BY",
|
|
168
|
+
"br-FR",
|
|
169
|
+
"ca-ES",
|
|
170
|
+
"ca-ES-valencia",
|
|
171
|
+
"da-DK",
|
|
172
|
+
"de",
|
|
173
|
+
"de-AT",
|
|
174
|
+
"de-CH",
|
|
175
|
+
"de-DE",
|
|
176
|
+
"de-DE-x-simple-language",
|
|
177
|
+
"el-GR",
|
|
178
|
+
"en",
|
|
179
|
+
"en-AU",
|
|
180
|
+
"en-CA",
|
|
181
|
+
"en-GB",
|
|
182
|
+
"en-NZ",
|
|
183
|
+
"en-US",
|
|
184
|
+
"en-ZA",
|
|
185
|
+
"eo",
|
|
186
|
+
"es",
|
|
187
|
+
"es-AR",
|
|
188
|
+
"fa",
|
|
189
|
+
"fr",
|
|
190
|
+
"ga-IE",
|
|
191
|
+
"gl-ES",
|
|
192
|
+
"it",
|
|
193
|
+
"ja-JP",
|
|
194
|
+
"km-KH",
|
|
195
|
+
"nl",
|
|
196
|
+
"nl-BE",
|
|
197
|
+
"pl-PL",
|
|
198
|
+
"pt",
|
|
199
|
+
"pt-AO",
|
|
200
|
+
"pt-BR",
|
|
201
|
+
"pt-MZ",
|
|
202
|
+
"pt-PT",
|
|
203
|
+
"ro-RO",
|
|
204
|
+
"ru-RU",
|
|
205
|
+
"sk-SK",
|
|
206
|
+
"sl-SI",
|
|
207
|
+
"sv",
|
|
208
|
+
"ta-IN",
|
|
209
|
+
"tl-PH",
|
|
210
|
+
"uk-UA",
|
|
211
|
+
"zh-CN"
|
|
212
|
+
],
|
|
213
|
+
"markdownDescription": "Primary language passed through to ltex-ls-plus."
|
|
214
|
+
},
|
|
215
|
+
"ltex.additionalRules.motherTongue": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"scope": "resource",
|
|
218
|
+
"default": "",
|
|
219
|
+
"enum": [
|
|
220
|
+
"",
|
|
221
|
+
"ar",
|
|
222
|
+
"ast-ES",
|
|
223
|
+
"be-BY",
|
|
224
|
+
"br-FR",
|
|
225
|
+
"ca-ES",
|
|
226
|
+
"ca-ES-valencia",
|
|
227
|
+
"da-DK",
|
|
228
|
+
"de",
|
|
229
|
+
"de-AT",
|
|
230
|
+
"de-CH",
|
|
231
|
+
"de-DE",
|
|
232
|
+
"de-DE-x-simple-language",
|
|
233
|
+
"el-GR",
|
|
234
|
+
"en",
|
|
235
|
+
"en-AU",
|
|
236
|
+
"en-CA",
|
|
237
|
+
"en-GB",
|
|
238
|
+
"en-NZ",
|
|
239
|
+
"en-US",
|
|
240
|
+
"en-ZA",
|
|
241
|
+
"eo",
|
|
242
|
+
"es",
|
|
243
|
+
"es-AR",
|
|
244
|
+
"fa",
|
|
245
|
+
"fr",
|
|
246
|
+
"ga-IE",
|
|
247
|
+
"gl-ES",
|
|
248
|
+
"it",
|
|
249
|
+
"ja-JP",
|
|
250
|
+
"km-KH",
|
|
251
|
+
"nl",
|
|
252
|
+
"nl-BE",
|
|
253
|
+
"pl-PL",
|
|
254
|
+
"pt",
|
|
255
|
+
"pt-AO",
|
|
256
|
+
"pt-BR",
|
|
257
|
+
"pt-MZ",
|
|
258
|
+
"pt-PT",
|
|
259
|
+
"ro-RO",
|
|
260
|
+
"ru-RU",
|
|
261
|
+
"sk-SK",
|
|
262
|
+
"sl-SI",
|
|
263
|
+
"sv",
|
|
264
|
+
"ta-IN",
|
|
265
|
+
"tl-PH",
|
|
266
|
+
"uk-UA",
|
|
267
|
+
"zh-CN"
|
|
268
|
+
],
|
|
269
|
+
"markdownDescription": "Mother tongue for additional LTeX rules."
|
|
270
|
+
},
|
|
271
|
+
"ltex.additionalRules.enablePickyRules": {
|
|
272
|
+
"type": "boolean",
|
|
273
|
+
"scope": "resource",
|
|
274
|
+
"default": false,
|
|
275
|
+
"markdownDescription": "Enable picky LanguageTool rules."
|
|
276
|
+
},
|
|
277
|
+
"ltex.additionalRules.languageModel": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"scope": "resource",
|
|
280
|
+
"default": "",
|
|
281
|
+
"markdownDescription": "Path to a LanguageTool n-gram language model directory."
|
|
282
|
+
},
|
|
283
|
+
"ltex.additionalRules.neuralNetworkModel": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"scope": "resource",
|
|
286
|
+
"default": "",
|
|
287
|
+
"markdownDescription": "Path to a LanguageTool neural network model directory."
|
|
288
|
+
},
|
|
289
|
+
"ltex.additionalRules.word2VecModel": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"scope": "resource",
|
|
292
|
+
"default": "",
|
|
293
|
+
"markdownDescription": "Path to a LanguageTool word2vec model directory."
|
|
294
|
+
},
|
|
295
|
+
"ltex.completionEnabled": {
|
|
296
|
+
"type": "boolean",
|
|
297
|
+
"scope": "resource",
|
|
298
|
+
"default": false,
|
|
299
|
+
"markdownDescription": "Enable completion support from ltex-ls-plus."
|
|
300
|
+
},
|
|
301
|
+
"ltex.sentenceCacheSize": {
|
|
302
|
+
"type": "integer",
|
|
303
|
+
"scope": "resource",
|
|
304
|
+
"default": 2000,
|
|
305
|
+
"markdownDescription": "Maximum number of checked sentences cached by ltex-ls-plus."
|
|
306
|
+
},
|
|
307
|
+
"ltex.languageToolHttpServerUri": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"scope": "window",
|
|
310
|
+
"default": "",
|
|
311
|
+
"markdownDescription": "Optional LanguageTool HTTP server URI."
|
|
312
|
+
},
|
|
313
|
+
"ltex.languageToolOrg.username": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"scope": "window",
|
|
316
|
+
"default": "",
|
|
317
|
+
"markdownDescription": "LanguageTool.org username."
|
|
318
|
+
},
|
|
319
|
+
"ltex.languageToolOrg.apiKey": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"scope": "window",
|
|
322
|
+
"default": "",
|
|
323
|
+
"markdownDescription": "LanguageTool.org API key."
|
|
324
|
+
},
|
|
325
|
+
"ltex.ltex-ls.languageToolHttpServerUri": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"scope": "window",
|
|
328
|
+
"default": "",
|
|
329
|
+
"markdownDescription": "Legacy compatibility alias for the LanguageTool HTTP server URI."
|
|
330
|
+
},
|
|
331
|
+
"ltex.ltex-ls.languageToolOrgUsername": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"scope": "window",
|
|
334
|
+
"default": "",
|
|
335
|
+
"markdownDescription": "Legacy compatibility alias for the LanguageTool.org username."
|
|
336
|
+
},
|
|
337
|
+
"ltex.ltex-ls.languageToolOrgApiKey": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"scope": "window",
|
|
340
|
+
"default": "",
|
|
341
|
+
"markdownDescription": "Legacy compatibility alias for the LanguageTool.org API key."
|
|
342
|
+
},
|
|
343
|
+
"ltex.bibtex.fields": {
|
|
344
|
+
"type": "object",
|
|
345
|
+
"scope": "resource",
|
|
346
|
+
"default": {},
|
|
347
|
+
"patternProperties": {
|
|
348
|
+
"^.*$": {
|
|
349
|
+
"type": "boolean"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"additionalProperties": false,
|
|
353
|
+
"examples": [
|
|
354
|
+
{
|
|
355
|
+
"maintitle": false,
|
|
356
|
+
"seealso": true
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
"markdownDescription": "BibTeX fields and whether ltex-ls-plus should check them."
|
|
360
|
+
},
|
|
361
|
+
"ltex.latex.commands": {
|
|
362
|
+
"type": "object",
|
|
363
|
+
"scope": "resource",
|
|
364
|
+
"default": {},
|
|
365
|
+
"patternProperties": {
|
|
366
|
+
"^.*$": {
|
|
367
|
+
"type": "string",
|
|
368
|
+
"enum": [
|
|
369
|
+
"default",
|
|
370
|
+
"ignore",
|
|
371
|
+
"dummy",
|
|
372
|
+
"pluralDummy",
|
|
373
|
+
"vowelDummy"
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"additionalProperties": false,
|
|
378
|
+
"examples": [
|
|
379
|
+
{
|
|
380
|
+
"\\label{}": "ignore",
|
|
381
|
+
"\\documentclass[]{}": "ignore",
|
|
382
|
+
"\\cite{}": "dummy",
|
|
383
|
+
"\\cite[]{}": "dummy"
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
"markdownDescription": "LaTeX commands and how ltex-ls-plus should treat their arguments."
|
|
387
|
+
},
|
|
388
|
+
"ltex.latex.environments": {
|
|
389
|
+
"type": "object",
|
|
390
|
+
"scope": "resource",
|
|
391
|
+
"default": {},
|
|
392
|
+
"patternProperties": {
|
|
393
|
+
"^.*$": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"enum": [
|
|
396
|
+
"default",
|
|
397
|
+
"ignore"
|
|
398
|
+
]
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"additionalProperties": false,
|
|
402
|
+
"markdownDescription": "LaTeX environments and whether ltex-ls-plus should check or ignore them."
|
|
403
|
+
},
|
|
404
|
+
"ltex.markdown.nodes": {
|
|
405
|
+
"type": "object",
|
|
406
|
+
"scope": "resource",
|
|
407
|
+
"default": {},
|
|
408
|
+
"patternProperties": {
|
|
409
|
+
"^.*$": {
|
|
410
|
+
"type": "string",
|
|
411
|
+
"enum": [
|
|
412
|
+
"default",
|
|
413
|
+
"ignore",
|
|
414
|
+
"dummy",
|
|
415
|
+
"pluralDummy",
|
|
416
|
+
"vowelDummy"
|
|
417
|
+
]
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"additionalProperties": false,
|
|
421
|
+
"examples": [
|
|
422
|
+
{
|
|
423
|
+
"CodeBlock": "ignore",
|
|
424
|
+
"FencedCodeBlock": "ignore",
|
|
425
|
+
"AutoLink": "dummy",
|
|
426
|
+
"Code": "dummy"
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"markdownDescription": "Markdown AST node types and how ltex-ls-plus should treat their contents."
|
|
430
|
+
},
|
|
431
|
+
"ltex.diagnosticSeverity": {
|
|
432
|
+
"oneOf": [
|
|
433
|
+
{
|
|
434
|
+
"type": "string",
|
|
435
|
+
"enum": [
|
|
436
|
+
"error",
|
|
437
|
+
"warning",
|
|
438
|
+
"information",
|
|
439
|
+
"hint"
|
|
440
|
+
]
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"type": "object",
|
|
444
|
+
"patternProperties": {
|
|
445
|
+
"^.*$": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"enum": [
|
|
448
|
+
"error",
|
|
449
|
+
"warning",
|
|
450
|
+
"information",
|
|
451
|
+
"hint"
|
|
452
|
+
]
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"required": [
|
|
456
|
+
"default"
|
|
457
|
+
],
|
|
458
|
+
"additionalProperties": false
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"scope": "resource",
|
|
462
|
+
"default": "information",
|
|
463
|
+
"markdownDescription": "Default diagnostic severity or per-rule severity map."
|
|
464
|
+
},
|
|
465
|
+
"ltex.configurationTarget": {
|
|
466
|
+
"type": "object",
|
|
467
|
+
"scope": "resource",
|
|
468
|
+
"default": {
|
|
469
|
+
"dictionary": "workspaceFolderExternalFile",
|
|
470
|
+
"disabledRules": "workspaceFolderExternalFile",
|
|
471
|
+
"hiddenFalsePositives": "workspaceFolderExternalFile"
|
|
472
|
+
},
|
|
473
|
+
"propertyNames": {
|
|
474
|
+
"type": "string",
|
|
475
|
+
"enum": [
|
|
476
|
+
"dictionary",
|
|
477
|
+
"disabledRules",
|
|
478
|
+
"hiddenFalsePositives"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
"properties": {
|
|
482
|
+
"dictionary": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"enum": [
|
|
485
|
+
"user",
|
|
486
|
+
"workspace",
|
|
487
|
+
"workspaceFolder",
|
|
488
|
+
"userExternalFile",
|
|
489
|
+
"workspaceExternalFile",
|
|
490
|
+
"workspaceFolderExternalFile"
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
"disabledRules": {
|
|
494
|
+
"type": "string",
|
|
495
|
+
"enum": [
|
|
496
|
+
"user",
|
|
497
|
+
"workspace",
|
|
498
|
+
"workspaceFolder",
|
|
499
|
+
"userExternalFile",
|
|
500
|
+
"workspaceExternalFile",
|
|
501
|
+
"workspaceFolderExternalFile"
|
|
502
|
+
]
|
|
503
|
+
},
|
|
504
|
+
"hiddenFalsePositives": {
|
|
505
|
+
"type": "string",
|
|
506
|
+
"enum": [
|
|
507
|
+
"user",
|
|
508
|
+
"workspace",
|
|
509
|
+
"workspaceFolder",
|
|
510
|
+
"userExternalFile",
|
|
511
|
+
"workspaceExternalFile",
|
|
512
|
+
"workspaceFolderExternalFile"
|
|
513
|
+
]
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
"additionalProperties": false,
|
|
517
|
+
"markdownDescription": "Where LTEX code actions store dictionary, disabled-rule, and hidden-false-positive entries."
|
|
518
|
+
},
|
|
519
|
+
"ltex.checkFrequency": {
|
|
520
|
+
"type": "string",
|
|
521
|
+
"scope": "window",
|
|
522
|
+
"default": "edit",
|
|
523
|
+
"enum": [
|
|
524
|
+
"edit",
|
|
525
|
+
"save",
|
|
526
|
+
"manual"
|
|
527
|
+
],
|
|
528
|
+
"markdownDescription": "When ltex-ls-plus checks documents."
|
|
529
|
+
},
|
|
530
|
+
"ltex.clearDiagnosticsWhenClosingFile": {
|
|
531
|
+
"type": "boolean",
|
|
532
|
+
"scope": "resource",
|
|
533
|
+
"default": true,
|
|
534
|
+
"markdownDescription": "Clear LTeX diagnostics for a file when its buffer is closed."
|
|
535
|
+
},
|
|
536
|
+
"ltex.statusBarItem": {
|
|
537
|
+
"type": "boolean",
|
|
538
|
+
"scope": "window",
|
|
539
|
+
"default": false,
|
|
540
|
+
"markdownDescription": "Legacy compatibility setting for the old LTEX status bar item."
|
|
541
|
+
},
|
|
542
|
+
"ltex.trace.server": {
|
|
543
|
+
"type": "string",
|
|
544
|
+
"scope": "window",
|
|
545
|
+
"default": "off",
|
|
546
|
+
"enum": [
|
|
547
|
+
"off",
|
|
548
|
+
"messages",
|
|
549
|
+
"verbose"
|
|
550
|
+
],
|
|
551
|
+
"markdownDescription": "Trace communication with ltex-ls-plus."
|
|
552
|
+
},
|
|
553
|
+
"ltex.dictionary": {
|
|
554
|
+
"type": "object",
|
|
555
|
+
"scope": "resource",
|
|
556
|
+
"default": {},
|
|
557
|
+
"additionalProperties": {
|
|
558
|
+
"type": "array",
|
|
559
|
+
"items": {
|
|
560
|
+
"type": "string"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"markdownDescription": "Language-specific accepted words. Entries beginning with `:` reference external files."
|
|
564
|
+
},
|
|
565
|
+
"ltex.dictionary.externalFiles": {
|
|
566
|
+
"type": "array",
|
|
567
|
+
"scope": "resource",
|
|
568
|
+
"default": [],
|
|
569
|
+
"items": {
|
|
570
|
+
"type": "string"
|
|
571
|
+
},
|
|
572
|
+
"markdownDescription": "Additional read-only dictionary files or directories. Files named `default.txt` apply to the current buffer's relevant LTeX language set; files named `<LANG>.txt` apply to that language. Directories load `default.txt`, `<LANG>.txt`, and the same files under a nested `dict/` directory."
|
|
573
|
+
},
|
|
574
|
+
"ltex.dictionary.useSpellFile": {
|
|
575
|
+
"type": "boolean",
|
|
576
|
+
"scope": "resource",
|
|
577
|
+
"default": false,
|
|
578
|
+
"markdownDescription": "Opt in to using Vim/Neovim `spellfile` entries as additional LTeX dictionary words for the current buffer. The extension reads buffer-local `spellfile` and `spelllang` options when ltex-ls-plus requests workspace-specific configuration."
|
|
579
|
+
},
|
|
580
|
+
"ltex.languageFromSpellLang": {
|
|
581
|
+
"type": "boolean",
|
|
582
|
+
"scope": "resource",
|
|
583
|
+
"default": false,
|
|
584
|
+
"markdownDescription": "Opt in to deriving the buffer's LTeX language from Vim/Neovim `spelllang`. The first `spelllang` value that maps to an LTeX language code is sent through workspace-specific configuration for that buffer."
|
|
585
|
+
},
|
|
586
|
+
"ltex.disabledRules": {
|
|
587
|
+
"type": "object",
|
|
588
|
+
"scope": "resource",
|
|
589
|
+
"default": {},
|
|
590
|
+
"additionalProperties": {
|
|
591
|
+
"type": "array",
|
|
592
|
+
"items": {
|
|
593
|
+
"type": "string"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"markdownDescription": "Language-specific disabled LanguageTool rule IDs. Entries beginning with `:` reference external files."
|
|
597
|
+
},
|
|
598
|
+
"ltex.enabledRules": {
|
|
599
|
+
"type": "object",
|
|
600
|
+
"scope": "resource",
|
|
601
|
+
"default": {},
|
|
602
|
+
"additionalProperties": {
|
|
603
|
+
"type": "array",
|
|
604
|
+
"items": {
|
|
605
|
+
"type": "string"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
"markdownDescription": "Language-specific enabled LanguageTool rule IDs. Entries beginning with `:` reference external files."
|
|
609
|
+
},
|
|
610
|
+
"ltex.hiddenFalsePositives": {
|
|
611
|
+
"type": "object",
|
|
612
|
+
"scope": "resource",
|
|
613
|
+
"default": {},
|
|
614
|
+
"additionalProperties": {
|
|
615
|
+
"type": "array",
|
|
616
|
+
"items": {
|
|
617
|
+
"type": "string"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
"markdownDescription": "Language-specific hidden false positives. Entries beginning with `:` reference external files."
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
"commands": [
|
|
625
|
+
{
|
|
626
|
+
"command": "ltex.activateExtension",
|
|
627
|
+
"title": "LTeX+: Activate Extension"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"command": "ltex.restart",
|
|
631
|
+
"title": "LTeX+: Restart Server"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"command": "ltex.resetAndRestart",
|
|
635
|
+
"title": "LTeX+: Reset and Restart"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"command": "ltex.checkCurrentDocument",
|
|
639
|
+
"title": "LTeX+: Check Current Document"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"command": "ltex.checkSelection",
|
|
643
|
+
"title": "LTeX+: Check Selection"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"command": "ltex.checkAllDocumentsInWorkspace",
|
|
647
|
+
"title": "LTeX+: Check All Open Workspace Documents"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"command": "ltex.clearDiagnosticsInCurrentDocument",
|
|
651
|
+
"title": "LTeX+: Clear Diagnostics in Current Document"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"command": "ltex.clearAllDiagnostics",
|
|
655
|
+
"title": "LTeX+: Clear All Diagnostics"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"command": "ltex.toggleDiagnostics",
|
|
659
|
+
"title": "LTeX+: Toggle Diagnostics"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"command": "ltex.showStatusInformation",
|
|
663
|
+
"title": "LTeX+: Show Status Information"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"command": "ltex.serverStatus",
|
|
667
|
+
"title": "LTeX+: Show Server Status"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"command": "ltex.showOutputChannel",
|
|
671
|
+
"title": "LTeX+: Show Output Channel"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"command": "ltex.disableHere",
|
|
675
|
+
"title": "LTeX+: Disable Here"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"command": "ltex.reloadExternalSettings",
|
|
679
|
+
"title": "LTeX+: Reload External Settings"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"command": "ltex.installServer",
|
|
683
|
+
"title": "LTeX+: Install Managed Server"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"command": "ltex.updateServer",
|
|
687
|
+
"title": "LTeX+: Update Managed Server"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"command": "ltex.checkDuplicateServer",
|
|
691
|
+
"title": "LTeX+: Check Duplicate Server Configuration"
|
|
692
|
+
}
|
|
693
|
+
]
|
|
694
|
+
},
|
|
695
|
+
"devDependencies": {
|
|
696
|
+
"coc.nvim": "^0.0.83-next.18",
|
|
697
|
+
"esbuild": "^0.19.8",
|
|
698
|
+
"typescript": "^5.3.3"
|
|
699
|
+
}
|
|
700
|
+
}
|