-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy pathpackage.json
More file actions
206 lines (206 loc) · 6.25 KB
/
package.json
File metadata and controls
206 lines (206 loc) · 6.25 KB
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
{
"name": "mock-debug",
"displayName": "Mock Debug",
"version": "0.46.6",
"publisher": "andreweinand",
"description": "Starter extension for developing debug adapters for VS Code.",
"author": {
"name": "Microsoft Corporation",
"email": "aweinand@microsoft.com"
},
"license": "MIT",
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.59.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": {
"vscode:prepublish": "yarn run package-ext && yarn run package-web",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "webpack --watch --devtool nosources-source-map --info-verbosity verbose --config ./build/extension.webpack.config.js",
"watch2": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"test": "node ./out/tests/runTest.js",
"package": "vsce package",
"publish": "vsce publish",
"package-ext": "webpack --mode production --config ./build/extension.webpack.config.js",
"compile-web": "webpack --devtool nosources-source-map --config ./build/web-extension.webpack.config.js",
"watch-web": "webpack --watch --devtool nosources-source-map --info-verbosity verbose --config ./build/web-extension.webpack.config.js",
"package-web": "webpack --mode production --config ./build/web-extension.webpack.config.js"
},
"dependencies": {
"await-notify": "1.0.1",
"vscode-debugadapter": "^1.49.0"
},
"devDependencies": {
"@types/vscode": "^1.59.0",
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "^14.14.37",
"eslint": "^7.32.0",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"glob": "^7.1.7",
"mocha": "^9.1.0",
"typescript": "^4.3.5",
"vscode-test": "1.6.1",
"vscode-debugadapter-testsupport": "^1.49.0",
"vsce": "^1.96.1",
"ts-loader": "^8.1.0",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12"
},
"main": "./dist/ext/extension.js",
"browser": "./dist/web/extension.js",
"activationEvents": [
"onDebugResolve:mock",
"onDebugDynamicConfigurations:mock",
"onCommand:extension.mock-debug.getProgramName",
"onCommand:extension.mock-debug.runEditorContents",
"onCommand:extension.mock-debug.debugEditorContents"
],
"workspaceTrust": {
"request": "never"
},
"contributes": {
"menus": {
"editor/title/run": [
{
"command": "extension.mock-debug.runEditorContents",
"when": "resourceLangId == markdown"
},
{
"command": "extension.mock-debug.debugEditorContents",
"when": "resourceLangId == markdown"
}
],
"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"
]
}
}
}
},
"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"
}
}
]
}
}