File tree 2 files changed +23
-8
lines changed
cascadia/TerminalSettingsModel
2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -183,16 +183,19 @@ void SettingsLoader::GenerateProfiles()
183
183
PowershellCoreProfileGenerator powerShellGenerator{};
184
184
_executeGenerator (powerShellGenerator);
185
185
186
- const auto isPowerShellInstalled = !powerShellGenerator.GetPowerShellInstances ().empty ();
187
- if (!isPowerShellInstalled)
186
+ if (Feature_PowerShellInstallerProfileGenerator::IsEnabled ())
188
187
{
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);
192
198
}
193
-
194
- // Regardless of running the installer's generator, we need to do some cleanup still.
195
- _cleanupPowerShellInstaller (isPowerShellInstalled);
196
199
}
197
200
198
201
WslDistroGenerator wslGenerator{};
Original file line number Diff line number Diff line change 197
197
<alwaysDisabledReleaseTokens />
198
198
</feature >
199
199
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
+
200
212
</featureStaging >
You can’t perform that action at this time.
0 commit comments