forked from Antyos/vscode-openscad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
380 lines (380 loc) · 17.6 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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
{
"name": "openscad",
"displayName": "OpenSCAD",
"description": "OpenSCAD highlighting, snippets, and more for VSCode!",
"version": "1.0.1",
"publisher": "Antyos",
"icon": "media/logo.png",
"license": "SEE LICENSE IN LICENSE.txt",
"engines": {
"vscode": "^1.44.0"
},
"categories": [
"Programming Languages",
"Snippets"
],
"keywords": [
"openscad",
"scad"
],
"homepage": "https://github.com/Antyos/vscode-openscad/blob/master/README.md",
"bugs": {
"url": "https://github.com/Antyos/vscode-openscad/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/Antyos/vscode-openscad"
},
"activationEvents": [
"onLanguage:scad",
"workspaceContains:**/*.scad",
"onCommand:openscad.preview",
"onCommand:openscad.kill",
"onCommand:openscad.autoKill",
"onCommand:openscad.killAll",
"onCommand:openscad.exportByType",
"onCommand:openscad.exportByConfig",
"onCommand:openscad.exportWithSaveDialogue",
"onCommand:openscad.cheatsheet",
"onWebviewPanel:cheatsheet"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "openscad.cheatsheet",
"title": "Open Cheatsheet",
"category": "OpenSCAD"
},
{
"command": "openscad.preview",
"title": "Preview in OpenSCAD",
"category": "OpenSCAD",
"icon": {
"light": "./media/icons/preview-light.svg",
"dark": "./media/icons/preview-dark.svg"
}
},
{
"command": "openscad.kill",
"title": "Kill OpenSCAD Previews",
"category": "OpenSCAD",
"icon": {
"light": "./media/icons/kill-light.svg",
"dark": "./media/icons/kill-dark.svg"
}
},
{
"command": "openscad.autoKill",
"title": "Kill OpenSCAD Previews",
"category": "OpenSCAD",
"icon": {
"light": "./media/icons/kill-light.svg",
"dark": "./media/icons/kill-dark.svg"
}
},
{
"command": "openscad.killAll",
"title": "Kill All OpenSCAD Previews",
"category": "OpenSCAD"
},
{
"command": "openscad.exportByType",
"title": "Export Model (Select File Type)",
"category": "OpenSCAD",
"icon": {
"light": "./media/icons/export-light.svg",
"dark": "./media/icons/export-dark.svg"
}
},
{
"command": "openscad.exportByConfig",
"title": "Export Model",
"category": "OpenSCAD",
"icon": {
"light": "./media/icons/export-light.svg",
"dark": "./media/icons/export-dark.svg"
}
},
{
"command": "openscad.exportWithSaveDialogue",
"title": "Export Model with Save Dialogue",
"category": "OpenSCAD",
"icon": {
"light": "./media/icons/export-light.svg",
"dark": "./media/icons/export-dark.svg"
}
}
],
"menus": {
"editor/title": [
{
"command": "openscad.preview",
"when": "editorLangId == scad && config.openscad.interface.showPreviewIconInEditorTitleMenu",
"group": "[email protected]"
},
{
"command": "openscad.autoKill",
"alt": "openscad.kill",
"when": "editorLangId == scad && config.openscad.interface.showKillIconInEditorTitleMenu",
"group": "[email protected]"
},
{
"command": "openscad.exportByConfig",
"alt": "openscad.exportWithSaveDialogue",
"when": "editorLangId == scad && config.openscad.interface.showExportIconInEditorTitleMenu",
"group": "[email protected]"
}
],
"editor/title/context": [
{
"command": "openscad.preview",
"when": "resourceLangId == scad && config.openscad.interface.showPreviewInContextMenus && config.openscad.interface.showCommandsInEditorTitleContextMenu",
"group": "navigation@0"
},
{
"command": "openscad.exportByConfig",
"alt": "openscad.exportWithSaveDialogue",
"when": "resourceLangId == scad && config.openscad.interface.showExportInContextMenus && config.openscad.interface.showCommandsInEditorTitleContextMenu",
"group": "navigation@1"
}
],
"explorer/context": [
{
"command": "openscad.preview",
"when": "resourceLangId == scad && config.openscad.interface.showPreviewInContextMenus && config.openscad.interface.showCommandsInExplorerContextMenu",
"group": "[email protected]"
},
{
"command": "openscad.exportByConfig",
"alt": "openscad.exportWithSaveDialogue",
"when": "resourceLangId == scad && config.openscad.interface.showExportInContextMenus && config.openscad.interface.showCommandsInExplorerContextMenu",
"group": "[email protected]"
}
],
"commandPalette": [
{
"command": "openscad.preview",
"when": "editorLangId == scad || resourceLangId == scad"
},
{
"command": "openscad.kill",
"when": "areOpenScadPreviews"
},
{
"command": "openscad.autoKill",
"when": "never"
},
{
"command": "openscad.killAll",
"when": "areOpenScadPreviews"
},
{
"command": "openscad.exportByType",
"when": "editorLangId == scad || resourceLangId == scad"
},
{
"command": "openscad.exportWithSaveDialogue",
"when": "editorLangId == scad || resourceLangId == scad"
},
{
"command": "openscad.exportByConfig",
"when": "editorLangId == scad || resourceLangId == scad"
}
]
},
"languages": [
{
"id": "scad",
"aliases": [
"OpenSCAD",
"openscad",
"scad"
],
"extensions": [
".scad"
],
"configuration": "./language-configuration.json"
}
],
"snippets": [
{
"language": "scad",
"path": "./snippets/snippets.json"
}
],
"grammars": [
{
"language": "scad",
"scopeName": "source.scad",
"path": "./syntaxes/scad.tmLanguage.json"
}
],
"configuration": {
"title": "OpenSCAD",
"properties": {
"openscad.launchPath": {
"type": "string",
"default": "",
"markdownDescription": "Path to `openscad` executable. Use \"`openscad`\" (no quotes) if openscad is in the path. If left blank, it will use the default path for your system:\n- Windows: `C:\\Program Files\\Openscad\\openscad.exe`\n - _Note:_ Must specify path to `openscad.exe` on Windows for kill command to work properly.\n- MacOS: `/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD`\n- Linux: `openscad` (Automatically in path)",
"description": "Overide default path to 'openscad'",
"scope": "machine-overridable"
},
"openscad.maxInstances": {
"type": "number",
"default": 0,
"markdownDescription": "The maximum number of instances of OpenSCAD allowed.\nSet to `0` for no limit. Instances include any open previews and any active exports.\n> _Note:_ If you decrease this to less than the number of open editors, they will remain open but you will not be able to open more.",
"description": "Maximum number of OpenSCAD instances. Set to '0' for no limit."
},
"openscad.showKillMessage": {
"type": "boolean",
"default": true,
"description": "Show message when a preview is killed."
},
"openscad.export.preferredExportFileExtension": {
"type": "string",
"enum": [
"none",
"stl",
"off",
"amf",
"3mf",
"csg",
"dxf",
"svg",
"png",
"echo",
"ast",
"term",
"nef3",
"nefdbg"
],
"default": "stl",
"markdownDescription": "Preferred file extension to use when exporting using the **Export Model** button in the editor title bar. Set to `none` to select the file extension each time.",
"description": "Preferred file extension use when exporting using 'Export Model'"
},
"openscad.export.autoNamingFormat": {
"type": "string",
"default": "${fileBasenameNoExtension}.${exportExtension}",
"markdownDescription": "The default format pattern to name exported files. Based on variables used in `tasks.json`. For a full list of variables, see the wiki page [here](https://github.com/Antyos/vscode-openscad/wiki/Auto-Exporting). Commonly used variables include:\n- `${workspaceFolder}` - The path of the folder open in VS Code\n- `${fileBasenameNoExtension}` - The current opened file's basename with no file extension\n- `${exportExtension}` - The file extension used in the export\n- `${#}` - Auto versioning placeholder. Starts at '1' and increments each time you export a file. Prevents accidental overrides.\n\nNote: If the path is not specified absolutely, the extension assumes it starts in the location of the `.scad` file being exported.",
"description": "The default format pattern to name exported files. Based on variables used in `tasks.json`."
},
"openscad.export.useAutoNamingExport": {
"type": "boolean",
"default": false,
"markdownDescription": "When enabled, the standard action of **Export Model** will automatically choose a name based on the configuration `openscad.export.autoNamingFormat` and export without a save dialogue.\n\nNote that when this option is enabled, the save dialogue can still be opened by `alt + clicking` the **Export Model** button. Also, the save dialogue can always be accessed by running **Export Model with Save Dialogue** through the command palette.",
"description": "When enabled, the standard action of 'Export Model' will automatically choose a name based on the configuration `openscad.export.autoNamingFormat` and export without a save dialogue."
},
"openscad.export.useAutoNamingInSaveDialogues": {
"type": "boolean",
"default": false,
"markdownDescription": "The default name of to-be exported files in save dialouges will be generated according to the config of `openscad.export.autoNamingFormat` instead of using the original filename.",
"description": "The default name of to-be exported files in save dialouges will be generated according to the config of `openscad.export.autoNamingFormat` instead of using the original filename."
},
"openscad.interface.showPreviewIconInEditorTitleMenu": {
"type": "boolean",
"default": true,
"markdownDescription": "Show **Preview in OpenSCAD** button in editor title menu (right side of tabs).",
"description": "Show 'Preview in OpenSCAD' button in editor title menu (right side of tabs)."
},
"openscad.interface.showKillIconInEditorTitleMenu": {
"type": "boolean",
"default": true,
"markdownDescription": "Show **Kill OpenSCAD Previews** button in editor title menu (right side of tabs).",
"description": "Show 'Kill OpenSCAD Previews' button in editor title menu (right side of tabs)."
},
"openscad.interface.showExportIconInEditorTitleMenu": {
"type": "boolean",
"default": true,
"markdownDescription": "Show **Export** button in editor title menu (right side of tabs).",
"description": "Show 'Export' button in editor title menu (right side of tabs)."
},
"openscad.interface.showCommandsInEditorTitleContextMenu": {
"type": "boolean",
"default": true,
"description": "Show commands in editor title (tab) context menu."
},
"openscad.interface.showCommandsInExplorerContextMenu": {
"type": "boolean",
"default": true,
"description": "Show commands in explorer context menu."
},
"openscad.interface.showPreviewInContextMenus": {
"type": "boolean",
"default": true,
"markdownDescription": "Show **Preview in OpenSCAD** command in context menus.",
"description": "Show 'Preview in OpenSCAD' command in context menus."
},
"openscad.interface.showExportInContextMenus": {
"type": "boolean",
"default": true,
"markdownDescription": "Show **Export Model** command in context menus.",
"description": "Show 'Export Model' command in context menus."
},
"openscad.cheatsheet.displayInStatusBar": {
"type": "string",
"enum": [
"always",
"openDoc",
"activeDoc",
"never"
],
"default": "openDoc",
"description": "When to display the \"Open Cheatsheet\" status bar icon.",
"enumDescriptions": [
"Always displays \"Open Cheatsheet\" in status bar",
"Only display \"Open Cheatsheet\" in status bar when a '.scad' is in an open editor",
"Only display \"Open Cheatsheet\" in status bar when a '.scad' is the active text editor",
"Never display \"Open Cheatsheet\" in status bar"
]
},
"openscad.cheatsheet.colorScheme": {
"type": "string",
"enum": [
"original",
"auto"
],
"default": "auto",
"description": "The color scheme to use when displaying the OpenSCAD cheatsheet.",
"enumDescriptions": [
"Use original OpenSCAD cheatsheet color scheme",
"Use VSCode's current theme for cheatsheet color sceheme"
]
},
"openscad.cheatsheet.openToSide": {
"type": "string",
"enum": [
"beside",
"currentGroup"
],
"default": "beside",
"description": "Controls which column OpenSCAD cheatsheet is opened.",
"enumDescriptions": [
"Open cheatsheet in column beside current one",
"Open cheatsheet in current column/group"
]
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "tslint -p ./",
"watch": "tsc -watch -p ./",
"update-grammar": "js-yaml syntaxes/scad.yaml-tmLanguage > syntaxes/scad.tmLanguage.json"
},
"devDependencies": {
"@types/node": "^9.4.6",
"@types/vscode": "^1.44.0",
"js-yaml": "^3.13.1",
"tslint": "^5.16.0",
"typescript": "^3.5.1",
"vsce": "^1.75.0"
},
"dependencies": {
"command-exists": "^1.2.9",
"escape-string-regexp": "^4.0.0",
"ste-signals": "^1.6.11"
}
}