File tree Expand file tree Collapse file tree 2 files changed +23
-8
lines changed
cascadia/TerminalSettingsModel Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -183,16 +183,19 @@ void SettingsLoader::GenerateProfiles()
183183 PowershellCoreProfileGenerator powerShellGenerator{};
184184 _executeGenerator (powerShellGenerator);
185185
186- const auto isPowerShellInstalled = !powerShellGenerator.GetPowerShellInstances ().empty ();
187- if (!isPowerShellInstalled)
186+ if (Feature_PowerShellInstallerProfileGenerator::IsEnabled ())
188187 {
189- // Only generate the installer stub profile if PowerShell isn't installed.
190- PowershellInstallationProfileGenerator pwshInstallationGenerator{};
191- _executeGenerator (pwshInstallationGenerator);
188+ const auto isPowerShellInstalled = !powerShellGenerator.GetPowerShellInstances ().empty ();
189+ if (!isPowerShellInstalled)
190+ {
191+ // Only generate the installer stub profile if PowerShell isn't installed.
192+ PowershellInstallationProfileGenerator pwshInstallationGenerator{};
193+ _executeGenerator (pwshInstallationGenerator);
194+ }
195+
196+ // Regardless of running the installer's generator, we need to do some cleanup still.
197+ _cleanupPowerShellInstaller (isPowerShellInstalled);
192198 }
193-
194- // Regardless of running the installer's generator, we need to do some cleanup still.
195- _cleanupPowerShellInstaller (isPowerShellInstalled);
196199 }
197200
198201 WslDistroGenerator wslGenerator{};
Original file line number Diff line number Diff line change 197197 <alwaysDisabledReleaseTokens />
198198 </feature >
199199
200+ <feature >
201+ <name >Feature_PowerShellInstallerProfileGenerator</name >
202+ <description >Enables the PowerShell Installer Dynamic Profile Generator</description >
203+ <id >18639</id >
204+ <stage >AlwaysDisabled</stage >
205+ <alwaysEnabledBrandingTokens >
206+ <brandingToken >Dev</brandingToken >
207+ <brandingToken >Canary</brandingToken >
208+ <brandingToken >Preview</brandingToken >
209+ </alwaysEnabledBrandingTokens >
210+ </feature >
211+
200212</featureStaging >
You can’t perform that action at this time.
0 commit comments