-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
309 lines (309 loc) · 11 KB
/
Copy pathpackage.json
File metadata and controls
309 lines (309 loc) · 11 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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
{
"name": "winapp",
"displayName": "WinApp",
"description": "WinApp extension for Visual Studio Code to assist in building, debugging, and packaging Windows applications. Includes schema-aware IntelliSense for AppxManifest.xml files.",
"publisher": "Microsoft-WinAppCLI",
"icon": "images/icon.png",
"version": "0.3.1",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/WinAppVSCE.git"
},
"engines": {
"vscode": "^1.109.0"
},
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:**/[Aa]ppx[Mm]anifest.xml",
"workspaceContains:**/*.appxmanifest",
"onLanguage:xml",
"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",
"onCommand:winapp.openManifestEditor"
],
"main": "./dist/extension.js",
"contributes": {
"languages": [
{
"id": "xml",
"extensions": [
".appxmanifest"
],
"filenames": [
"AppxManifest.xml",
"appxmanifest.xml"
],
"aliases": [
"AppxManifest"
]
}
],
"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 File",
"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"
},
{
"command": "winapp.openManifestEditor",
"title": "Open Manifest Editor",
"category": "WinApp",
"icon": "$(preview)"
}
],
"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."
},
"winapp.manifest.intelliSense.enable": {
"type": "boolean",
"default": true,
"description": "Enable IntelliSense (completion, hover, diagnostics, and Go to Definition/navigation) for AppxManifest.xml files."
},
"winapp.manifest.diagnostics.level": {
"type": "string",
"enum": [
"off",
"warning",
"error"
],
"default": "warning",
"description": "Diagnostic filter for manifest schema validation. Set to 'off' to disable validation, 'warning' to show all diagnostics, or 'error' to show only errors."
},
"winapp.manifest.intelliSense.diagnostics.strictChildPlacement": {
"type": "boolean",
"default": false,
"description": "When enabled, report known manifest elements that appear under an unexpected parent even when substitution-group coverage is incomplete."
}
}
},
"customEditors": [
{
"viewType": "winapp.manifestEditor",
"displayName": "AppxManifest Editor",
"selector": [
{
"filenamePattern": "**/[Aa]ppx[Mm]anifest.xml"
},
{
"filenamePattern": "**/*.appxmanifest"
}
],
"priority": "option"
}
],
"menus": {
"editor/title": [
{
"command": "winapp.openManifestEditor",
"when": "(resourceFilename =~ /[Aa]ppx[Mm]anifest\\.xml$/ || resourceExtname == .appxmanifest) && activeCustomEditorId != winapp.manifestEditor",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "winapp.openManifestEditor"
}
]
},
"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",
"enum": [
"coreclr",
"cppvsdbg",
"node"
],
"description": "Optional override for the underlying debugger to use. Omit to let WinApp reuse an installed debugger or prompt you to pick one ('coreclr', 'cppvsdbg', or 'node')."
},
"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"
}
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run sync-schemas && npm run verify-schemas && 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\"",
"sync-schemas": "pwsh -NoProfile -Command \"& ./scripts/sync-schemas.ps1\"",
"verify-schemas": "node -e \"const fs=require('fs'),p=require('path'),d=p.join(__dirname,'schemas');if(!fs.existsSync(d)||fs.readdirSync(d).filter(f=>f.endsWith('.xsd')).length===0){console.error('ERROR: schemas/ contains no XSD files. Run npm run sync-schemas first.');process.exit(1);}console.log('schemas/ verified:',fs.readdirSync(d).filter(f=>f.endsWith('.xsd')).length,'XSD files');\"",
"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/artifact-types.test.ts src/test/arch-detection.test.ts src/test/asset-copy-token-store.test.ts src/test/debugger-resolver.test.ts 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-path.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 src/test/noop-debug-adapter.test.ts src/test/pack-result.test.ts src/test/sign-utils.test.ts src/test/sign-flow.test.ts src/test/tool-command-utils.test.ts src/test/xsd-parser.test.ts src/test/xml-context.test.ts src/test/intellisense-integration.test.ts src/test/intellisense-validation.test.ts src/test/schema-shared.test.ts src/test/semantic-validation.test.ts src/test/working-directory.test.ts"
},
"dependencies": {
"@xmldom/xmldom": "^0.9.12",
"glob": "^13.0.6"
},
"devDependencies": {
"@playwright/test": "1.62.0",
"@types/mocha": "^10.0.10",
"@types/node": "26.x",
"@types/vscode": "^1.109.0",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.1.0",
"@vscode/vsce": "3.9.2",
"esbuild": "^0.28.2",
"eslint": "^10.8.0",
"mocha": "^11.8.0",
"tsx": "^4.23.12",
"typescript": "^6.0.3",
"typescript-eslint": "^8.67.0"
},
"overrides": {
"brace-expansion": "5.0.8",
"diff": "^8.0.3",
"fast-uri": "3.1.0"
}
}