39 references to SnippetsRule
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CSharpCompletionService.cs (3)
46var snippetRule = options.SnippetsBehavior; 55if (snippetRule == SnippetsRule.Default) 57snippetRule = SnippetsRule.AlwaysInclude;
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
177if (rules.SnippetsRule != SnippetsRule.IncludeAfterTypingIdentifierQuestionTab)
Microsoft.CodeAnalysis.Features (18)
Completion\CompletionOptions.cs (2)
18public SnippetsRule SnippetsBehavior { get; init; } = SnippetsRule.Default;
Completion\CompletionRules.cs (9)
40public SnippetsRule SnippetsRule { get; } 47SnippetsRule snippetsRule) 70defaultEnterKeyRule, SnippetsRule.Default); 86SnippetsRule snippetsRule = SnippetsRule.Default) 101Optional<SnippetsRule> snippetsRule = default) 107var newSnippetsRule = snippetsRule.HasValue ? snippetsRule.Value : SnippetsRule; 155public CompletionRules WithSnippetsRule(SnippetsRule snippetsRule) 168snippetsRule: SnippetsRule.Default);
Completion\CompletionService.ProviderManager.cs (6)
190var snippetsRule = options.SnippetsBehavior != SnippetsRule.Default 194if (snippetsRule is SnippetsRule.Default or 195SnippetsRule.NeverInclude) 199else if (snippetsRule == SnippetsRule.AlwaysInclude) 203else if (snippetsRule == SnippetsRule.IncludeAfterTypingIdentifierQuestionTab)
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
122SnippetsBehavior = SnippetsRule.NeverInclude,
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Options\CompletionOptionsStorage.cs (2)
49public static readonly PerLanguageOption2<SnippetsRule> SnippetsBehavior = new("dotnet_snippets_behavior", CompletionOptions.Default.SnippetsBehavior, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<SnippetsRule>(), group: s_completionOptionGroup);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Completion\CompletionResolveTests.cs (1)
378testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.SnippetsBehavior, LanguageNames.CSharp, SnippetsRule.AlwaysInclude);
Completion\CompletionTests.cs (2)
338testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.SnippetsBehavior, LanguageNames.CSharp, SnippetsRule.NeverInclude); 1527testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.SnippetsBehavior, LanguageNames.CSharp, SnippetsRule.NeverInclude);
Microsoft.VisualStudio.LanguageServices.CSharp (4)
Options\AutomationObject\AutomationObject.Completion.cs (1)
50set { SetOption(CompletionOptionsStorage.SnippetsBehavior, (SnippetsRule)value); }
Options\AutomationObject\AutomationObject.ObsoleteAndUnused.cs (3)
50return GetOption(CompletionOptionsStorage.SnippetsBehavior) == SnippetsRule.AlwaysInclude 58SetOption(CompletionOptionsStorage.SnippetsBehavior, SnippetsRule.NeverInclude); 62SetOption(CompletionOptionsStorage.SnippetsBehavior, SnippetsRule.AlwaysInclude);
Roslyn.VisualStudio.Next.UnitTests (8)
UnifiedSettings\UnifiedSettingsTests.cs (8)
88customDefaultValue: SnippetsRule.AlwaysInclude, 90enumValues: [SnippetsRule.NeverInclude, SnippetsRule.AlwaysInclude, SnippetsRule.IncludeAfterTypingIdentifierQuestionTab], 200customDefaultValue: SnippetsRule.IncludeAfterTypingIdentifierQuestionTab, 202enumValues: [SnippetsRule.NeverInclude, SnippetsRule.AlwaysInclude, SnippetsRule.IncludeAfterTypingIdentifierQuestionTab],