Repository navigation
Fix manifest editor: repeated elements, CDATA, UWP-only SupportsMultipleInstances, image path probing - #394
Draft
Chiara Mooney (chiaramooney) wants to merge 3 commits into
Draft
Chiara Mooney (chiaramooney) wants to merge 3 commits into
Chiara Mooney (chiaramooney) wants to merge 3 commits into
Conversation
… image path probing - Target repeated extension child elements by element path and label them (Task[2].Type) (#128, #151, #289) - Preserve CDATA sections when editing text content (#152) - Only offer SupportsMultipleInstances for UWP apps; warn when set on desktop apps (#263) - Never inspect webview-supplied image paths outside the package/workspace; copy them only via a native picker (#167) - Fix extension-field validation routing regex that emitted 'd' instead of '\d' Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
VSIX Build
Updated 2026-11-25 00:40:36 UTC · commit |
…py, schema-based FTA name check - applyFieldChange inserts only when the element is missing, so writing the current value no longer duplicates it - Browse copies images from outside the package/workspace into Assets; drop the second picker link - Validate FileTypeAssociation.Name against ST_FTAName instead of a stricter regex - Split '</' inside CDATA so later edits find the real closing tag - Test that repeated-element errors route to the matching input Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ances (#263) Template manifests use EntryPoint="$targetentrypoint$" with no RuntimeBehavior. The editor now reads the project file next to the manifest (UseWinUI / Windows App SDK / .wapproj vs UAP / UseUwp) and falls back to the runFullTrust capability (without a windows.fullTrustProcess helper) when no project file is recognized. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Four manifest editor fixes:
<Task>,<uap3:Host>or<uap:FileType>overwrote the first. Each field now carries the path to its element. Labels are numbered when names repeat (Task[1].Type,Task[2].Type), and edits land on that exact element. If the document changed and the path no longer points at an element with that name, the edit is skipped.<![CDATA[...]]>(package Description, extension text such asFileType) keeps the CDATA wrapper instead of rewriting it as escaped text. A literal]]>or</in the value is split across CDATA sections, so the result stays valid XML and later edits still find the real closing tag.RuntimeBehaviorispackagedClassicApporwin32App, orEntryPointisWindows.FullTrustApplication/Windows.PartialTrustApplication; orEntryPoint="$targetentrypoint$"and the project file next to the manifest is a desktop project (UseWinUI, the Windows App SDK,WindowsPackageType, or a.wapproj). A UAP orUseUwpproject keeps it UWP; orrunFullTrustwithout awindows.fullTrustProcesshelper. UWP templates don't declarerunFullTrust.checkImagePathno longer touches disk for paths outside the manifest folder and open workspace folders. Such paths show "Image is outside the package and workspace. Use Choose file to copy it into Assets." When Choose file picks an image outside the package and workspace, it is copied intoAssets\in one step, because a package can't reference files outside it.Related fixes found along the way:
\dinside a template literal, which emits a plaind, so extension-field errors were never shown in the form. They now appear, and errors for repeated elements land on the correct input.FileTypeAssociation.Nameis validated against the schema typeST_FTANameinstead of a stricter regex that rejected valid names likemy-files.Usage Example
The editor shows
Task[1].TypeandTask[2].Type. Editing the second changes only<Task Type="systemEvent" />(covered by unit tests).Related Issue
Fixes #128
Fixes #151
Fixes #152
Fixes #263
Fixes #167
Fixes #289
Type of Change
Checklist
Screenshots / Demo
Not captured yet. The webview behavior is covered by Playwright specs (
webview-state.spec.ts,applications-tab.spec.ts).Additional Notes
Validation (local, Windows):
npm run compile-tsc: passednpm run lint: 0 errors (10 warnings, all already present)npm run test:unit: passed (1712 + 31 node tests, 40 mocha)npx playwright test applications-tab: 58 passed, 1 flaky (can remove Square 310x310 Logo visual asset, also flaky on unmodifiedmain).npx playwright test webview-state properties-tab: passed (restoring values clears errorspassed on retry).Behavior change (#167): typing an absolute path to an image outside the workspace no longer gives a one-click "Copy to Assets" link. Use Choose file, which now copies outside images into
Assets\directly. Files inside the workspace but outside the package still get the one-click link.Project detection (#263) reads only project files in the manifest's own folder (up to 1 MB each), once when the editor opens. A manifest whose project lives elsewhere falls back to the
runFullTrustcheck.AI Description
This section is auto-generated by AI when the PR is opened or updated. To opt out, delete this entire section including the marker comments.