|
// 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.Collections.Immutable;
using Microsoft.CodeAnalysis.Completion;
using Microsoft.CodeAnalysis.DocumentHighlighting;
using Microsoft.CodeAnalysis.Formatting;
using Microsoft.CodeAnalysis.ImplementType;
using Microsoft.CodeAnalysis.InlineHints;
using Microsoft.CodeAnalysis.LanguageServer.HostWorkspace;
using Microsoft.CodeAnalysis.MetadataAsSource;
using Microsoft.CodeAnalysis.Options;
using Microsoft.CodeAnalysis.QuickInfo;
using Microsoft.CodeAnalysis.SolutionCrawler;
using Microsoft.CodeAnalysis.SymbolSearch;
namespace Microsoft.CodeAnalysis.LanguageServer.Handler.Configuration
{
internal partial class DidChangeConfigurationNotificationHandler
{
public static readonly ImmutableArray<IOption2> SupportedOptions =
[
SymbolSearchOptionsStorage.SearchReferenceAssemblies,
ImplementTypeOptionsStorage.InsertionBehavior,
ImplementTypeOptionsStorage.PropertyGenerationBehavior,
CompletionOptionsStorage.ShowNameSuggestions,
CompletionOptionsStorage.ProvideRegexCompletions,
CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces,
CompletionOptionsStorage.TriggerInArgumentLists,
QuickInfoOptionsStorage.ShowRemarksInQuickInfo,
MetadataAsSourceOptionsStorage.NavigateToDecompiledSources,
HighlightingOptionsStorage.HighlightRelatedJsonComponentsUnderCursor,
HighlightingOptionsStorage.HighlightRelatedRegexComponentsUnderCursor,
InlineHintsOptionsStorage.EnabledForParameters,
InlineHintsOptionsStorage.ForLiteralParameters,
InlineHintsOptionsStorage.ForIndexerParameters,
InlineHintsOptionsStorage.ForObjectCreationParameters,
InlineHintsOptionsStorage.ForOtherParameters,
InlineHintsOptionsStorage.SuppressForParametersThatDifferOnlyBySuffix,
InlineHintsOptionsStorage.SuppressForParametersThatMatchMethodIntent,
InlineHintsOptionsStorage.SuppressForParametersThatMatchArgumentName,
InlineHintsOptionsStorage.EnabledForTypes,
InlineHintsOptionsStorage.ForImplicitVariableTypes,
InlineHintsOptionsStorage.ForLambdaParameterTypes,
InlineHintsOptionsStorage.ForImplicitObjectCreation,
InlineHintsOptionsStorage.ForCollectionExpressions,
FormattingOptions2.TabSize,
FormattingOptions2.IndentationSize,
FormattingOptions2.UseTabs,
FormattingOptions2.NewLine,
FormattingOptions2.InsertFinalNewLine,
SolutionCrawlerOptionsStorage.BackgroundAnalysisScopeOption,
SolutionCrawlerOptionsStorage.CompilerDiagnosticsScopeOption,
LspOptionsStorage.LspEnableReferencesCodeLens,
LspOptionsStorage.LspEnableTestsCodeLens,
LanguageServerProjectSystemOptionsStorage.BinaryLogPath,
LanguageServerProjectSystemOptionsStorage.EnableAutomaticRestore,
MetadataAsSourceOptionsStorage.NavigateToSourceLinkAndEmbeddedSources,
];
}
}
|