From 3bff8f9f12423fdf42fcd3c07a403a3c00453c31 Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Fri, 25 Sep 2015 16:06:42 -0700 Subject: [PATCH] Rename regkey for InternalFeatureOnOfOptions.Snippets ...to work around machines that already have the old option set. --- .../Core/Shared/Options/InternalFeatureOnOffOptions.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/EditorFeatures/Core/Shared/Options/InternalFeatureOnOffOptions.cs b/src/EditorFeatures/Core/Shared/Options/InternalFeatureOnOffOptions.cs index 3bd2d1358ac..84e62fb9615 100644 --- a/src/EditorFeatures/Core/Shared/Options/InternalFeatureOnOffOptions.cs +++ b/src/EditorFeatures/Core/Shared/Options/InternalFeatureOnOffOptions.cs @@ -50,8 +50,12 @@ internal static class InternalFeatureOnOffOptions [ExportOption] public static readonly Option EventHookup = new Option(OptionName, "Event Hookup", defaultValue: true); + /// + /// Due to https://github.com/dotnet/roslyn/issues/5393, the name "Snippets" is unusable. + /// (Summary: Some builds incorrectly set it without providing a way to clear it so it exists in many registries.) + /// [ExportOption] - public static readonly Option Snippets = new Option(OptionName, "Snippets", defaultValue: true); + public static readonly Option Snippets = new Option(OptionName, "Snippets2", defaultValue: true); [ExportOption] public static readonly Option TodoComments = new Option(OptionName, "Todo Comments", defaultValue: true); -- GitLab