mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-19 09:58:08 -05:00
Tidy up some of our Velocity features (#19605)
A few features were marked "always disabled" and then enabled in dev, canary and preview. I simplified those to "always enabled" and disabled in release instead. This required changes to Generate-FeatureStaging to make it consider `WindowsInbox` a Release branding (which, honestly, it always should have been.) - Feature_DynamicSSHProfiles - Feature_ShellCompletions - Feature_SaveSnippet - Feature_QuickFix Feature_DisableWebSourceIcons was deprecated in #19143, but the XML file never got the memo.
This commit is contained in:
@@ -16,9 +16,7 @@
|
|||||||
#include "PowershellCoreProfileGenerator.h"
|
#include "PowershellCoreProfileGenerator.h"
|
||||||
#include "VisualStudioGenerator.h"
|
#include "VisualStudioGenerator.h"
|
||||||
#include "WslDistroGenerator.h"
|
#include "WslDistroGenerator.h"
|
||||||
#if TIL_FEATURE_DYNAMICSSHPROFILES_ENABLED
|
|
||||||
#include "SshHostGenerator.h"
|
#include "SshHostGenerator.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "ApplicationState.h"
|
#include "ApplicationState.h"
|
||||||
#include "DefaultTerminal.h"
|
#include "DefaultTerminal.h"
|
||||||
@@ -226,9 +224,10 @@ void SettingsLoader::GenerateProfiles()
|
|||||||
generateProfiles(WslDistroGenerator{});
|
generateProfiles(WslDistroGenerator{});
|
||||||
generateProfiles(AzureCloudShellGenerator{});
|
generateProfiles(AzureCloudShellGenerator{});
|
||||||
generateProfiles(VisualStudioGenerator{});
|
generateProfiles(VisualStudioGenerator{});
|
||||||
#if TIL_FEATURE_DYNAMICSSHPROFILES_ENABLED
|
if constexpr (Feature_DynamicSSHProfiles::IsEnabled())
|
||||||
sshProfilesGenerated = generateProfiles(SshHostGenerator{});
|
{
|
||||||
#endif
|
sshProfilesGenerated = generateProfiles(SshHostGenerator{});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate ExtensionPackage objects from the profile generators.
|
// Generate ExtensionPackage objects from the profile generators.
|
||||||
@@ -267,9 +266,10 @@ void SettingsLoader::GenerateExtensionPackagesFromProfileGenerators()
|
|||||||
generateExtensionPackages(WslDistroGenerator{});
|
generateExtensionPackages(WslDistroGenerator{});
|
||||||
generateExtensionPackages(AzureCloudShellGenerator{});
|
generateExtensionPackages(AzureCloudShellGenerator{});
|
||||||
generateExtensionPackages(VisualStudioGenerator{});
|
generateExtensionPackages(VisualStudioGenerator{});
|
||||||
#if TIL_FEATURE_DYNAMICSSHPROFILES_ENABLED
|
if constexpr (Feature_DynamicSSHProfiles::IsEnabled())
|
||||||
generateExtensionPackages(SshHostGenerator{});
|
{
|
||||||
#endif
|
generateExtensionPackages(SshHostGenerator{});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// A new settings.json gets a special treatment:
|
// A new settings.json gets a special treatment:
|
||||||
|
|||||||
@@ -99,24 +99,16 @@
|
|||||||
<name>Feature_DynamicSSHProfiles</name>
|
<name>Feature_DynamicSSHProfiles</name>
|
||||||
<description>Enables the dynamic profile generator for OpenSSH config files</description>
|
<description>Enables the dynamic profile generator for OpenSSH config files</description>
|
||||||
<id>9031</id>
|
<id>9031</id>
|
||||||
<stage>AlwaysDisabled</stage>
|
<stage>AlwaysEnabled</stage>
|
||||||
<alwaysEnabledBrandingTokens>
|
<alwaysDisabledReleaseTokens/>
|
||||||
<brandingToken>Dev</brandingToken>
|
|
||||||
<brandingToken>Canary</brandingToken>
|
|
||||||
<brandingToken>Preview</brandingToken>
|
|
||||||
</alwaysEnabledBrandingTokens>
|
|
||||||
</feature>
|
</feature>
|
||||||
|
|
||||||
<feature>
|
<feature>
|
||||||
<name>Feature_ShellCompletions</name>
|
<name>Feature_ShellCompletions</name>
|
||||||
<description>An experimental escape sequence for client applications to request the Terminal display a list of suggestions.</description>
|
<description>An experimental escape sequence for client applications to request the Terminal display a list of suggestions.</description>
|
||||||
<id>3121</id>
|
<id>3121</id>
|
||||||
<stage>AlwaysDisabled</stage>
|
<stage>AlwaysEnabled</stage>
|
||||||
<alwaysEnabledBrandingTokens>
|
<alwaysDisabledReleaseTokens/>
|
||||||
<brandingToken>Dev</brandingToken>
|
|
||||||
<brandingToken>Canary</brandingToken>
|
|
||||||
<brandingToken>Preview</brandingToken>
|
|
||||||
</alwaysEnabledBrandingTokens>
|
|
||||||
</feature>
|
</feature>
|
||||||
|
|
||||||
<feature>
|
<feature>
|
||||||
@@ -165,24 +157,16 @@
|
|||||||
<name>Feature_SaveSnippet</name>
|
<name>Feature_SaveSnippet</name>
|
||||||
<description>Save Snippet</description>
|
<description>Save Snippet</description>
|
||||||
<id>9971</id>
|
<id>9971</id>
|
||||||
<stage>AlwaysDisabled</stage>
|
<stage>AlwaysEnabled</stage>
|
||||||
<alwaysEnabledBrandingTokens>
|
<alwaysDisabledReleaseTokens/>
|
||||||
<brandingToken>Dev</brandingToken>
|
|
||||||
<brandingToken>Canary</brandingToken>
|
|
||||||
<brandingToken>Preview</brandingToken>
|
|
||||||
</alwaysEnabledBrandingTokens>
|
|
||||||
</feature>
|
</feature>
|
||||||
|
|
||||||
<feature>
|
<feature>
|
||||||
<name>Feature_QuickFix</name>
|
<name>Feature_QuickFix</name>
|
||||||
<description>Enables the Quick Fix menu</description>
|
<description>Enables the Quick Fix menu</description>
|
||||||
<id>16599</id>
|
<id>16599</id>
|
||||||
<stage>AlwaysDisabled</stage>
|
<stage>AlwaysEnabled</stage>
|
||||||
<alwaysEnabledBrandingTokens>
|
<alwaysDisabledReleaseTokens/>
|
||||||
<brandingToken>Dev</brandingToken>
|
|
||||||
<brandingToken>Canary</brandingToken>
|
|
||||||
<brandingToken>Preview</brandingToken>
|
|
||||||
</alwaysEnabledBrandingTokens>
|
|
||||||
</feature>
|
</feature>
|
||||||
|
|
||||||
<feature>
|
<feature>
|
||||||
@@ -192,15 +176,4 @@
|
|||||||
<alwaysDisabledReleaseTokens/>
|
<alwaysDisabledReleaseTokens/>
|
||||||
</feature>
|
</feature>
|
||||||
|
|
||||||
<feature>
|
|
||||||
<name>Feature_DisableWebSourceIcons</name>
|
|
||||||
<description>Disables icon paths that make web requests</description>
|
|
||||||
<id>19075</id>
|
|
||||||
<stage>AlwaysDisabled</stage>
|
|
||||||
<alwaysEnabledBrandingTokens>
|
|
||||||
<brandingToken>Dev</brandingToken>
|
|
||||||
<brandingToken>Canary</brandingToken>
|
|
||||||
</alwaysEnabledBrandingTokens>
|
|
||||||
</feature>
|
|
||||||
|
|
||||||
</featureStaging>
|
</featureStaging>
|
||||||
|
|||||||
@@ -89,11 +89,11 @@ Function Resolve-FinalFeatureStage {
|
|||||||
[string]$Branding
|
[string]$Branding
|
||||||
)
|
)
|
||||||
|
|
||||||
# RELEASE=DISABLED wins all checks
|
# RELEASE=DISABLED wins all checks (WindowsInbox counts as a type of Release)
|
||||||
# Then, branch match by most-specific branch
|
# Then, branch match by most-specific branch
|
||||||
# Then, branding type (if no overriding branch match)
|
# Then, branding type (if no overriding branch match)
|
||||||
|
|
||||||
If ($Branding -Eq "Release" -And $Feature.DisabledReleaseToken) {
|
If ($Branding -In @("Release", "WindowsInbox") -And $Feature.DisabledReleaseToken) {
|
||||||
[Stage]::AlwaysDisabled
|
[Stage]::AlwaysDisabled
|
||||||
Return
|
Return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user