-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
221 lines (221 loc) · 7.67 KB
/
Copy pathpackage.json
File metadata and controls
221 lines (221 loc) · 7.67 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
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
{
"name": "mdsmith",
"displayName": "mdsmith — Markdown linter, formatter & data extractor",
"description": "Keep your Markdown neat and consistent: inline diagnostics with lightbulb quick fixes, fix-on-save, cross-file link and anchor integrity, generated TOCs / catalogs / includes, frontmatter schemas, and a bundled CLI that extracts Markdown sections as JSON or YAML. The .vsix bundles the mdsmith binary, so no separate install is needed.",
"version": "0.0.0-dev",
"publisher": "jeduden",
"license": "MIT",
"icon": "icon.png",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Linters",
"Formatters",
"Programming Languages"
],
"keywords": [
"markdown",
"linter",
"formatter",
"lint",
"format",
"style",
"auto-fix",
"fix-on-save",
"markdownlint",
"mdsmith",
"language-server",
"lsp",
"toc",
"table-of-contents",
"frontmatter",
"yaml",
"schema",
"link-checker",
"broken-links",
"markdown-to-json",
"extract",
"rename",
"refactor",
"docs"
],
"homepage": "https://mdsmith.dev",
"repository": {
"type": "git",
"url": "https://github.com/jeduden/mdsmith"
},
"bugs": {
"url": "https://github.com/jeduden/mdsmith/issues"
},
"main": "./dist/extension.js",
"activationEvents": [
"onLanguage:markdown",
"onCommand:mdsmith.restartServer",
"onCommand:mdsmith.showOutput",
"onCommand:mdsmith.init",
"onCommand:mdsmith.mergeDriver.install",
"onCommand:mdsmith.fixWorkspace",
"onCommand:mdsmith.kinds.why",
"onCommand:mdsmith.kinds.resolve"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Diagnostics work in restricted mode. Commands that modify files outside the editor are disabled until the workspace is trusted.",
"restrictedConfigurations": [
"mdsmith.path",
"mdsmith.config"
]
}
},
"contributes": {
"commands": [
{
"command": "mdsmith.restartServer",
"title": "Restart Language Server",
"category": "mdsmith"
},
{
"command": "mdsmith.showOutput",
"title": "Show Output Channel",
"category": "mdsmith"
},
{
"command": "mdsmith.init",
"title": "Initialize Config",
"category": "mdsmith"
},
{
"command": "mdsmith.mergeDriver.install",
"title": "Install Git Merge Driver",
"category": "mdsmith"
},
{
"command": "mdsmith.fixWorkspace",
"title": "Fix All Markdown",
"category": "mdsmith"
},
{
"command": "mdsmith.kinds.why",
"title": "Explain Rule on This File",
"category": "mdsmith"
},
{
"command": "mdsmith.kinds.resolve",
"title": "Show Resolved Config",
"category": "mdsmith"
}
],
"menus": {
"commandPalette": [
{
"command": "mdsmith.init",
"when": "isWorkspaceTrusted"
},
{
"command": "mdsmith.mergeDriver.install",
"when": "isWorkspaceTrusted"
},
{
"command": "mdsmith.fixWorkspace",
"when": "isWorkspaceTrusted"
},
{
"command": "mdsmith.kinds.why",
"when": "editorLangId == markdown && resourceScheme == file"
},
{
"command": "mdsmith.kinds.resolve",
"when": "editorLangId == markdown && resourceScheme == file"
}
]
},
"configuration": {
"title": "mdsmith",
"properties": {
"mdsmith.path": {
"type": "string",
"default": "mdsmith",
"description": "Path to the mdsmith binary. Leave as the default and the extension runs the bundled binary for your platform (the .vsix ships one for every supported OS/arch and selects yours at startup). Falls back to resolving 'mdsmith' on PATH only if your platform was not bundled. Set an absolute path to override (e.g. /go/bin/mdsmith)."
},
"mdsmith.config": {
"type": "string",
"default": "",
"description": "Override the .mdsmith.yml path (-c). Empty defers to the auto-discovered config."
},
"mdsmith.run": {
"type": "string",
"enum": [
"onType",
"onSave",
"off"
],
"enumDescriptions": [
"Re-lint on every keystroke (debounced). Live diagnostics as you type.",
"Re-lint only when the file is saved.",
"Stop automatic linting: no diagnostics. Explicit quick fixes still work when invoked."
],
"default": "onType",
"description": "When mdsmith lints. `onType` (default) re-lints on each keystroke (debounced); `onSave` re-lints only on save; `off` stops automatic linting (no diagnostics; explicit quick fixes still work). Fix-on-save is configured separately, via `editor.codeActionsOnSave`."
},
"mdsmith.previewFix": {
"type": "boolean",
"default": false,
"description": "Show the diff before applying fix-on-save. When on, the `source.fixAll.mdsmith` action (including fix-on-save wired through `editor.codeActionsOnSave`) routes through VS Code's Refactor Preview pane so you can inspect and confirm the diff before it is written. Interactive lightbulb quick fixes always apply immediately — use VS Code's built-in lightbulb Preview (the chevron / Ctrl+Enter) to preview a single fix. Requires a client that advertises both documentChanges and changeAnnotationSupport (VS Code 1.85+). Leave off to apply fix-on-save immediately."
},
"mdsmith.fixOnSave": {
"type": "boolean",
"default": false,
"description": "Former fix-on-save toggle. Deprecated — fix-on-save is now configured via editor.codeActionsOnSave with source.fixAll.mdsmith.",
"deprecationMessage": "Deprecated. Fix-on-save now uses editor.codeActionsOnSave with source.fixAll.mdsmith (the same way ESLint uses source.fixAll.eslint). mdsmith.previewFix controls whether the diff is shown first.",
"markdownDeprecationMessage": "**Deprecated.** Fix-on-save now uses VS Code's native `editor.codeActionsOnSave` with `source.fixAll.mdsmith` — the same way ESLint uses `source.fixAll.eslint`:\n\n`\"editor.codeActionsOnSave\": { \"source.fixAll.mdsmith\": \"explicit\" }`\n\n`mdsmith.previewFix` controls whether the diff is shown first."
},
"mdsmith.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "LSP trace verbosity. Output appears in the 'mdsmith' Output channel."
}
}
}
},
"scripts": {
"compile": "bun run build.ts",
"watch": "bun run build.ts --watch",
"lint": "tsc --noEmit",
"test": "bun test",
"test:e2e": "bun run build.ts && rm -rf out-e2e && tsc -p tsconfig.e2e.json && node out-e2e/runTest.js",
"package": "vsce package --out mdsmith.vsix",
"vscode:prepublish": "bun run build.ts --production"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"optionalDependencies": {
"@mdsmith/cli": "0.0.0-dev"
},
"devDependencies": {
"@types/bun": "^1.1.0",
"@types/mocha": "^10.0.10",
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.0.0",
"glob": "^13.0.6",
"mocha": "^11.7.6",
"typescript": "^5.4.0",
"vscode-uri": "^3.1.0"
},
"overrides": {
"serialize-javascript": "^7.0.5",
"diff": "^8.0.3",
"qs": "^6.15.2",
"fast-uri": "^3.1.2",
"tmp": "^0.2.6"
}
}