-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Introduce PowerShell installer stub #18639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
carlos-zamora
wants to merge
43
commits into
main
Choose a base branch
from
dev/cazamor/sui/ext-page/powershell-stub
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
019bb76
Add Extensions page to Settings UI
carlos-zamora 7f0c9e5
rename some resources; remove some TODOs
carlos-zamora f11515e
add nested page
carlos-zamora 75d02c2
add nested page (part 2) + support for multiple json files
carlos-zamora e6c43c0
copy over DisabledProfileSources
carlos-zamora 6b83fa7
wil::to_vector
carlos-zamora 5afc9bc
add dynamic profile generators
carlos-zamora 7cdbb7c
address feedback
carlos-zamora b0a7ef1
apply feedback from Dustin
carlos-zamora 0af4eb0
Fix XAML crash for release builds (applied incompatible styling)
carlos-zamora 2766f21
JsonSource->Filename; remove deep copy of fragments & generators
carlos-zamora 7fcdeaa
Add display name and icon to SUI extensions page
carlos-zamora b472d9f
add DisplayName and Icon to profile generators; improve identifier sy…
carlos-zamora 1072d69
a11y check: screen reader, keyboard navigation, FastPass ✅
carlos-zamora c371c48
use high resolution assets
carlos-zamora e9f83fc
Explicitly introduce and use profile generator icons; add VS logo
carlos-zamora f25e6fe
[fix rebase] remove deep clone of ext pkgs
carlos-zamora 2e7e37a
Introduce PowerShell installer stub
carlos-zamora a7d6e27
apply feedback
carlos-zamora cc1d632
fix ARM64
carlos-zamora 0fe444e
add feature flag
carlos-zamora 36d28e2
fix rebase
carlos-zamora 057128e
Lazy load extension objects for SUI
carlos-zamora debacee
Add Badge to highlight new Extensions Page
carlos-zamora fc0eb78
simplify AppState code; display 'NEW'
carlos-zamora 34c6115
Merge branch 'main' into dev/cazamor/sui/extensions-page
carlos-zamora 2445500
Merge branch 'dev/cazamor/sui/extensions-page' into dev/cazamor/sui/e…
carlos-zamora 3353323
apply feedback from bug bash
carlos-zamora 2d077ca
Linguistic sorting!
carlos-zamora 831313c
fix propagating CascadiaSettings reference & Enabled notification
carlos-zamora 5ae13b3
Add toggle switches to root of Extensions page
carlos-zamora 27e1aee
Merge branch 'main' into dev/cazamor/sui/extensions-page
carlos-zamora 8db1805
Merge branch 'dev/cazamor/sui/extensions-page' into dev/cazamor/sui/e…
carlos-zamora a282164
spell
carlos-zamora ed88c69
scope the generator; fix SUI scenario (post-installation)
carlos-zamora 81ffd97
Merge branch 'main' into dev/cazamor/sui/extensions-page
carlos-zamora ca32d58
apply suggestions from Dustin
carlos-zamora d38cc9a
Merge branch 'dev/cazamor/sui/extensions-page' into dev/cazamor/sui/e…
carlos-zamora a5a7aea
fix comment
carlos-zamora 1cd660f
Merge branch 'main' into dev/cazamor/sui/extensions-page
carlos-zamora ffcce7f
Merge branch 'dev/cazamor/sui/extensions-page' into dev/cazamor/sui/e…
carlos-zamora ac717dc
Merge branch 'main' into dev/cazamor/sui/ext-page/powershell-stub
carlos-zamora abee0c6
format
carlos-zamora File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest, I kind of forgot how the extension code works, but this still seems kind of hacky to me.
The fragment in this case is based on an extension, right? Don't extensions generate profiles only? I'm missing the big picture how we go from profiles to JSON here, hence my confusion. Basically, since extensions generate profiles (including
PowershellInstallationProfileGenerator
), my assumption would be that this function doesn't need to deal with parsing JSON at all.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh this section is SUPER hacky! The sole purpose of this is to add the JSON comment so it appears like this:


So yeah, we have to parse the JSON, add the comment, then store the new JSON with the comment back in.
We have to do it twice:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Figured it'd be good to try and tell the user that this profile only appears if PowerShell is not installed. It's a weird little behavior that I figured at least a JSON comment would help point out, even if not many people read the JSON comment.