summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/test-tools/wamr-ide/VSCode-Extension/package.json
blob: dfe37961bd70a3b086606f924a8f32b5774dbed0 (plain)
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
{
    "name": "wamride",
    "publisher": "wamr-ide",
    "repository": {
        "url": "https://github.com/bytecodealliance/wasm-micro-runtime/tree/main/test-tools/wamr-ide"
    },
    "displayName": "WAMR-IDE",
    "description": "An Integrated Development Environment for WASM",
    "version": "1.2.1",
    "engines": {
        "vscode": "^1.59.0"
    },
    "categories": [
        "Other"
    ],
    "activationEvents": [
        "onStartupFinished"
    ],
    "main": "./out/extension.js",
    "contributes": {
        "commands": [
            {
                "command": "wamride.newProject",
                "title": "Create new project",
                "category": "New project"
            },
            {
                "command": "wamride.changeWorkspace",
                "title": "Change workspace",
                "category": "Change Workspace"
            },
            {
                "command": "wamride.build",
                "title": "WAMRIDE:Build Wasm"
            },
            {
                "command": "wamride.run",
                "title": "WAMRIDE:Run Wasm"
            },
            {
                "command": "wamride.debug",
                "title": "WAMRIDE:Source Debug"
            },
            {
                "command": "wamride.openFolder",
                "title": "WAMRIDE:openWorkspace"
            },
            {
                "command": "wamride.build.toggleStateIncludePath",
                "title": "Toggle state of path including"
            },
            {
                "command": "wamride.build.toggleStateExclude",
                "title": "Toggle state of excluding"
            },
            {
                "command": "wamride.targetConfig",
                "title": "Target Configuration"
            }
        ],
        "viewsContainers": {
            "activitybar": [
                {
                    "id": "wamride",
                    "title": "WAMRIDE",
                    "icon": "$(star)"
                }
            ]
        },
        "views": {
            "wamride": [
                {
                    "id": "wamride.views.welcome",
                    "name": "Quick Access"
                }
            ]
        },
        "viewsWelcome": [
            {
                "view": "wamride.views.welcome",
                "contents": "[ WAMR IDE ]\n[$(project)New project](command:wamride.newProject)\n[$(files)Open project](command:wamride.openFolder)\n[$(book)Change workspace](command:wamride.changeWorkspace)"
            },
            {
                "view": "wamride.views.welcome",
                "contents": "[ Current Project ]\n[$(pencil)Configuration](command:wamride.targetConfig)\n[$(gear)Build](command:wamride.build)\n[$(run)Run](command:wamride.run)\n[$(debug-alt) Debug](command:wamride.debug)",
                "enablement": "ext.isWasmProject"
            }
        ],
        "menus": {
            "explorer/context": [
                {
                    "command": "wamride.build.toggleStateIncludePath",
                    "alt": "wamride.build.toggleStateIncludePath",
                    "group": "config",
                    "when": "explorerResourceIsFolder"
                },
                {
                    "command": "wamride.build.toggleStateExclude",
                    "alt": "wamride.build.toggleStateExclude",
                    "group": "config",
                    "when": "!explorerResourceIsFolder && resourceExtname in ext.supportedFileType"
                }
            ]
        },
        "debuggers": [
            {
                "type": "wamr-debug",
                "label": "WAMR lldb debugger",
                "enableBreakpointsFor": {
                    "languageIds": [
                        "ada",
                        "arm",
                        "asm",
                        "c",
                        "cpp",
                        "crystal",
                        "d",
                        "fortan",
                        "fortran-modern",
                        "nim",
                        "objective-c",
                        "objectpascal",
                        "pascal",
                        "rust",
                        "swift"
                    ]
                },
                "windows": {
                    "program": "./resource/debug/windows/bin/lldb-vscode.exe"
                },
                "osx": {
                    "program": "./resource/debug/darwin/bin/lldb-vscode"
                },
                "linux": {
                    "program": "./resource/debug/linux/bin/lldb-vscode"
                },
                "configurationAttributes": {
                    "attach": {
                        "properties": {
                            "sourcePath": {
                                "type": "string",
                                "description": "Specify a source path to remap \"./\" to allow full paths to be used when setting breakpoints in binaries that have relative source paths."
                            },
                            "sourceMap": {
                                "type": "array",
                                "description": "Specify an array of path remappings; each element must itself be a two element array containing a source and destination pathname. Overrides sourcePath.",
                                "default": []
                            },
                            "debuggerRoot": {
                                "type": "string",
                                "description": "Specify a working directory to set the debug adaptor to so relative object files can be located."
                            },
                            "attachCommands": {
                                "type": "array",
                                "description": "Custom commands that are executed instead of attaching to a process ID or to a process by name. These commands may optionally create a new target and must perform an attach. A valid process must exist after these commands complete or the \"attach\" will fail.",
                                "default": []
                            },
                            "initCommands": {
                                "type": "array",
                                "description": "Initialization commands executed upon debugger startup.",
                                "default": []
                            },
                            "preRunCommands": {
                                "type": "array",
                                "description": "Commands executed just before the program is attached to.",
                                "default": []
                            },
                            "stopCommands": {
                                "type": "array",
                                "description": "Commands executed each time the program stops.",
                                "default": []
                            },
                            "exitCommands": {
                                "type": "array",
                                "description": "Commands executed at the end of debugging session.",
                                "default": []
                            }
                        }
                    }
                },
                "initialConfigurations": [
                    {
                        "type": "wamr-debug",
                        "request": "attach",
                        "name": "Debug",
                        "stopOnEntry": true,
                        "attachCommands": [
                            "process connect -p wasm connect://127.0.0.1:1234"
                        ]
                    }
                ],
                "configurationSnippets": [
                    {
                        "label": "WAMR: Attach",
                        "description": "",
                        "body": {
                            "type": "wamr-debug",
                            "request": "attach",
                            "name": "${2:Attach}",
                            "stopOnEntry": true,
                            "attachCommands": [
                                "process connect -p wasm connect://${3:127.0.0.1}:${4:1234}"
                            ]
                        }
                    }
                ]
            }
        ],
        "configuration": [
            {
                "title": "WAMR-IDE",
                "properties": {
                    "WAMR-IDE.configWorkspace": {
                        "type": "string",
                        "description": "Config the workspace for WebAssembly project."
                    }
                }
            }
        ],
        "taskDefinitions": [
            {
                "type": "wasm"
            }
        ]
    },
    "scripts": {
        "vscode:prepublish": "npm run compile",
        "compile": "tsc -p ./",
        "watch": "tsc -watch -p ./",
        "pretest": "npm run compile && npm run lint",
        "lint": "eslint src --ext ts",
        "lint-fix": "eslint --fix src --ext ts",
        "test": "node ./out/test/runTest.js",
        "prettier-format-check": "prettier --config .prettierrc.json 'src/**/*.ts' --check",
        "prettier-format-apply": "prettier --config .prettierrc.json 'src/**/*.ts' --write"
    },
    "devDependencies": {
        "@types/glob": "^7.1.3",
        "@types/mocha": "^8.2.2",
        "@types/node": "14.x",
        "@types/request": "^2.48.8",
        "@types/vscode": "^1.54.0",
        "@types/yauzl": "^2.10.0",
        "@typescript-eslint/eslint-plugin": "^4.26.0",
        "@typescript-eslint/parser": "^4.26.0",
        "eslint": "^7.32.0",
        "glob": "^7.1.7",
        "mocha": "^8.4.0",
        "prettier": "2.5.1",
        "typescript": "^4.3.2",
        "vscode-test": "^1.5.2"
    },
    "dependencies": {
        "@vscode/webview-ui-toolkit": "^0.8.4",
        "request": "^2.88.2",
        "yauzl": "^2.10.0"
    }
}