-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
67 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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 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 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
33 changes: 33 additions & 0 deletions
33
src/VisualStudio/Core/Def/SymbolSearch/SymbolSearchGlobalOptions.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Collections.Immutable; | ||
using System.Composition; | ||
using Microsoft.CodeAnalysis.Host.Mef; | ||
using Microsoft.CodeAnalysis.Options; | ||
using Microsoft.CodeAnalysis.Options.Providers; | ||
|
||
namespace Microsoft.CodeAnalysis.SymbolSearch | ||
{ | ||
[ExportGlobalOptionProvider, Shared] | ||
internal sealed class SymbolSearchGlobalOptions : IOptionProvider | ||
{ | ||
[ImportingConstructor] | ||
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] | ||
public SymbolSearchGlobalOptions() | ||
{ | ||
} | ||
|
||
ImmutableArray<IOption> IOptionProvider.Options => ImmutableArray.Create<IOption>( | ||
Enabled); | ||
|
||
private const string LocalRegistryPath = @"Roslyn\Features\SymbolSearch\"; | ||
private const string FeatureName = "SymbolSearchOptions"; | ||
|
||
public static readonly Option2<bool> Enabled = new( | ||
FeatureName, "Enabled", defaultValue: true, | ||
storageLocation: new LocalUserProfileStorageLocation(LocalRegistryPath + "Enabled")); | ||
} | ||
} |
This file contains 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 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
28 changes: 0 additions & 28 deletions
28
src/Workspaces/Core/Portable/SymbolSearch/SymbolSearchOptionsProvider.cs
This file was deleted.
Oops, something went wrong.