/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/Protocol/Handler/Configuration/DidChangeConfigurationNotificationHandler_OptionList.cs
66 строк
3 KB
Gen Lu
Add option for import completion commit behavior (#82916)
10 апр 2026, 03:26
Не верифицирован
10 апр 2026, 03:26
4d274cb
Код
Авторство
О чём код?
// 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 sealed partial class DidChangeConfigurationNotificationHandler { public static readonly ImmutableArray<IOption2> SupportedOptions = [ SymbolSearchOptionsStorage.SearchReferenceAssemblies, ImplementTypeOptionsStorage.InsertionBehavior, ImplementTypeOptionsStorage.PropertyGenerationBehavior, CompletionOptionsStorage.ShowNameSuggestions, CompletionOptionsStorage.ProvideRegexCompletions, CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, CompletionOptionsStorage.ImportCompletionCommitBehavior, 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, LspOptionsStorage.LspEnableAutoInsert, LanguageServerProjectSystemOptionsStorage.BinaryLogPath, LanguageServerProjectSystemOptionsStorage.EnableAutomaticRestore, LanguageServerProjectSystemOptionsStorage.EnableFileBasedPrograms, LanguageServerProjectSystemOptionsStorage.EnableSemanticErrorsInMiscellaneousFiles, MetadataAsSourceOptionsStorage.NavigateToSourceLinkAndEmbeddedSources, LspOptionsStorage.LspOrganizeImportsOnFormat, ]; }