提交 f99d4e37 编写于 作者: C CyrusNajmabadi

Update option name.

上级 d03df21a
......@@ -13,6 +13,6 @@ internal static class ServiceComponentOnOffOptions
public static readonly Option<bool> DiagnosticProvider = new Option<bool>(OptionName, "Diagnostic Provider", defaultValue: true);
public static readonly Option<bool> PackageSearch = new Option<bool>(OptionName, nameof(PackageSearch), defaultValue: true);
public static readonly Option<bool> SymbolSearch = new Option<bool>(OptionName, nameof(SymbolSearch), defaultValue: true);
}
}
......@@ -14,7 +14,7 @@ internal class ServiceComponentOnOffOptionsProvider : IOptionProvider
{
private readonly IEnumerable<IOption> _options = ImmutableArray.Create(
ServiceComponentOnOffOptions.DiagnosticProvider,
ServiceComponentOnOffOptions.PackageSearch);
ServiceComponentOnOffOptions.SymbolSearch);
public IEnumerable<IOption> GetOptions() => _options;
}
......
......@@ -80,7 +80,7 @@ internal void Connect(VisualStudioWorkspaceImpl workspace)
this.AssertIsForeground();
var options = workspace.Options;
if (!options.GetOption(ServiceComponentOnOffOptions.PackageSearch))
if (!options.GetOption(ServiceComponentOnOffOptions.SymbolSearch))
{
return;
}
......
......@@ -29,7 +29,7 @@ internal class SymbolSearchServiceFactory : IWorkspaceServiceFactory
public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
{
var options = workspaceServices.Workspace.Options;
if (options.GetOption(ServiceComponentOnOffOptions.PackageSearch))
if (options.GetOption(ServiceComponentOnOffOptions.SymbolSearch))
{
// Only support package search in vs workspace.
if (workspaceServices.Workspace is VisualStudioWorkspace)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册