coc-tinymist 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 +222 -0
- package/lib/index.js +11533 -0
- package/package.json +838 -0
package/package.json
ADDED
|
@@ -0,0 +1,838 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "coc-tinymist",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Typst language support for coc.nvim powered by Tinymist",
|
|
5
|
+
"author": "SeniorMars <cjh16@rice.edu>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "lib/index.js",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"coc.nvim",
|
|
10
|
+
"typst",
|
|
11
|
+
"tinymist"
|
|
12
|
+
],
|
|
13
|
+
"files": [
|
|
14
|
+
"lib",
|
|
15
|
+
"README.md",
|
|
16
|
+
"LICENSE"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"coc": "^0.0.82"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"watch": "node esbuild.mjs --watch",
|
|
23
|
+
"build": "node esbuild.mjs",
|
|
24
|
+
"typecheck": "tsc --noEmit",
|
|
25
|
+
"test": "node esbuild.mjs && node scripts/unit-tests.mjs && node scripts/fetch-timeout-tests.mjs && node scripts/downloader-tests.mjs && node scripts/lifecycle-integration-tests.mjs && node scripts/server-manager-tests.mjs && node scripts/update-manager-tests.mjs && node scripts/export-service-tests.mjs && node scripts/export-automation-tests.mjs && node scripts/mock-coc-host-tests.mjs && node scripts/activation-tests.mjs && node scripts/fake-lsp-smoke.mjs",
|
|
26
|
+
"qa:commands": "node scripts/coc-command-smoke.mjs",
|
|
27
|
+
"qa:lifecycle": "node scripts/lifecycle-integration-tests.mjs",
|
|
28
|
+
"qa:server-manager": "node scripts/server-manager-tests.mjs",
|
|
29
|
+
"qa:update-manager": "node scripts/update-manager-tests.mjs",
|
|
30
|
+
"qa:export-service": "node scripts/export-service-tests.mjs",
|
|
31
|
+
"qa:mock-coc": "node scripts/mock-coc-host-tests.mjs",
|
|
32
|
+
"qa:coc": "node scripts/headless-coc-smoke.mjs",
|
|
33
|
+
"qa:fake-lsp": "node scripts/fake-lsp-smoke.mjs",
|
|
34
|
+
"qa:lsp": "node scripts/lsp-smoke.mjs",
|
|
35
|
+
"prepare": "node esbuild.mjs",
|
|
36
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run qa:commands"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/node-fetch": "^2.6.13",
|
|
40
|
+
"@types/which": "^3.0.4",
|
|
41
|
+
"coc.nvim": "^0.0.83-next.18",
|
|
42
|
+
"esbuild": "^0.28.1",
|
|
43
|
+
"https-proxy-agent": "^7.0.6",
|
|
44
|
+
"node-fetch": "^2.7.0",
|
|
45
|
+
"typescript": "^5.3.3",
|
|
46
|
+
"which": "^4.0.0"
|
|
47
|
+
},
|
|
48
|
+
"activationEvents": [
|
|
49
|
+
"onLanguage:typst",
|
|
50
|
+
"onCommand:tinymist.restartServer",
|
|
51
|
+
"onCommand:tinymist.install",
|
|
52
|
+
"onCommand:tinymist.update",
|
|
53
|
+
"onCommand:tinymist.serverVersion",
|
|
54
|
+
"onCommand:tinymist.doctor",
|
|
55
|
+
"onCommand:tinymist.doctorCopyIssueTemplate",
|
|
56
|
+
"onCommand:tinymist.doctorSaveReport",
|
|
57
|
+
"onCommand:tinymist.checkDuplicateServer",
|
|
58
|
+
"onCommand:tinymist.openConfig",
|
|
59
|
+
"onCommand:tinymist.openWorkspaceConfig",
|
|
60
|
+
"onCommand:tinymist.explainConfig",
|
|
61
|
+
"onCommand:tinymist.migrateConfig",
|
|
62
|
+
"onCommand:tinymist.resetManagedServer",
|
|
63
|
+
"onCommand:tinymist.useSystemServer",
|
|
64
|
+
"onCommand:tinymist.useManagedServer",
|
|
65
|
+
"onCommand:tinymist.useCustomServer",
|
|
66
|
+
"onCommand:tinymist.actions",
|
|
67
|
+
"onCommand:tinymist.export",
|
|
68
|
+
"onCommand:tinymist.exportTo",
|
|
69
|
+
"onCommand:tinymist.exportAndOpen",
|
|
70
|
+
"onCommand:tinymist.exportRepeat",
|
|
71
|
+
"onCommand:tinymist.exportCopyPath",
|
|
72
|
+
"onCommand:tinymist.exportCurrentPdf",
|
|
73
|
+
"onCommand:tinymist.exportCurrentSvg",
|
|
74
|
+
"onCommand:tinymist.exportCurrentPng",
|
|
75
|
+
"onCommand:tinymist.exportCurrentHtml",
|
|
76
|
+
"onCommand:tinymist.exportCurrentMarkdown",
|
|
77
|
+
"onCommand:tinymist.exportCurrentText",
|
|
78
|
+
"onCommand:tinymist.profileCurrentFile",
|
|
79
|
+
"onCommand:tinymist.pinCurrentAsMain",
|
|
80
|
+
"onCommand:tinymist.selectMain",
|
|
81
|
+
"onCommand:tinymist.showMain",
|
|
82
|
+
"onCommand:tinymist.clearMain",
|
|
83
|
+
"onCommand:tinymist.detectMain",
|
|
84
|
+
"onCommand:tinymist.testCurrent",
|
|
85
|
+
"onCommand:tinymist.testWorkspace",
|
|
86
|
+
"onCommand:tinymist.coverageCurrent",
|
|
87
|
+
"onCommand:tinymist.tasks",
|
|
88
|
+
"onCommand:tinymist.taskRerunLast",
|
|
89
|
+
"onCommand:tinymist.taskOpenLastOutput",
|
|
90
|
+
"onCommand:tinymist.taskClearHistory",
|
|
91
|
+
"onCommand:tinymist.taskCancelRunning",
|
|
92
|
+
"onCommand:tinymist.lintToLocationList",
|
|
93
|
+
"onCommand:tinymist.coverageOpenReport",
|
|
94
|
+
"onCommand:tinymist.showStatus",
|
|
95
|
+
"onCommand:tinymist.showLog",
|
|
96
|
+
"onCommand:tinymist.showTemplateGallery",
|
|
97
|
+
"onCommand:tinymist.refreshTemplates",
|
|
98
|
+
"onCommand:tinymist.initTemplate",
|
|
99
|
+
"onCommand:tinymist.initTemplateVersion",
|
|
100
|
+
"onCommand:tinymist.initTemplateInPlace",
|
|
101
|
+
"onCommand:tinymist.onEnter"
|
|
102
|
+
],
|
|
103
|
+
"contributes": {
|
|
104
|
+
"rootPatterns": [
|
|
105
|
+
{
|
|
106
|
+
"filetype": "typst",
|
|
107
|
+
"patterns": [
|
|
108
|
+
"typst.toml",
|
|
109
|
+
"tinymist.toml",
|
|
110
|
+
"tinymist.lock",
|
|
111
|
+
".git"
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"configuration": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"title": "coc-tinymist configuration",
|
|
118
|
+
"properties": {
|
|
119
|
+
"tinymist.enable": {
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"default": true,
|
|
122
|
+
"markdownDescription": "Enable `coc-tinymist`."
|
|
123
|
+
},
|
|
124
|
+
"tinymist.serverPath": {
|
|
125
|
+
"type": [
|
|
126
|
+
"string",
|
|
127
|
+
"null"
|
|
128
|
+
],
|
|
129
|
+
"default": null,
|
|
130
|
+
"markdownDescription": "Path to the `tinymist` executable. When unset, coc-tinymist uses its managed binary or falls back to `tinymist` in `$PATH`."
|
|
131
|
+
},
|
|
132
|
+
"tinymist.serverArgs": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"default": [
|
|
135
|
+
"lsp"
|
|
136
|
+
],
|
|
137
|
+
"items": {
|
|
138
|
+
"type": "string"
|
|
139
|
+
},
|
|
140
|
+
"markdownDescription": "Arguments passed to the Tinymist executable."
|
|
141
|
+
},
|
|
142
|
+
"tinymist.serverExtraEnv": {
|
|
143
|
+
"type": [
|
|
144
|
+
"null",
|
|
145
|
+
"object"
|
|
146
|
+
],
|
|
147
|
+
"default": null,
|
|
148
|
+
"markdownDescription": "Extra environment variables passed to Tinymist."
|
|
149
|
+
},
|
|
150
|
+
"tinymist.restartServerOnConfigChange": {
|
|
151
|
+
"type": "boolean",
|
|
152
|
+
"default": false,
|
|
153
|
+
"markdownDescription": "Restart Tinymist automatically when server process settings change."
|
|
154
|
+
},
|
|
155
|
+
"tinymist.trace.server": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"scope": "window",
|
|
158
|
+
"enum": [
|
|
159
|
+
"off",
|
|
160
|
+
"messages",
|
|
161
|
+
"verbose"
|
|
162
|
+
],
|
|
163
|
+
"default": "off",
|
|
164
|
+
"markdownDescription": "Trace requests to Tinymist."
|
|
165
|
+
},
|
|
166
|
+
"tinymist.updates.mode": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"enum": [
|
|
169
|
+
"prompt",
|
|
170
|
+
"auto",
|
|
171
|
+
"manual",
|
|
172
|
+
"never"
|
|
173
|
+
],
|
|
174
|
+
"default": "prompt",
|
|
175
|
+
"markdownDescription": "How coc-tinymist handles managed Tinymist downloads and updates. `prompt` asks before missing-server install or updates, `auto` downloads automatically, `manual` only updates when `tinymist.update` or `tinymist.install` is run, and `never` disables managed downloads."
|
|
176
|
+
},
|
|
177
|
+
"tinymist.updates.prompt": {
|
|
178
|
+
"type": [
|
|
179
|
+
"boolean",
|
|
180
|
+
"string"
|
|
181
|
+
],
|
|
182
|
+
"enum": [
|
|
183
|
+
true,
|
|
184
|
+
false,
|
|
185
|
+
"neverDownload"
|
|
186
|
+
],
|
|
187
|
+
"default": true,
|
|
188
|
+
"deprecationMessage": "Use `tinymist.updates.mode` instead.",
|
|
189
|
+
"markdownDescription": "Deprecated. Prompt before downloading Tinymist. Use `tinymist.updates.mode` instead."
|
|
190
|
+
},
|
|
191
|
+
"tinymist.updates.checkOnStartup": {
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"default": true,
|
|
194
|
+
"markdownDescription": "Check for managed Tinymist updates on startup."
|
|
195
|
+
},
|
|
196
|
+
"tinymist.projectResolution": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"default": "singleFile",
|
|
199
|
+
"enum": [
|
|
200
|
+
"singleFile",
|
|
201
|
+
"lockDatabase"
|
|
202
|
+
],
|
|
203
|
+
"markdownDescription": "How Tinymist resolves Typst projects. `singleFile` treats the focused document as the project entry; `lockDatabase` uses Tinymist's project lock database."
|
|
204
|
+
},
|
|
205
|
+
"tinymist.syntaxOnly": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"default": "auto",
|
|
208
|
+
"enum": [
|
|
209
|
+
"auto",
|
|
210
|
+
"onPowerSaving",
|
|
211
|
+
"enable",
|
|
212
|
+
"disable"
|
|
213
|
+
],
|
|
214
|
+
"markdownDescription": "Control Tinymist syntax-only mode. Syntax-only mode avoids full compilation and disables some semantic features."
|
|
215
|
+
},
|
|
216
|
+
"tinymist.rootPath": {
|
|
217
|
+
"type": [
|
|
218
|
+
"string",
|
|
219
|
+
"null"
|
|
220
|
+
],
|
|
221
|
+
"default": null,
|
|
222
|
+
"markdownDescription": "Root path for Typst compilation. Relative paths are resolved by Tinymist against the workspace."
|
|
223
|
+
},
|
|
224
|
+
"tinymist.outputPath": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"default": "",
|
|
227
|
+
"markdownDescription": "Output path pattern for Tinymist exports. Empty string uses Tinymist's default output location."
|
|
228
|
+
},
|
|
229
|
+
"tinymist.exportTarget": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"default": "paged",
|
|
232
|
+
"enum": [
|
|
233
|
+
"paged",
|
|
234
|
+
"html",
|
|
235
|
+
"bundle"
|
|
236
|
+
],
|
|
237
|
+
"markdownDescription": "Default Tinymist export target."
|
|
238
|
+
},
|
|
239
|
+
"tinymist.exportPdf": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"default": "never",
|
|
242
|
+
"enum": [
|
|
243
|
+
"never",
|
|
244
|
+
"onSave",
|
|
245
|
+
"onType",
|
|
246
|
+
"onDocumentHasTitle"
|
|
247
|
+
],
|
|
248
|
+
"markdownDescription": "When Tinymist should automatically export PDF output."
|
|
249
|
+
},
|
|
250
|
+
"tinymist.exportOnSave": {
|
|
251
|
+
"oneOf": [
|
|
252
|
+
{
|
|
253
|
+
"type": "boolean"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"type": "string",
|
|
257
|
+
"enum": [
|
|
258
|
+
"Pdf",
|
|
259
|
+
"Svg",
|
|
260
|
+
"Png",
|
|
261
|
+
"Html",
|
|
262
|
+
"Markdown",
|
|
263
|
+
"Text"
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"type": "array",
|
|
268
|
+
"items": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"enum": [
|
|
271
|
+
"Pdf",
|
|
272
|
+
"Svg",
|
|
273
|
+
"Png",
|
|
274
|
+
"Html",
|
|
275
|
+
"Markdown",
|
|
276
|
+
"Text"
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
"default": [],
|
|
282
|
+
"markdownDescription": "Extension-side automatic exports on document save. Use `false`/`[]` to disable, `true` for PDF, a single format such as `Pdf`, or an array such as `[\"Pdf\", \"Html\"]`."
|
|
283
|
+
},
|
|
284
|
+
"tinymist.exportOnType": {
|
|
285
|
+
"oneOf": [
|
|
286
|
+
{
|
|
287
|
+
"type": "boolean"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "string",
|
|
291
|
+
"enum": [
|
|
292
|
+
"Pdf",
|
|
293
|
+
"Svg",
|
|
294
|
+
"Png",
|
|
295
|
+
"Html",
|
|
296
|
+
"Markdown",
|
|
297
|
+
"Text"
|
|
298
|
+
]
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "array",
|
|
302
|
+
"items": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"enum": [
|
|
305
|
+
"Pdf",
|
|
306
|
+
"Svg",
|
|
307
|
+
"Png",
|
|
308
|
+
"Html",
|
|
309
|
+
"Markdown",
|
|
310
|
+
"Text"
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"default": [],
|
|
316
|
+
"markdownDescription": "Extension-side automatic exports after typing changes, debounced by coc-tinymist. Use sparingly for expensive formats."
|
|
317
|
+
},
|
|
318
|
+
"tinymist.exportOnIdle": {
|
|
319
|
+
"oneOf": [
|
|
320
|
+
{
|
|
321
|
+
"type": "boolean"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"type": "string",
|
|
325
|
+
"enum": [
|
|
326
|
+
"Pdf",
|
|
327
|
+
"Svg",
|
|
328
|
+
"Png",
|
|
329
|
+
"Html",
|
|
330
|
+
"Markdown",
|
|
331
|
+
"Text"
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"type": "array",
|
|
336
|
+
"items": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"enum": [
|
|
339
|
+
"Pdf",
|
|
340
|
+
"Svg",
|
|
341
|
+
"Png",
|
|
342
|
+
"Html",
|
|
343
|
+
"Markdown",
|
|
344
|
+
"Text"
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"default": [],
|
|
350
|
+
"markdownDescription": "Extension-side automatic exports after the document has been idle for a short delay. Use `true` for PDF or provide one or more formats."
|
|
351
|
+
},
|
|
352
|
+
"tinymist.exportOpenAfterSave": {
|
|
353
|
+
"type": "boolean",
|
|
354
|
+
"default": false,
|
|
355
|
+
"markdownDescription": "Open the first artifact after a successful coc-tinymist save-triggered automatic export."
|
|
356
|
+
},
|
|
357
|
+
"tinymist.exportOutputDirectory": {
|
|
358
|
+
"type": [
|
|
359
|
+
"string",
|
|
360
|
+
"null"
|
|
361
|
+
],
|
|
362
|
+
"default": null,
|
|
363
|
+
"markdownDescription": "Directory used by coc-tinymist automatic exports. Relative paths are resolved against the source file's workspace root. When unset, Tinymist's default output path is used."
|
|
364
|
+
},
|
|
365
|
+
"tinymist.exportShowIn": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"default": "message",
|
|
368
|
+
"enum": [
|
|
369
|
+
"none",
|
|
370
|
+
"message",
|
|
371
|
+
"output",
|
|
372
|
+
"quickfix",
|
|
373
|
+
"open"
|
|
374
|
+
],
|
|
375
|
+
"markdownDescription": "Where coc-tinymist automatic export results are shown."
|
|
376
|
+
},
|
|
377
|
+
"tinymist.mainFile.store": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"default": "workspaceState",
|
|
380
|
+
"enum": [
|
|
381
|
+
"workspaceState",
|
|
382
|
+
"none"
|
|
383
|
+
],
|
|
384
|
+
"markdownDescription": "Where coc-tinymist stores the pinned Tinymist main document. Use `workspaceState` to persist per workspace, or `none` for in-memory only."
|
|
385
|
+
},
|
|
386
|
+
"tinymist.tasks.workspaceFileLimit": {
|
|
387
|
+
"type": "number",
|
|
388
|
+
"default": 100,
|
|
389
|
+
"minimum": 1,
|
|
390
|
+
"markdownDescription": "Maximum number of `.typ` files coc-tinymist will run in a workspace test command."
|
|
391
|
+
},
|
|
392
|
+
"tinymist.tasks.workspaceTimeoutMs": {
|
|
393
|
+
"type": "number",
|
|
394
|
+
"default": 120000,
|
|
395
|
+
"minimum": 1000,
|
|
396
|
+
"markdownDescription": "Maximum total duration, in milliseconds, for coc-tinymist workspace task commands."
|
|
397
|
+
},
|
|
398
|
+
"tinymist.tasks.fileTimeoutMs": {
|
|
399
|
+
"type": "number",
|
|
400
|
+
"default": 30000,
|
|
401
|
+
"minimum": 1000,
|
|
402
|
+
"markdownDescription": "Maximum duration, in milliseconds, for each file subprocess in a workspace task."
|
|
403
|
+
},
|
|
404
|
+
"tinymist.tasks.maxOutputBytes": {
|
|
405
|
+
"type": "number",
|
|
406
|
+
"default": 1048576,
|
|
407
|
+
"minimum": 1024,
|
|
408
|
+
"markdownDescription": "Maximum stdout/stderr bytes captured per stream for Tinymist CLI-backed tasks."
|
|
409
|
+
},
|
|
410
|
+
"tinymist.tasks.progressIntervalMs": {
|
|
411
|
+
"type": "number",
|
|
412
|
+
"default": 2000,
|
|
413
|
+
"minimum": 0,
|
|
414
|
+
"markdownDescription": "Minimum interval, in milliseconds, between workspace task progress updates in the Tinymist output channel. Set to `0` to append only per-file command lines."
|
|
415
|
+
},
|
|
416
|
+
"tinymist.commands.exportTimeoutMs": {
|
|
417
|
+
"type": "number",
|
|
418
|
+
"default": 120000,
|
|
419
|
+
"minimum": 1000,
|
|
420
|
+
"markdownDescription": "Maximum duration, in milliseconds, for Tinymist export `workspace/executeCommand` requests."
|
|
421
|
+
},
|
|
422
|
+
"tinymist.commands.profileTimeoutMs": {
|
|
423
|
+
"type": "number",
|
|
424
|
+
"default": 120000,
|
|
425
|
+
"minimum": 1000,
|
|
426
|
+
"markdownDescription": "Maximum duration, in milliseconds, for Tinymist profile `workspace/executeCommand` requests."
|
|
427
|
+
},
|
|
428
|
+
"tinymist.commands.templateTimeoutMs": {
|
|
429
|
+
"type": "number",
|
|
430
|
+
"default": 60000,
|
|
431
|
+
"minimum": 1000,
|
|
432
|
+
"markdownDescription": "Maximum duration, in milliseconds, for Tinymist template `workspace/executeCommand` requests."
|
|
433
|
+
},
|
|
434
|
+
"tinymist.typstExtraArgs": {
|
|
435
|
+
"type": "array",
|
|
436
|
+
"default": [],
|
|
437
|
+
"items": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
"markdownDescription": "Additional Typst CLI-shaped arguments parsed by Tinymist, such as `--input`, `--features=html`, `--root`, `--font-path`, `--ignore-system-fonts`, package paths, or a final entry file. Dedicated settings such as `tinymist.rootPath`, `tinymist.fontPaths`, and `tinymist.systemFonts` take precedence."
|
|
441
|
+
},
|
|
442
|
+
"tinymist.systemFonts": {
|
|
443
|
+
"type": "boolean",
|
|
444
|
+
"default": true,
|
|
445
|
+
"markdownDescription": "Whether Tinymist loads system fonts for its shared Typst compiler environment. Set to `false` with explicit `tinymist.fontPaths` for reproducible builds."
|
|
446
|
+
},
|
|
447
|
+
"tinymist.fontPaths": {
|
|
448
|
+
"type": [
|
|
449
|
+
"array",
|
|
450
|
+
"null"
|
|
451
|
+
],
|
|
452
|
+
"default": null,
|
|
453
|
+
"items": {
|
|
454
|
+
"type": "string"
|
|
455
|
+
},
|
|
456
|
+
"markdownDescription": "Font files or directories to add to Tinymist's shared compiler environment. Relative paths are resolved by Tinymist against the root directory."
|
|
457
|
+
},
|
|
458
|
+
"tinymist.formatterMode": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"default": "typstyle",
|
|
461
|
+
"enum": [
|
|
462
|
+
"disable",
|
|
463
|
+
"typstyle",
|
|
464
|
+
"typstfmt"
|
|
465
|
+
],
|
|
466
|
+
"markdownDescription": "Tinymist formatter backend."
|
|
467
|
+
},
|
|
468
|
+
"tinymist.formatterPrintWidth": {
|
|
469
|
+
"type": "number",
|
|
470
|
+
"default": 120,
|
|
471
|
+
"markdownDescription": "Soft print-width limit used by Tinymist formatters."
|
|
472
|
+
},
|
|
473
|
+
"tinymist.formatterIndentSize": {
|
|
474
|
+
"type": "number",
|
|
475
|
+
"default": 2,
|
|
476
|
+
"markdownDescription": "Indent size, in spaces, used by Tinymist formatters."
|
|
477
|
+
},
|
|
478
|
+
"tinymist.formatterProseWrap": {
|
|
479
|
+
"type": "boolean",
|
|
480
|
+
"default": false,
|
|
481
|
+
"markdownDescription": "Whether Tinymist formatters should hard-wrap prose at the configured print width."
|
|
482
|
+
},
|
|
483
|
+
"tinymist.semanticTokens": {
|
|
484
|
+
"type": "string",
|
|
485
|
+
"default": "enable",
|
|
486
|
+
"enum": [
|
|
487
|
+
"enable",
|
|
488
|
+
"disable"
|
|
489
|
+
],
|
|
490
|
+
"markdownDescription": "Enable or disable Tinymist semantic token data. Visible highlighting also requires Coc's `semanticTokens.enable` setting."
|
|
491
|
+
},
|
|
492
|
+
"tinymist.inlayHints.packageVersionStatus": {
|
|
493
|
+
"type": "boolean",
|
|
494
|
+
"default": true,
|
|
495
|
+
"markdownDescription": "Show Tinymist inlay hints for package version status when Coc inlay hints are enabled."
|
|
496
|
+
},
|
|
497
|
+
"tinymist.cocFallbackDocumentHighlight": {
|
|
498
|
+
"type": "boolean",
|
|
499
|
+
"default": true,
|
|
500
|
+
"markdownDescription": "Enable coc-tinymist's conditional document-highlight fallback for exact Typst symbol occurrences when Tinymist returns no highlights."
|
|
501
|
+
},
|
|
502
|
+
"tinymist.cocFallbackInlayHints": {
|
|
503
|
+
"type": "boolean",
|
|
504
|
+
"default": false,
|
|
505
|
+
"markdownDescription": "Enable coc-tinymist's opt-in inlay hint fallback for simple local Typst function parameter names. This provider is additive to Tinymist's inlay hints."
|
|
506
|
+
},
|
|
507
|
+
"tinymist.fallback.maxFileBytes": {
|
|
508
|
+
"type": "number",
|
|
509
|
+
"default": 524288,
|
|
510
|
+
"minimum": 1024,
|
|
511
|
+
"markdownDescription": "Maximum Typst document size, in bytes, for Coc-side fallback parsing. Larger documents skip fallback highlights and inlay hints."
|
|
512
|
+
},
|
|
513
|
+
"tinymist.fallback.maxHighlights": {
|
|
514
|
+
"type": "number",
|
|
515
|
+
"default": 500,
|
|
516
|
+
"minimum": 1,
|
|
517
|
+
"markdownDescription": "Maximum number of Coc-side fallback document highlights returned for one request."
|
|
518
|
+
},
|
|
519
|
+
"tinymist.fallback.maxInlayHints": {
|
|
520
|
+
"type": "number",
|
|
521
|
+
"default": 500,
|
|
522
|
+
"minimum": 1,
|
|
523
|
+
"markdownDescription": "Maximum number of Coc-side fallback inlay hints returned for one request."
|
|
524
|
+
},
|
|
525
|
+
"tinymist.lint.enabled": {
|
|
526
|
+
"type": "boolean",
|
|
527
|
+
"default": false,
|
|
528
|
+
"markdownDescription": "Enable Tinymist lint checks. Restarting the language server may be required."
|
|
529
|
+
},
|
|
530
|
+
"tinymist.lint.when": {
|
|
531
|
+
"type": "string",
|
|
532
|
+
"default": "onSave",
|
|
533
|
+
"enum": [
|
|
534
|
+
"onSave",
|
|
535
|
+
"onType"
|
|
536
|
+
],
|
|
537
|
+
"markdownDescription": "When Tinymist should run lint checks."
|
|
538
|
+
},
|
|
539
|
+
"tinymist.typingContinueCommentsOnNewline": {
|
|
540
|
+
"type": "boolean",
|
|
541
|
+
"default": true,
|
|
542
|
+
"markdownDescription": "Continue Typst line/doc comments when typing a newline. This is used by Coc-side Enter handling through Tinymist `experimental/onEnter`."
|
|
543
|
+
},
|
|
544
|
+
"tinymist.onEnterEvent": {
|
|
545
|
+
"type": "boolean",
|
|
546
|
+
"default": false,
|
|
547
|
+
"markdownDescription": "Enable Coc-side Enter handling through Tinymist `experimental/onEnter` for comments and equations. Disabled by default because it overrides insert-mode Enter."
|
|
548
|
+
},
|
|
549
|
+
"tinymist.compileStatus": {
|
|
550
|
+
"type": "string",
|
|
551
|
+
"default": "disable",
|
|
552
|
+
"enum": [
|
|
553
|
+
"enable",
|
|
554
|
+
"disable"
|
|
555
|
+
],
|
|
556
|
+
"markdownDescription": "Enable Tinymist compile status notifications and the coc-tinymist status bar item."
|
|
557
|
+
},
|
|
558
|
+
"tinymist.statusBarFormat": {
|
|
559
|
+
"type": "string",
|
|
560
|
+
"default": "{compileStatusIcon} {wordCount} [{fileName}]",
|
|
561
|
+
"markdownDescription": "Format string for the Tinymist status bar. Supported placeholders: `{compileStatusIcon}`, `{compileStatus}`, `{wordCount}`, `{charCount}`, `{spaceCount}`, `{cjkCharCount}`, `{pageCount}`, `{fileName}`, `{file}`, `{filePath}`. Set this to an empty string to hide the item."
|
|
562
|
+
},
|
|
563
|
+
"tinymist.markdown.isTrusted": {
|
|
564
|
+
"type": "boolean",
|
|
565
|
+
"default": false,
|
|
566
|
+
"markdownDescription": "Trust Markdown returned by Tinymist. Keep disabled unless you explicitly want command links in server-provided Markdown to be executable."
|
|
567
|
+
},
|
|
568
|
+
"tinymist.markdown.supportHtml": {
|
|
569
|
+
"type": "boolean",
|
|
570
|
+
"default": false,
|
|
571
|
+
"markdownDescription": "Render raw HTML in Markdown returned by Tinymist. Keep disabled unless you trust documentation generated from the current project and installed packages."
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
"commands": [
|
|
576
|
+
{
|
|
577
|
+
"command": "tinymist.restartServer",
|
|
578
|
+
"title": "Restart Tinymist language server",
|
|
579
|
+
"category": "Tinymist"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"command": "tinymist.install",
|
|
583
|
+
"title": "Install Tinymist language server",
|
|
584
|
+
"category": "Tinymist"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"command": "tinymist.update",
|
|
588
|
+
"title": "Update Tinymist language server",
|
|
589
|
+
"category": "Tinymist"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"command": "tinymist.serverVersion",
|
|
593
|
+
"title": "Show Tinymist language server version",
|
|
594
|
+
"category": "Tinymist"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"command": "tinymist.doctor",
|
|
598
|
+
"title": "Show Tinymist doctor report",
|
|
599
|
+
"category": "Tinymist"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"command": "tinymist.doctorCopyIssueTemplate",
|
|
603
|
+
"title": "Copy sanitized Tinymist issue report",
|
|
604
|
+
"category": "Tinymist"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"command": "tinymist.doctorSaveReport",
|
|
608
|
+
"title": "Save sanitized Tinymist doctor report",
|
|
609
|
+
"category": "Tinymist"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"command": "tinymist.checkDuplicateServer",
|
|
613
|
+
"title": "Check for duplicate Tinymist language server config",
|
|
614
|
+
"category": "Tinymist"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"command": "tinymist.openConfig",
|
|
618
|
+
"title": "Open Tinymist user configuration",
|
|
619
|
+
"category": "Tinymist"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"command": "tinymist.openWorkspaceConfig",
|
|
623
|
+
"title": "Open Tinymist workspace configuration",
|
|
624
|
+
"category": "Tinymist"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"command": "tinymist.explainConfig",
|
|
628
|
+
"title": "Explain resolved Tinymist configuration",
|
|
629
|
+
"category": "Tinymist"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"command": "tinymist.migrateConfig",
|
|
633
|
+
"title": "Migrate legacy Tinymist configuration",
|
|
634
|
+
"category": "Tinymist"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"command": "tinymist.resetManagedServer",
|
|
638
|
+
"title": "Reset managed Tinymist server",
|
|
639
|
+
"category": "Tinymist"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"command": "tinymist.useSystemServer",
|
|
643
|
+
"title": "Use system Tinymist server",
|
|
644
|
+
"category": "Tinymist"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"command": "tinymist.useManagedServer",
|
|
648
|
+
"title": "Use managed Tinymist server",
|
|
649
|
+
"category": "Tinymist"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"command": "tinymist.useCustomServer",
|
|
653
|
+
"title": "Use custom Tinymist server",
|
|
654
|
+
"category": "Tinymist"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"command": "tinymist.actions",
|
|
658
|
+
"title": "Show Tinymist actions",
|
|
659
|
+
"category": "Tinymist"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"command": "tinymist.export",
|
|
663
|
+
"title": "Export current Typst document",
|
|
664
|
+
"category": "Tinymist"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"command": "tinymist.exportTo",
|
|
668
|
+
"title": "Export current Typst document to path",
|
|
669
|
+
"category": "Tinymist"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"command": "tinymist.exportAndOpen",
|
|
673
|
+
"title": "Export current Typst document and open result",
|
|
674
|
+
"category": "Tinymist"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"command": "tinymist.exportRepeat",
|
|
678
|
+
"title": "Repeat last Tinymist export",
|
|
679
|
+
"category": "Tinymist"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"command": "tinymist.exportCopyPath",
|
|
683
|
+
"title": "Copy last Tinymist export path",
|
|
684
|
+
"category": "Tinymist"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"command": "tinymist.exportCurrentPdf",
|
|
688
|
+
"title": "Export current Typst document as PDF",
|
|
689
|
+
"category": "Tinymist"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"command": "tinymist.exportCurrentSvg",
|
|
693
|
+
"title": "Export current Typst document as SVG",
|
|
694
|
+
"category": "Tinymist"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"command": "tinymist.exportCurrentPng",
|
|
698
|
+
"title": "Export current Typst document as PNG",
|
|
699
|
+
"category": "Tinymist"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"command": "tinymist.exportCurrentHtml",
|
|
703
|
+
"title": "Export current Typst document as HTML",
|
|
704
|
+
"category": "Tinymist"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"command": "tinymist.exportCurrentMarkdown",
|
|
708
|
+
"title": "Export current Typst document as Markdown",
|
|
709
|
+
"category": "Tinymist"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"command": "tinymist.exportCurrentText",
|
|
713
|
+
"title": "Export current Typst document as text",
|
|
714
|
+
"category": "Tinymist"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"command": "tinymist.profileCurrentFile",
|
|
718
|
+
"title": "Profile current Typst document",
|
|
719
|
+
"category": "Tinymist"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"command": "tinymist.pinCurrentAsMain",
|
|
723
|
+
"title": "Pin current Typst document as main",
|
|
724
|
+
"category": "Tinymist"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"command": "tinymist.selectMain",
|
|
728
|
+
"title": "Select Tinymist main document",
|
|
729
|
+
"category": "Tinymist"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"command": "tinymist.showMain",
|
|
733
|
+
"title": "Show Tinymist main document",
|
|
734
|
+
"category": "Tinymist"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"command": "tinymist.clearMain",
|
|
738
|
+
"title": "Clear pinned Tinymist main document",
|
|
739
|
+
"category": "Tinymist"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"command": "tinymist.detectMain",
|
|
743
|
+
"title": "Detect Tinymist main document",
|
|
744
|
+
"category": "Tinymist"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"command": "tinymist.testCurrent",
|
|
748
|
+
"title": "Run Tinymist tests for current file",
|
|
749
|
+
"category": "Tinymist"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"command": "tinymist.testWorkspace",
|
|
753
|
+
"title": "Run Tinymist tests for workspace",
|
|
754
|
+
"category": "Tinymist"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"command": "tinymist.coverageCurrent",
|
|
758
|
+
"title": "Collect Tinymist coverage for current file",
|
|
759
|
+
"category": "Tinymist"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"command": "tinymist.tasks",
|
|
763
|
+
"title": "Show Tinymist tasks",
|
|
764
|
+
"category": "Tinymist"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"command": "tinymist.taskRerunLast",
|
|
768
|
+
"title": "Rerun last Tinymist task",
|
|
769
|
+
"category": "Tinymist"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"command": "tinymist.taskOpenLastOutput",
|
|
773
|
+
"title": "Open last Tinymist task output",
|
|
774
|
+
"category": "Tinymist"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
"command": "tinymist.taskClearHistory",
|
|
778
|
+
"title": "Clear Tinymist task history",
|
|
779
|
+
"category": "Tinymist"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"command": "tinymist.taskCancelRunning",
|
|
783
|
+
"title": "Cancel running Tinymist tasks",
|
|
784
|
+
"category": "Tinymist"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"command": "tinymist.lintToLocationList",
|
|
788
|
+
"title": "Send Tinymist diagnostics to location list",
|
|
789
|
+
"category": "Tinymist"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"command": "tinymist.coverageOpenReport",
|
|
793
|
+
"title": "Open Tinymist coverage report",
|
|
794
|
+
"category": "Tinymist"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"command": "tinymist.showStatus",
|
|
798
|
+
"title": "Show Tinymist status details",
|
|
799
|
+
"category": "Tinymist"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"command": "tinymist.showLog",
|
|
803
|
+
"title": "Show Tinymist language server log",
|
|
804
|
+
"category": "Tinymist"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"command": "tinymist.showTemplateGallery",
|
|
808
|
+
"title": "Show Typst template gallery",
|
|
809
|
+
"category": "Tinymist"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"command": "tinymist.refreshTemplates",
|
|
813
|
+
"title": "Refresh Typst template gallery cache",
|
|
814
|
+
"category": "Tinymist"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"command": "tinymist.initTemplate",
|
|
818
|
+
"title": "Initialize Typst template",
|
|
819
|
+
"category": "Tinymist"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"command": "tinymist.initTemplateVersion",
|
|
823
|
+
"title": "Initialize a specific Typst template version",
|
|
824
|
+
"category": "Tinymist"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"command": "tinymist.initTemplateInPlace",
|
|
828
|
+
"title": "Insert Typst template entry in place",
|
|
829
|
+
"category": "Tinymist"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"command": "tinymist.onEnter",
|
|
833
|
+
"title": "Run Tinymist on-enter handling",
|
|
834
|
+
"category": "Tinymist"
|
|
835
|
+
}
|
|
836
|
+
]
|
|
837
|
+
}
|
|
838
|
+
}
|