-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpackage.json
More file actions
148 lines (148 loc) · 5.02 KB
/
Copy pathpackage.json
File metadata and controls
148 lines (148 loc) · 5.02 KB
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
{
"name": "vscode-ox-content",
"version": "2.81.0",
"private": true,
"description": "VS Code extension for Ox Content authoring and i18n workflows",
"categories": [
"Formatters",
"Programming Languages",
"Snippets"
],
"homepage": "https://github.com/ubugeeei-prod/ox-content/tree/main/npm/vscode-ox-content",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ubugeeei-prod/ox-content.git",
"directory": "npm/vscode-ox-content"
},
"publisher": "ubugeeei",
"files": [
"bin",
"dist/*.js",
"dist/internal/*.js",
"snippets",
"README.md",
"PUBLISHING.md",
"LICENSE"
],
"main": "./dist/extension.js",
"scripts": {
"build": "tsc -p tsconfig.json",
"clean": "rm -rf dist",
"pretest": "tsc -p tsconfig.json",
"test": "vscode-test",
"test:unit": "vp test src/test/unit"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "catalog:",
"@types/vscode": "^1.125.0",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.1.0",
"mocha": "^11.7.6",
"typescript": "catalog:",
"vitest": "catalog:",
"vscode-languageclient": "^10.1.0"
},
"contributes": {
"commands": [
{
"command": "oxContent.insertTable",
"title": "Ox Content: Insert Table",
"category": "Ox Content"
},
{
"command": "oxContent.insertCodeFence",
"title": "Ox Content: Insert Code Fence",
"category": "Ox Content"
},
{
"command": "oxContent.insertCallout",
"title": "Ox Content: Insert Callout",
"category": "Ox Content"
},
{
"command": "oxContent.openPreview",
"title": "Ox Content: Open Preview",
"category": "Ox Content"
}
],
"configuration": {
"title": "Ox Content",
"properties": {
"oxContent.server.path": {
"type": "string",
"default": "",
"markdownDescription": "Absolute or workspace-relative path to `ox-content-lsp`. When empty, the extension looks in `target/debug`, `target/release`, then falls back to `cargo run`."
},
"oxContent.frontmatter.schema": {
"type": "string",
"default": "",
"markdownDescription": "Optional absolute or workspace-relative path to the frontmatter schema file used for Markdown and `.mdc` frontmatter completion and diagnostics."
},
"oxContent.preview.autoRefresh": {
"type": "boolean",
"default": true,
"description": "Automatically refresh the Ox Content preview when the document changes."
},
"oxContent.textlint.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Run [textlint](https://textlint.github.io) on Markdown / `.mdc` files on save and surface its findings as diagnostics. Off by default because textlint is heavy and noisy for projects that don't use it."
},
"oxContent.textlint.command": {
"type": "string",
"default": "",
"markdownDescription": "Optional shell command used to invoke textlint. Empty falls back to `npx textlint`. Example: `pnpm exec textlint` or `/usr/local/bin/textlint`."
},
"oxContent.mdc.components": {
"type": "string",
"default": "",
"markdownDescription": "Optional absolute or workspace-relative path to the MDC component registry JSON file. The registry powers component name and attribute completion inside `.md` / `.mdc` files."
},
"oxContent.spacing.betweenHalfAndFullWidth": {
"type": "string",
"enum": [
"forbid",
"require",
"off"
],
"default": "forbid",
"markdownDescription": "Controls spaces between half-width ASCII text and full-width CJK text in Markdown / `.mdc` files. `forbid` reports existing spaces and fixes by removing them. `require` reports missing spaces and fixes by inserting one. `off` disables the built-in rule."
},
"oxContent.spacing.autoFixOnSave": {
"type": "boolean",
"default": false,
"markdownDescription": "Opt-in save-time formatting for built-in Ox Content spacing fixes. When true, the language server returns spacing edits from `textDocument/willSaveWaitUntil`, including VS Code auto save."
}
}
},
"configurationDefaults": {
"files.associations": {
"*.mdc": "markdown"
}
},
"snippets": [
{
"language": "markdown",
"path": "./snippets/markdown.json"
}
]
},
"activationEvents": [
"onCommand:oxContent.insertCallout",
"onCommand:oxContent.insertCodeFence",
"onCommand:oxContent.insertTable",
"onCommand:oxContent.openPreview",
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:json",
"onLanguage:markdown",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:yaml"
],
"engines": {
"vscode": "^1.120.0"
}
}