|
9 | 9 | "categories": [ |
10 | 10 | "Debuggers" |
11 | 11 | ], |
12 | | - "activationEvents": [ "onDebug", "onDebugResolve:dap-extension", "onDebug:closures" ], |
| 12 | + "activationEvents": [ "onDebug", "onDebugResolve:dap-extension", "onDebug:garbageCollect" ], |
13 | 13 | "main": "./out/extension.js", |
14 | 14 | "contributes": { |
15 | | - "views": { |
16 | | - "debug": [ |
17 | | - { "id": "closures" |
18 | | - , "name": "closures" |
19 | | - , "visibility": "visible" |
20 | | - , "initialSize": 30 |
21 | | - , "contextualTitle": "Closures for ${workspaceFolder}" |
22 | | - , "type": "tree" |
23 | | - } |
| 15 | + "menus": { |
| 16 | + "debug/toolBar": |
| 17 | + [ |
| 18 | + { "when": "inDebugMode", |
| 19 | + "command": "dap-extension.garbageCollect", |
| 20 | + "group": "debug" |
| 21 | + } |
24 | 22 | ] |
25 | 23 | }, |
26 | | - "debuggers": [ |
| 24 | + "commands" :[ |
27 | 25 | { |
28 | | - "type": "dap-extension", |
29 | | - "languages": [ |
30 | | - "Haskell" |
31 | | - ], |
32 | | - "program": "${workspaceFolder}/test.fullpak", |
33 | | - "label": "dap-extension", |
34 | | - "configurationAttributes": { |
35 | | - "attach": { |
36 | | - "required": ["program"], |
37 | | - "properties": { |
38 | | - "program": { |
39 | | - "type": "string", |
40 | | - "description": "Absolute path to the program", |
41 | | - "default": "${workspaceFolder}/test.fullpak" |
42 | | - } |
43 | | - } |
44 | | - } |
45 | | - }, |
46 | | - "initialConfigurations": [ |
47 | | - { |
48 | | - "name": "my project", |
49 | | - "type": "dap-extension", |
50 | | - "request": "attach", |
51 | | - "program": "${workspaceFolder}/test.fullpak" |
52 | | - } |
53 | | - ] |
| 26 | + "command": "dap-extension.garbageCollect", |
| 27 | + "category": "debug", |
| 28 | + "title": "Garbage Collect" |
| 29 | + } |
| 30 | + ], |
| 31 | + "debuggers": [ |
| 32 | + { "type": "dap-extension", |
| 33 | + "languages": [ |
| 34 | + "haskell" |
| 35 | + ], |
| 36 | + "program": "${workspaceFolder}/test.fullpak", |
| 37 | + "label": "dap-extension", |
| 38 | + "configurationAttributes": { |
| 39 | + "attach": { |
| 40 | + "required": ["program"], |
| 41 | + "properties": { |
| 42 | + "program": { |
| 43 | + "type": "string", |
| 44 | + "description": "Absolute path to the program", |
| 45 | + "default": "${workspaceFolder}/test.fullpak" |
| 46 | + } |
| 47 | + } |
| 48 | + } |
| 49 | + }, |
| 50 | + "initialConfigurations": [ |
| 51 | + { |
| 52 | + "type": "Connect to DAP ESTGi", |
| 53 | + "request": "attach", |
| 54 | + "program": "${workspaceFolder}/test.fullpak" |
| 55 | + } |
| 56 | + ] |
54 | 57 | } |
55 | 58 | ] |
56 | 59 | }, |
|
0 commit comments