-
Notifications
You must be signed in to change notification settings - Fork 185
/
package.json
243 lines (243 loc) · 7.63 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
{
"name": "mock-debug",
"displayName": "Mock Debug",
"version": "0.52.0",
"publisher": "ms-vscode",
"description": "Starter extension for developing debug adapters for VS Code.",
"author": {
"name": "Microsoft Corporation"
},
"license": "MIT",
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.66.0"
},
"icon": "images/mock-debug-icon.png",
"categories": [
"Debuggers"
],
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-mock-debug.git"
},
"bugs": {
"url": "https://github.com/Microsoft/vscode-mock-debug/issues"
},
"scripts": {
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"typecheck": "tsc -p tsconfig.json --noEmit",
"esbuild-base": "esbuild ./src/extension.ts --bundle --tsconfig=./tsconfig.json --external:vscode --format=cjs --platform=node --outfile=dist/extension.js",
"watch": "npm run -S esbuild-base -- --sourcemap --sources-content=false --watch",
"esbuild-web": "esbuild ./src/web-extension.ts --bundle --tsconfig=./tsconfig.json --external:vscode --format=cjs --platform=browser --outfile=dist/web-extension.js",
"watch-web": "npm run -S esbuild-web -- --sourcemap --sources-content=false --watch",
"build": "npm run -S esbuild-base -- --sourcemap --sources-content=false && npm run -S esbuild-web -- --sourcemap --sources-content=false",
"package": "vsce package",
"publish": "vsce publish",
"publish-pre-release": "vsce publish --pre-release",
"vscode:prepublish": "rimraf dist && npm run -S esbuild-base -- --minify && npm run -S esbuild-web -- --minify",
"test": "npm run typecheck"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "^14.14.37",
"@types/vscode": "^1.66.0",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"@vscode/debugadapter": "^1.56.0",
"@vscode/debugadapter-testsupport": "^1.56.0",
"await-notify": "^1.0.1",
"base64-js": "^1.5.1",
"esbuild": "^0.14.29",
"eslint": "^8.12.0",
"events": "^3.3.0",
"glob": "^7.2.0",
"mocha": "^9.2.2",
"path-browserify": "^1.0.1",
"rimraf": "^3.0.2",
"typescript": "^4.6.3",
"url": "^0.11.0",
"vsce": "^2.7.0"
},
"main": "./dist/extension.js",
"browser": "./dist/web-extension.js",
"activationEvents": [
"onDebugResolve:mock",
"onDebugDynamicConfigurations:mock",
"onCommand:extension.mock-debug.getProgramName"
],
"workspaceTrust": {
"request": "never"
},
"contributes": {
"menus": {
"editor/title/run": [
{
"command": "extension.mock-debug.runEditorContents",
"when": "resourceLangId == markdown",
"group": "navigation@1"
},
{
"command": "extension.mock-debug.debugEditorContents",
"when": "resourceLangId == markdown",
"group": "navigation@2"
}
],
"commandPalette": [
{
"command": "extension.mock-debug.debugEditorContents",
"when": "resourceLangId == markdown"
},
{
"command": "extension.mock-debug.runEditorContents",
"when": "resourceLangId == markdown"
}
],
"debug/variables/context": [
{
"command": "extension.mock-debug.toggleFormatting",
"when": "debugType == 'mock' && debugProtocolVariableMenuContext == 'simple'"
}
]
},
"commands": [
{
"command": "extension.mock-debug.debugEditorContents",
"title": "Debug File",
"category": "Mock Debug",
"enablement": "!inDebugMode",
"icon": "$(debug-alt)"
},
{
"command": "extension.mock-debug.runEditorContents",
"title": "Run File",
"category": "Mock Debug",
"enablement": "!inDebugMode",
"icon": "$(play)"
},
{
"command": "extension.mock-debug.toggleFormatting",
"title": "Toggle between decimal and hex formatting"
}
],
"breakpoints": [
{
"language": "markdown"
}
],
"debuggers": [
{
"type": "mock",
"languages": [
"markdown"
],
"label": "Mock Debug",
"program": "./out/debugAdapter.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to a text file.",
"default": "${workspaceFolder}/${command:AskForProgramName}"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": true
},
"compileError": {
"type": "string",
"description": "Simulates a compile error in 'launch' request.",
"enum": [
"default",
"show",
"hide"
],
"enumDescriptions": [
"default: show fake compile error to user",
"show fake compile error to user",
"do not show fake compile error to user"
]
}
}
},
"attach": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to a text file.",
"default": "${workspaceFolder}/${command:AskForProgramName}"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after attach.",
"default": true
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": true
},
"compileError": {
"type": "string",
"description": "Simulates a compile error in 'attach' request.",
"enum": [
"default",
"show",
"hide"
],
"enumDescriptions": [
"default: show fake compile error to user",
"show fake compile error to user",
"do not show fake compile error to user"
]
}
}
}
},
"initialConfigurations": [
{
"type": "mock",
"request": "launch",
"name": "Ask for file name",
"program": "${workspaceFolder}/${command:AskForProgramName}",
"stopOnEntry": true
}
],
"configurationSnippets": [
{
"label": "Mock Debug: Launch",
"description": "A new configuration for 'debugging' a user selected markdown file.",
"body": {
"type": "mock",
"request": "launch",
"name": "Ask for file name",
"program": "^\"\\${workspaceFolder}/\\${command:AskForProgramName}\"",
"stopOnEntry": true
}
}
],
"variables": {
"AskForProgramName": "extension.mock-debug.getProgramName"
}
}
]
}
}