-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
788 lines (788 loc) · 26.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
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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
{
"name": "ocp-cad-viewer",
"displayName": "OCP CAD Viewer",
"description": "An integrated OCP CAD viewer for CadQuery and build123d",
"version": "2.6.1",
"publisher": "bernhard-42",
"icon": "resources/ocp-logo.png",
"license": "Apache-2.0",
"repository": "https://github.com/bernhard-42/vscode-ocp-cad-viewer",
"engines": {
"vscode": "^1.87.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:python",
"onWebviewPanel:OcpCadViewer"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "ocpCadViewer.toggleWatch",
"title": "OCP CAD Viewer: Toggle visually watching the CAD model"
},
{
"command": "ocpCadViewer.ocpCadViewer",
"title": "OCP CAD Viewer: Open viewer"
},
{
"command": "ocpCadViewer.openViewer",
"title": "OCP CAD Viewer: Open viewer (button)",
"icon": {
"light": "resources/light/open.svg",
"dark": "resources/dark/open.svg"
}
},
{
"command": "ocpCadViewer.openConsole",
"title": "OCP CAD Viewer: Open Jupyter Console (button)",
"icon": {
"light": "resources/light/open.svg",
"dark": "resources/dark/open.svg"
}
},
{
"command": "ocpCadViewer.installLibrary",
"title": "OCP CAD Viewer: Install library",
"icon": {
"light": "resources/light/install.svg",
"dark": "resources/dark/install.svg"
}
},
{
"command": "ocpCadViewer.installPythonModule",
"title": "OCP CAD Viewer: Install ocp_vscode library",
"icon": {
"light": "resources/light/install.svg",
"dark": "resources/dark/install.svg"
}
},
{
"command": "ocpCadViewer.installJupyterExtension",
"title": "OCP CAD Viewer: Install Jupyter extension 'ms-toolsai.jupyter'",
"icon": {
"light": "resources/light/install.svg",
"dark": "resources/dark/install.svg"
}
},
{
"command": "ocpCadViewer.installVscodeSnippets",
"title": "OCP CAD Viewer: Install CAD snippets into <project>/.vscode/"
},
{
"command": "ocpCadViewer.downloadExamples",
"title": "OCP CAD Viewer: Download examples for a specific library",
"icon": {
"light": "resources/light/install.svg",
"dark": "resources/dark/install.svg"
}
},
{
"command": "ocpCadViewer.pasteSnippet",
"title": "OCP CAD Viewer: Paste code snippet",
"icon": {
"light": "resources/light/paste.svg",
"dark": "resources/dark/paste.svg"
}
},
{
"command": "ocpCadViewer.refreshLibraries",
"title": "OCP CAD Viewer: Refresh libraries list",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "ocpCadViewer.preferences",
"title": "OCP CAD Viewer: Open preferences",
"icon": {
"light": "resources/light/settings.svg",
"dark": "resources/dark/settings.svg"
}
},
{
"command": "ocpCadViewer.output",
"title": "OCP CAD Viewer: Toggle OCP CAD Viewer output panel",
"icon": {
"light": "resources/light/output.svg",
"dark": "resources/dark/output.svg"
}
},
{
"command": "ocpCadViewer.quickstart",
"title": "OCP CAD Viewer: Quickstart installation",
"args": [
{
"name": "app",
"type": "string",
"description": "cadquery or build123d"
}
]
}
],
"viewsContainers": {
"activitybar": [
{
"id": "ocpCadHome",
"title": "OCP CAD Viewer",
"icon": "resources/ocp-icon.svg"
}
]
},
"views": {
"ocpCadHome": [
{
"id": "ocpCadStatus",
"name": "Viewer Manager"
},
{
"id": "ocpCadSetup",
"name": "Library Manager"
}
]
},
"viewsWelcome": [
{
"view": "ocpCadStatus",
"contents": "Install all libraries for build123d:\n[Quickstart build123d](command:ocpCadViewer.quickstart?%5B%22build123d%22%5D)"
},
{
"view": "ocpCadStatus",
"contents": "Install all libraries for CadQuery:\n[Quickstart CadQuery](command:ocpCadViewer.quickstart?%5B%22cadquery%22%5D)"
},
{
"view": "ocpCadStatus",
"contents": "Further libraries can be installed or re-installed in the Library Manager below.\n\nAvailable libraries and their install (and import) commands can be found in the 'OCP CAD Viewer' preferences of VS Code."
},
{
"view": "ocpCadStatus",
"contents": "[Open OCP CAD Viewer Preferences](command:workbench.action.openSettings?%5B%22OCP%20CAD%20Viewer%22%5D)"
}
],
"menus": {
"view/title": [
{
"command": "ocpCadViewer.refreshLibraries",
"when": "view == ocpCadSetup",
"group": "navigation@1"
},
{
"command": "ocpCadViewer.preferences",
"when": "view == ocpCadStatus",
"group": "navigation@2"
},
{
"command": "ocpCadViewer.output",
"when": "view == ocpCadStatus",
"group": "navigation@1"
}
],
"view/item/context": [
{
"command": "ocpCadViewer.installLibrary",
"when": "view == ocpCadSetup && viewItem == library",
"group": "inline@0"
},
{
"command": "ocpCadViewer.installJupyterExtension",
"when": "view == ocpCadStatus && viewItem == jupyterExtMissing",
"group": "inline@0"
},
{
"command": "ocpCadViewer.downloadExamples",
"when": "view == ocpCadSetup && viewItem == examples",
"group": "inline@0"
},
{
"command": "ocpCadViewer.pasteSnippet",
"when": "view == ocpCadStatus && viewItem == library",
"group": "inline@1"
},
{
"command": "ocpCadViewer.pasteSnippet",
"when": "view == ocpCadStatus && viewItem == status",
"group": "inline@1"
},
{
"command": "ocpCadViewer.pasteSnippet",
"when": "view == ocpCadStatus && viewItem == open",
"group": "inline@1"
},
{
"command": "ocpCadViewer.openViewer",
"when": "view == ocpCadStatus && viewItem == status",
"group": "inline@0"
},
{
"command": "ocpCadViewer.openConsole",
"when": "view == ocpCadStatus && viewItem == console",
"group": "inline@0"
}
]
},
"keybindings": [
{
"command": "ocpCadViewer.ocpCadViewer",
"key": "ctrl+k v",
"mac": "cmd+k v",
"when": "editorTextFocus && editorLangId=='python'"
}
],
"configuration": {
"title": "OCP CAD Viewer",
"properties": {
"OcpCadViewer.view.tree_width": {
"type": "integer",
"default": 240,
"description": "OCP CAD Viewer navigation tree width (default: 240)",
"order": 0
},
"OcpCadViewer.view.glass": {
"type": "boolean",
"default": true,
"description": "Use glass mode with transparent navigation tree (default: true)",
"order": 1
},
"OcpCadViewer.view.tools": {
"type": "boolean",
"default": true,
"description": "Show toolbar (default: true)",
"order": 2
},
"OcpCadViewer.view.new_tree_behavior": {
"type": "boolean",
"default": true,
"description": "With the new behaviour the eye controls both icons, the mesh icon only the mesh behavior (default: true)",
"order": 2
},
"OcpCadViewer.view.dark": {
"type": "boolean",
"default": false,
"description": "Use dark mode (default: false)",
"order": 3
},
"OcpCadViewer.view.orbit_control": {
"type": "boolean",
"default": false,
"description": "Use 'orbit' control mode instead of 'trackball' (default: false)",
"order": 4
},
"OcpCadViewer.view.up": {
"type": "string",
"enum": [
"Z",
"Y",
"L"
],
"default": "Z",
"description": "Provides up direction, 'Z', 'Y' or 'L' (legacy) (default: Z)",
"order": 5
},
"OcpCadViewer.view.rotate_speed": {
"type": "number",
"default": 1,
"description": "Rotation speed (default: 1)",
"order": 6
},
"OcpCadViewer.view.zoom_speed": {
"type": "number",
"default": 1,
"description": "Zoom speed (default: 1)",
"order": 7
},
"OcpCadViewer.view.pan_speed": {
"type": "number",
"default": 1,
"description": "Pan speed (default: 1)",
"order": 8
},
"OcpCadViewer.view.axes": {
"type": "boolean",
"default": false,
"description": "Show axes (default: false)",
"order": 9
},
"OcpCadViewer.view.axes0": {
"type": "boolean",
"default": true,
"description": "Show axes at the origin (0, 0, 0) (default: true)",
"order": 10
},
"OcpCadViewer.view.black_edges": {
"type": "boolean",
"default": false,
"description": "Show edges in black (default: false)",
"order": 11
},
"OcpCadViewer.view.grid_XY": {
"type": "boolean",
"default": false,
"description": "Show grid on XY plane (default: false)",
"order": 12
},
"OcpCadViewer.view.grid_YZ": {
"type": "boolean",
"default": false,
"description": "Show grid on YZ plane (default: false)",
"order": 13
},
"OcpCadViewer.view.grid_XZ": {
"type": "boolean",
"default": false,
"description": "Show grid on XZ plane (default: false)",
"order": 14
},
"OcpCadViewer.view.center_grid": {
"type": "boolean",
"default": false,
"description": "Show grid planes crossing at center of object or global origin(default: false)",
"order": 15
},
"OcpCadViewer.view.collapse": {
"type": "string",
"enum": [
"none",
"leaves",
"all",
"root"
],
"default": "1",
"description": "leaves: collapse all leaf nodes, all: collapse all nodes, none: expand all nodes, root: expand root only (default: leaves)",
"order": 16
},
"OcpCadViewer.view.ortho": {
"type": "boolean",
"default": true,
"description": "Use orthographic camera (default: true)",
"order": 17
},
"OcpCadViewer.view.ticks": {
"type": "number",
"default": 10,
"description": "Default number of ticks (default: 10)",
"order": 18
},
"OcpCadViewer.view.transparent": {
"type": "boolean",
"default": false,
"description": "Show objects transparent (default: false)",
"order": 30
},
"OcpCadViewer.view.default_opacity": {
"type": "number",
"default": 0.5,
"description": "Default opacity for transparent objects (default: 0.5)",
"order": 31
},
"OcpCadViewer.view.explode": {
"type": "boolean",
"default": false,
"description": "Turn explode mode on (default: false)",
"order": 32
},
"OcpCadViewer.view.modifier_keys": {
"type": "object",
"default": {
"shift": "shiftKey",
"ctrl": "ctrlKey",
"meta": "metaKey"
},
"description": "Mapping of modifier keys shift, ctrl and meta (cmd on Mac, Windows on Windows)",
"order": 33
},
"OcpCadViewer.render.angular_tolerance": {
"type": "number",
"default": 0.2,
"description": "Angular tolerance for tessellation algorithm (default: 0.2)",
"order": 34
},
"OcpCadViewer.render.deviation": {
"type": "number",
"default": 0.1,
"description": "Deviation of for tessellation algorithm (default: 0.1)",
"order": 35
},
"OcpCadViewer.render.default_color": {
"type": "string",
"default": "#e8b024",
"description": "Default shape color, CSS3 color names are allowed (default: #e8b024)",
"order": 36
},
"OcpCadViewer.render.default_edgecolor": {
"type": "string",
"default": "#707070",
"description": "Default color of the edges of shapes, CSS3 color names are allowed (default: #707070)",
"order": 37
},
"OcpCadViewer.render.default_thickedgecolor": {
"type": "string",
"default": "MediumOrchid",
"description": "Default color of lines, CSS3 color names are allowed (default: MediumOrchid)",
"order": 38
},
"OcpCadViewer.render.default_facecolor": {
"type": "string",
"default": "Violet",
"description": "Default color of faces, CSS3 color names are allowed (default: Violet)",
"order": 39
},
"OcpCadViewer.render.default_vertexcolor": {
"type": "string",
"default": "MediumOrchid",
"description": "Default color of vertices, CSS3 color names are allowed (default: MediumOrchid)",
"order": 40
},
"OcpCadViewer.render.ambient_intensity": {
"type": "number",
"default": 1,
"description": "Intensity of ambient light (default: 1.00)",
"order": 41
},
"OcpCadViewer.render.direct_intensity": {
"type": "number",
"default": 1.1,
"description": "Intensity of direct light (default: 1.10)",
"order": 42
},
"OcpCadViewer.render.metalness": {
"type": "number",
"default": 0.3,
"description": "Metalness property of material (default: 0.30)",
"order": 43
},
"OcpCadViewer.render.roughness": {
"type": "number",
"default": 0.65,
"description": "Roughness property of material (default: 0.65)",
"order": 44
},
"OcpCadViewer.advanced.watchCommands": {
"type": "string",
"default": "from ocp_vscode import show_all, get_port; show_all(locals(), port=get_port(), _visual_debug=True)",
"description": "Command to be executed when debugger halts. Needs to include locals()",
"order": 50
},
"OcpCadViewer.advanced.watchByDefault": {
"type": "boolean",
"default": true,
"description": "Whether to have visual debugging (OCP: on) as the default or not",
"order": 51
},
"OcpCadViewer.advanced.autostart": {
"type": "boolean",
"default": true,
"description": "Whether to start the viewer when opening Python files or not",
"order": 52
},
"OcpCadViewer.advanced.autohideTerminal": {
"type": "boolean",
"default": false,
"description": "Whether to autohide the Terminal on viewer start or not",
"order": 53
},
"OcpCadViewer.advanced.initialPort": {
"type": "number",
"default": 3939,
"description": "The start port where OCP CAD Viewer will start to search for a free port",
"order": 54
},
"OcpCadViewer.advanced.quickstartCommands": {
"type": "object",
"description": "Shell commands to install the quickstart recipes. The values for placeholders {python}, {conda_env}, {ocp_vscode_version} will be replaced accordingly during execution",
"default": {
"cadquery": {
"appleSilicon": [
"mamba install -y -n {conda_env} -c cadquery -c conda-forge cadquery=master",
"{python} -m pip install ocp_vscode=={ocp_vscode_version}"
],
"others": [
"{unset_conda} {python} -m pip install ocp_vscode=={ocp_vscode_version} git+https://github.com/cadquery/cadquery.git"
]
},
"build123d": {
"appleSilicon": [
"mamba install -y -n {conda_env} -c cadquery -c conda-forge cadquery=master",
"{python} -m pip install --no-deps git+https://github.com/gumyr/build123d 'typing_extensions>=4.6.0,<5' 'numpy>=1.24.1,<2' 'svgpathtools>=1.5.1,<2' 'svgwrite' 'svgelements' 'anytree>=2.8.0,<3' 'ezdxf>=1.0.0,<2' 'numpy-stl>=3.0.0,<4' 'ipython>=8.0.0,<9' 'py_lib3mf>=2.3.1' 'ocpsvg' 'trianglesolver'",
"{python} -m pip install ocp_vscode=={ocp_vscode_version}"
],
"others": [
"{python} -m pip install ocp_vscode=={ocp_vscode_version} git+https://github.com/gumyr/build123d"
]
}
},
"order": 52
},
"OcpCadViewer.advanced.installCommands": {
"type": "object",
"description": "Shell commands to install Python libraries. The values for placeholders {python}, {conda_env}, {ocp_vscode_version} will be replaced accordingly during execution",
"default": {
"cadquery": {
"pip": [
"{unset_conda} {python} -m pip install git+https://github.com/cadquery/cadquery.git"
],
"conda": [
"conda install -y -n {conda_env} -c conda-forge -c cadquery cadquery=master"
],
"mamba": [
"mamba install -y -n {conda_env} -c conda-forge -c cadquery cadquery=master"
],
"poetry": [
"poetry add git+https://github.com/cadquery/cadquery.git"
]
},
"build123d": {
"pip": [
"{python} -m pip install git+https://github.com/gumyr/build123d.git"
],
"poetry": [
"poetry add git+https://github.com/gumyr/build123d.git"
]
},
"ocp_vscode": {
"pip": [
"{python} -m pip install ocp_vscode=={ocp_vscode_version}"
],
"poetry": [
"poetry add ocp_vscode=={ocp_vscode_version}"
]
},
"ocp_tessellate": {
"pip": [
"{python} -m pip install --upgrade \"ocp_tessellate>=3.0.8,<3.1.0\""
],
"poetry": [
"poetry add ocp_tessellate@~3.0.8"
]
},
"ipykernel": {
"pip": [
"{python} -m pip install --upgrade ipykernel"
],
"conda": [
"conda install -y -n {conda_env} -c conda-forge ipykernel"
],
"mamba": [
"mamba install -y -n {conda_env} -c conda-forge ipykernel"
],
"poetry": [
"poetry add ipykernel"
]
},
"jupyter_console": {
"pip": [
"{python} -m pip install --upgrade jupyter_console"
],
"conda": [
"conda install -y -n {conda_env} -c conda-forge jupyter_console"
],
"mamba": [
"mamba install -y -n {conda_env} -c conda-forge jupyter_console"
],
"poetry": [
"poetry add jupyter_console"
]
}
},
"order": 54
},
"OcpCadViewer.advanced.codeSnippets": {
"type": "object",
"description": "Python snippets to import the Python libraries",
"default": {
"cadquery": [
"import cadquery as cq"
],
"build123d": [
"from build123d import *"
],
"ocp_vscode": [
"from ocp_vscode import show, show_object, reset_show, set_port, set_defaults, get_defaults"
],
"jupyter": [
"\n# %%\n"
]
},
"order": 55
},
"OcpCadViewer.advanced.exampleDownloads": {
"type": "object",
"description": "Github download path for repository zip archives",
"default": {
"cadquery": {
"zip": "https://github.com/CadQuery/cadquery/archive/refs/heads/master.zip",
"example_path": "cadquery-master/examples"
},
"build123d": {
"zip": "https://github.com/gumyr/build123d/archive/refs/heads/dev.zip",
"example_path": "build123d-dev/examples"
}
},
"order": 56
},
"OcpCadViewer.snippets.dotVscodeSnippets": {
"type": "object",
"description": "Python snippets to help writing CAD code",
"default": {
"build123d": {
"BuildPart": {
"scope": "python",
"prefix": "bd_p",
"body": [
"with {prefix}BuildPart() as ${1:partname}:",
" $0"
]
},
"BuildSketch": {
"scope": "python",
"prefix": "bd_s",
"body": [
"with {prefix}BuildSketch() as ${1:sketchname}:",
" $0"
]
},
"BuildLine": {
"scope": "python",
"prefix": "bd_l",
"body": [
"with {prefix}BuildLine() as ${1:linename}:",
" $0"
]
},
"Part": {
"scope": "python",
"prefix": "bd_bp",
"body": [
"with {prefix}BuildPart() as ${1:partname}:",
" {prefix}${2:class}(${3:params}, align=({prefix}Align.CENTER, {prefix}Align.CENTER, {prefix}Align.CENTER))",
" $0"
]
},
"Sketch": {
"scope": "python",
"prefix": "bd_bs",
"body": [
"with {prefix}BuildSketch() as ${1:sketchname}:",
" {prefix}${2:class}(${3:params}, align=({prefix}Align.CENTER, {prefix}Align.CENTER))",
" $0"
]
},
"Line": {
"scope": "python",
"prefix": "bd_bl",
"body": [
"with {prefix}BuildLine() as ${1:linename}:",
" {prefix}${2:class}(${3:params})",
" $0"
]
},
"LineChain": {
"scope": "python",
"prefix": "bd_lchain",
"body": [
"with {prefix}BuildLine() as ${1:linename}:",
" ${2:l1} = {prefix}Line((${3:start}), (${4:end}))",
" ${5:l2} = {prefix}Line(${2:l1} @ 0, (${6:end}))",
" ${7:l3} = {prefix}Line(${5:l2} @ 0, (${8:end}))",
" $0"
]
},
"PartSketch": {
"scope": "python",
"prefix": "bd_pask",
"body": [
"with {prefix}BuildPart() as ${1:partname}:",
" with {prefix}BuildSketch() as ${2:sketchname}:",
" {prefix}${3:class}(${4:params}, align=({prefix}Align.CENTER, {prefix}Align.CENTER))",
" ${1:partname}.edges()",
" $0"
]
},
"SketchLine": {
"scope": "python",
"prefix": "bd_skli",
"body": [
"with {prefix}BuildSketch() as ${1:sketchname}:",
" with {prefix}BuildLine() as ${2:linename}:",
" {prefix}${3:class}(${4:params})",
" make_face()",
" $0"
]
},
"ExtrudeLine": {
"scope": "python",
"prefix": "bd_exli",
"body": [
"with {prefix}BuildPart() as ${1:partname}:",
" with {prefix}BuildSketch() as ${2:sketchname}:",
" with {prefix}BuildLine() as ${3:linename}:",
" {prefix}${4:class}(${5:params})",
" {prefix}make_face()",
" {prefix}extrude(amount=${6:amount})",
" $0"
]
},
"ExtrudeSketch": {
"scope": "python",
"prefix": "bd_exsk",
"body": [
"with {prefix}BuildPart() as ${1:partname}:",
" with {prefix}BuildSketch() as ${2:sketchname}:",
" {prefix}${3:class}(${4:params}, align=({prefix}Align.CENTER, {prefix}Align.CENTER))",
" {prefix}extrude(amount=${5:amount})",
" $0"
]
}
}
},
"order": 57
},
"OcpCadViewer.advanced.terminalDelay": {
"type": "number",
"default": 1000,
"description": "Delay until terminal command is started (default: 1000)",
"order": 58
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"extensionDependencies": [
"ms-python.python"
],
"devDependencies": {
"@types/adm-zip": "^0.5.0",
"@types/follow-redirects": "^1.14.1",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "^18.14.6",
"@types/vscode": "^1.85.0",
"@types/ws": "^8.5.4",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"@vscode/test-electron": "^2.1.5",
"@vscode/vsce": "^2.19.0",
"eslint": "^8.20.0",
"glob": "^8.1.0",
"mocha": "^10.0.0",
"typescript": "4.9"
},
"dependencies": {
"@vscode/python-extension": "^1.0.0",
"adm-zip": "^0.5.10",
"follow-redirects": "^1.15.2",
"semver": "^7.5.1",
"three-cad-viewer": "3.1.8",
"ws": "^8.13.0"
}
}