-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
300 lines (300 loc) · 14.8 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
{
"name": "boost-quickbook-support",
"publisher": "JBouwer",
"displayName": "Boost Quickbook Support",
"description": "Syntax highlighting & simple preview for Boost Quickbook",
"license": "BSL-1.0",
"icon": "images/boost-quickbook-support.png",
"version": "0.0.7",
"engines": {
"vscode": "^1.38.0"
},
"categories": [
"Programming Languages"
],
"repository": {
"type": "git",
"url": "https://github.com/JBouwer/boost-quickbook-support.git"
},
"activationEvents": [
"onLanguage:quickbook",
"onCommand:quickbook.showPreview"
],
"main": "./out/extension",
"contributes": {
"configuration": {
"title": "Boost Quickbook Support",
"properties": {
"quickbook.preview.boostRootPath": {
"type": "string",
"markdownDescription": "Path to Boost root, or absolute URL. \nPassed with `--boost-root-path` option to executable."
},
"quickbook.preview.CSSPath": {
"type": "string",
"markdownDescription": "Path to CSS file or absolute URL. \nPassed with `--css-path` option to executable."
},
"quickbook.preview.defineMacro": {
"type": "string",
"deprecationMessage": "This property is deprecated, and may be removed in a future version. Please add existing values to the \"`Define Macros`\" array below.",
"markdownDescription": "Predefined macro. \nPassed with `--define` option to executable."
},
"quickbook.preview.defineMacros": {
"type": "array",
"default": [],
"markdownDescription": "Predefined macros. \nPassed with `--define` options to executable."
},
"quickbook.preview.graphicsPath": {
"type": "string",
"markdownDescription": "Path to graphics directory or absolute URL. \nPassed with `--graphics-path` option to executable. This seems to default to the \"`doc/src/images/`\" subdirectory of the \"`Boost Root Path`\"."
},
"quickbook.preview.imageLocation": {
"type": "string",
"markdownDescription": "Path to locate images. \nPassed with `--image-location` option to executable. On my test system this did not seem to have any effect on the generation of previews."
},
"quickbook.preview.include.path": {
"type": "string",
"deprecationMessage": "This property is deprecated, and may be removed in a future version. Please add existing values to the \"`Include Paths`\" array below.",
"markdownDescription": "Include path. This will override the `quickbook.preview.include.workspacePath` setting. \nPassed with `--include-path` option to executable."
},
"quickbook.preview.include.paths": {
"type": "array",
"default": [],
"markdownDescription": "Include paths. \nThese will be passed with `--include-path` options to executable."
},
"quickbook.preview.include.workspacePath": {
"type": "boolean",
"default": true,
"deprecationMessage": "This property is deprecated, and may be removed in a future version. Please prefer the \"`Include Workspace Paths`\" setting below.",
"markdownDescription": "Use the first _workspace path_ as the include path. This will be overridden when the `quickbook.preview.include.path` setting is also specified. \n(Passed with `--include-path` option to executable.)"
},
"quickbook.preview.include.workspacePaths": {
"type": "boolean",
"default": true,
"markdownDescription": "Add all the _workspace paths_ as include paths. \nPassed with `--include-path` option to executable in addition to the \"`Include Paths`\" setting above."
},
"quickbook.preview.indent": {
"type": [
"number",
"null"
],
"default": null,
"markdownDescription": "Passed with `--indent` option to executable."
},
"quickbook.preview.noSelfLinkedHeaders": {
"type": "boolean",
"default": false,
"markdownDescription": "Stop headers linking to themselves. \n(Pass `--no-self-linked-headers` option to executable.)"
},
"quickbook.preview.lineWidth": {
"type": [
"number",
"null"
],
"default": null,
"markdownDescription": "Passed with `--linewidth` option to executable."
},
"quickbook.preview.pathToExecutable": {
"type": "string",
"default": "quickbook",
"markdownDescription": "The path to your `quickbook` executable."
},
"quickbook.preview.security.contentSecurityPolicy": {
"type": "string",
"default": "default-src vscode-resource: https:;",
"markdownDescription": "The `CSP` part of the [`<meta http-equiv=\"Content-Security-Policy\" content=\"CSP\">`](https://developers.google.com/web/fundamentals/security/csp/) directive, to be injected into the preview HTML. See also the [VSCode Webview](https://code.visualstudio.com/api/extension-guides/webview#content-security-policy) documentation for more."
},
"quickbook.preview.processImagePathDirectories": {
"type": "array",
"default": [],
"markdownDescription": "Enable post-processing of local _relative_ image paths, to test each _relative_ to these directories. The first path to contain the relative image file is used. All these directories are also implicitly trusted to access local resources."
},
"quickbook.preview.processImagePathIncludes": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable post-processing of local _relative_ image paths, to test each _relative_ to the explicit _Include_ directories specified above. The first path (after those specified in _Process Image Path Directories_ above) to contain the relative image file is used. All the _Include Directories_ are also implicitly trusted to access local resources."
},
"quickbook.preview.processImagePathIncludeWorkspace": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable post-processing of local _relative_ image paths, to test each _relative_ to each of the workspace directories. The first path (after those specified in _Process Image Path Directories_ & _Process Image Path Include_ above) to contain the relative image file is used. All the workspace directories are also implicitly trusted to access local resources."
},
"quickbook.preview.processImagePathRelative": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable post-processing of local _relative_ image paths, to _relative_ to the output file. This will receive lower precedence to the other _Process Image Path_ settings above."
},
"quickbook.preview.security.processImagePathRelative": {
"type": "boolean",
"default": true,
"deprecationMessage": "This property name is deprecated, and may be removed in a future version. It was renamed to \"`Process Image Path Relative`\" (without \"`Security`\") above.",
"markdownDescription": "Enable post-processing of local _relative_ image paths, to _relative_ to the output file. This will receive lower precedence to the other _Process Image Path_ settings above."
},
"quickbook.preview.security.processImagePathScheme": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable post-processing of local image paths to the `vscode-resource:` scheme."
},
"quickbook.preview.security.trustAdditionalDirectories": {
"type": "array",
"default": [],
"markdownDescription": "Allow the preview to trust these directories for accessing local resources."
},
"quickbook.preview.security.trustSourceFileDirectory": {
"type": "boolean",
"default": true,
"markdownDescription": "Allow the preview to trust the directory of the source file (i.e. the file being previewed) for accessing local resources."
},
"quickbook.preview.security.trustSpecifiedDirectories": {
"type": "boolean",
"default": true,
"markdownDescription": "Allow the preview to trust the following directories specified above for accessing local resources: \n Boost Root Path(`--boost-root-path`), CSS Path(`--css-path`), Graphics Path(`--graphics-path`), Image Location(`--image-location`) & Include Path(`--include-path`)."
},
"quickbook.preview.security.trustWorkspaceDirectories": {
"type": "boolean",
"default": true,
"markdownDescription": "Trust the preview to access workspace directories with the `vscode-resource:` scheme."
},
"quickbook.preview.strict": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable `--strict` mode."
}
}
},
"languages": [
{
"id": "quickbook",
"aliases": [
"Boost Quickbook",
"Quickbook"
],
"extensions": [
".qbk"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "quickbook",
"scopeName": "source.quickbook",
"path": "./syntaxes/quickbook.tmLanguage.json"
}
],
"commands": [
{
"command": "quickbook.showPreview",
"title": "Open Preview",
"category": "Boost Quickbook",
"icon": {
"light": "./images/preview-light.svg",
"dark": "./images/preview-dark.svg"
}
},
{
"command": "quickbook.showPreviewToSide",
"title": "Open Preview to the Side",
"category": "Boost Quickbook",
"icon": {
"light": "./images/preview-right-light.svg",
"dark": "./images/preview-right-dark.svg"
}
},
{
"command": "quickbook.refreshPreview",
"title": "Refresh Preview",
"category": "Boost Quickbook",
"icon": {
"light": "./images/refresh-light.svg",
"dark": "./images/refresh-dark.svg"
}
},
{
"command": "quickbook.viewSource",
"title": "View Source",
"category": "Boost Quickbook",
"icon": {
"light": "./images/view-source-light.svg",
"dark": "./images/view-source-dark.svg"
}
}
],
"menus": {
"commandPalette": [
{
"when": "resourceLangId == quickbook",
"command": "quickbook.showPreview",
"group": "navigation"
},
{
"when": "resourceLangId == quickbook",
"command": "quickbook.showPreviewToSide",
"group": "navigation"
},
{
"when": "quickbookPreviewActive",
"command": "quickbook.refreshPreview",
"group": "navigation"
},
{
"when": "quickbookPreviewActive",
"command": "quickbook.viewSource",
"group": "navigation"
}
],
"editor/title/context": [
{
"when": "resourceLangId == quickbook",
"command": "quickbook.showPreview",
"group": "navigation"
},
{
"when": "resourceLangId == quickbook",
"command": "quickbook.showPreviewToSide",
"group": "navigation"
},
{
"when": "quickbookPreviewActive",
"command": "quickbook.refreshPreview",
"group": "navigation"
},
{
"when": "quickbookPreviewActive",
"command": "quickbook.viewSource",
"group": "navigation"
}
],
"editor/title": [
{
"when": "resourceLangId == quickbook",
"command": "quickbook.showPreview",
"group": "navigation"
},
{
"when": "resourceLangId == quickbook",
"command": "quickbook.showPreviewToSide",
"group": "navigation"
},
{
"when": "quickbookPreviewActive",
"command": "quickbook.refreshPreview",
"group": "navigation"
},
{
"when": "quickbookPreviewActive",
"command": "quickbook.viewSource",
"group": "navigation"
}
]
}
},
"devDependencies": {
"@types/node": "^9.6.55",
"@types/vscode": "^1.38.0",
"typescript": "^2.8.3"
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./"
}
}