-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
244 lines (244 loc) · 7.75 KB
/
Copy pathpackage.json
File metadata and controls
244 lines (244 loc) · 7.75 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
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
{
"name": "winapp",
"displayName": "WinApp",
"description": "WinApp extension for Visual Studio Code to assist in building, debugging, and packaging Windows applications using the WinAppCLI.",
"publisher": "Microsoft-WinAppCLI",
"icon": "images/icon.png",
"version": "0.1.1",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/WinAppVSCE.git"
},
"engines": {
"vscode": "^1.109.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onDebugResolve:winapp",
"onCommand:winapp.init",
"onCommand:winapp.restore",
"onCommand:winapp.update",
"onCommand:winapp.pack",
"onCommand:winapp.run",
"onCommand:winapp.createDebugIdentity",
"onCommand:winapp.manifestGenerate",
"onCommand:winapp.manifestUpdateAssets",
"onCommand:winapp.certGenerate",
"onCommand:winapp.certInstall",
"onCommand:winapp.sign",
"onCommand:winapp.tool",
"onCommand:winapp.getWinappPath",
"onCommand:winapp.manifestAddAlias",
"onCommand:winapp.unregister",
"onCommand:winapp.certInfo"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "winapp.init",
"title": "Initialize Project",
"category": "WinApp"
},
{
"command": "winapp.restore",
"title": "Restore Packages",
"category": "WinApp"
},
{
"command": "winapp.update",
"title": "Update Packages",
"category": "WinApp"
},
{
"command": "winapp.pack",
"title": "Create MSIX Package",
"category": "WinApp"
},
{
"command": "winapp.run",
"title": "Run Application",
"category": "WinApp"
},
{
"command": "winapp.createDebugIdentity",
"title": "Create Debug Identity",
"category": "WinApp"
},
{
"command": "winapp.manifestGenerate",
"title": "Generate Manifest",
"category": "WinApp"
},
{
"command": "winapp.manifestUpdateAssets",
"title": "Update Manifest Assets",
"category": "WinApp"
},
{
"command": "winapp.certGenerate",
"title": "Generate Certificate",
"category": "WinApp"
},
{
"command": "winapp.certInstall",
"title": "Install Certificate",
"category": "WinApp"
},
{
"command": "winapp.sign",
"title": "Sign Package",
"category": "WinApp"
},
{
"command": "winapp.tool",
"title": "Run SDK Tool",
"category": "WinApp"
},
{
"command": "winapp.getWinappPath",
"title": "Get WinApp Path",
"category": "WinApp"
},
{
"command": "winapp.manifestAddAlias",
"title": "Add Manifest Execution Alias",
"category": "WinApp"
},
{
"command": "winapp.unregister",
"title": "Unregister Package",
"category": "WinApp"
},
{
"command": "winapp.certInfo",
"title": "Certificate Info",
"category": "WinApp"
}
],
"configuration": {
"title": "WinApp",
"properties": {
"winapp.appDirectories": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Relative paths (from the workspace root) to app project directories. When set, WinApp commands target these directories instead of auto-scanning. If multiple entries are provided, you'll be prompted to choose."
}
}
},
"customEditors": [
{
"viewType": "winapp.manifestEditor",
"displayName": "AppxManifest Editor",
"selector": [
{
"filenamePattern": "**/[Aa]ppx[Mm]anifest.xml"
},
{
"filenamePattern": "**/*.appxmanifest"
}
],
"priority": "option"
}
],
"debuggers": [
{
"type": "winapp",
"label": "WinApp",
"configurationAttributes": {
"launch": {
"properties": {
"inputFolder": {
"type": "string",
"description": "Path to the build output folder containing your app binaries (e.g., '${workspaceFolder}/bin/Debug/net8.0-windows10.0.22621'). If not set, you will be prompted to select a folder."
},
"manifest": {
"type": "string",
"description": "Path to the AppxManifest.xml file. If not set, the CLI auto-detects from the input folder or current directory."
},
"debuggerType": {
"type": "string",
"description": "The underlying debugger to use (e.g., 'coreclr', 'cppvsdbg')",
"default": "coreclr"
},
"workingDirectory": {
"type": "string",
"description": "Working directory for the application"
},
"args": {
"type": "string",
"description": "Command-line arguments to pass to the application"
},
"outputAppxDirectory": {
"type": "string",
"description": "Output directory for the loose layout package. If not specified, a directory named AppX inside the input folder will be used."
}
}
}
},
"initialConfigurations": [
{
"type": "winapp",
"request": "launch",
"name": "WinApp: Launch and Attach"
}
],
"configurationSnippets": [
{
"label": "WinApp: Launch and Attach",
"description": "Launch a WinApp package and attach the debugger",
"body": {
"type": "winapp",
"request": "launch",
"name": "WinApp: Launch and Attach",
"debuggerType": "coreclr"
}
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "node esbuild.mjs",
"watch": "node esbuild.mjs --watch",
"package": "node esbuild.mjs --production",
"compile-tsc": "tsc -p ./",
"pretest": "npm run compile-tsc && npm run lint",
"lint": "eslint src",
"test": "vscode-test",
"test:e2e": "npx playwright test --config=playwright.config.ts",
"clean": "node -e \"require('fs').rmSync('bin', {recursive: true, force: true}); require('fs').rmSync('out', {recursive: true, force: true}); require('fs').rmSync('dist', {recursive: true, force: true});\"",
"download-cli": "pwsh -NoProfile -Command \"& ./scripts/download-cli.ps1\"",
"download-cli:latest": "pwsh -NoProfile -Command \"& ./scripts/download-cli.ps1 -Tag latest\"",
"test:unit": "tsc -p ./ && node -e \"require('fs').cpSync('src/test/fixtures','out/test/fixtures',{recursive:true})\" && mocha out/test/project-detection.test.js && npx tsx --test src/test/extension-field-validator.test.ts src/test/extension-templates.test.ts src/test/manifest-edge-cases.test.ts src/test/manifest-parser.test.ts src/test/manifest-validator.test.ts src/test/project-resolver.test.ts src/test/redos-prevention.test.ts src/test/xml-utils.test.ts src/test/shell-escape.test.ts"
},
"dependencies": {
"@xmldom/xmldom": "^0.9.9",
"glob": "^13.0.6"
},
"devDependencies": {
"@playwright/test": "^1.61.1",
"@types/mocha": "^10.0.10",
"@types/node": "26.x",
"@types/vscode": "^1.109.0",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.0.0",
"@vscode/vsce": "3.9.2",
"esbuild": "^0.28.1",
"eslint": "^10.6.0",
"mocha": "^11.7.5",
"tsx": "^4.21.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.62.0"
},
"overrides": {
"diff": "^8.0.3",
"fast-uri": "3.1.0"
}
}