56 references to Options
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\CodeActions\SharedVerifierState.cs (1)
45/// Gets a collection of options to apply to <see cref="Solution.Options"/> for testing. Values may be added
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
Completion\CompletionServiceTests.cs (1)
136workspace.CurrentSolution.Options.WithChangedOption(new OptionKey(ThirdPartyOption.Instance, LanguageNames.CSharp), 1))));
Workspaces\WorkspaceTests_EditorFeatures.cs (4)
1466var defaultValue = solution.Options.GetOption(optionKey); 1470var newOptions = solution.Options.WithChangedOption(optionKey, changedValue); 1472var newOptionValue = newSolution.Options.GetOption(optionKey); 1477var currentOptionValue = workspace1.CurrentSolution.Options.GetOption(optionKey);
Microsoft.CodeAnalysis.EditorFeatures (2)
IntelliSense\AsyncCompletion\CompletionSource.cs (2)
169document.Project, document.Project.Services, sourceText, triggerLocation.Position, roslynTrigger, options, document.Project.Solution.Options, _roles); 394document, triggerLocation, options, document.Project.Solution.Options, roslynTrigger, _roles, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractCompletionProviderTests.cs (1)
1058var isTextualTriggerCharacterResult = service.ShouldTriggerCompletion(document.Project, document.Project.Services, text, position + 1, trigger, options, document.Project.Solution.Options, GetRoles(document));
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (2)
Completion\OmniSharpCompletionService.cs (2)
25return completionService.ShouldTriggerCompletion(document.Project, document.Project.Services, text, caretPosition, trigger, options.ToCompletionOptions(), document.Project.Solution.Options, roles); 37return completionService.GetCompletionsAsync(document, caretPosition, options.ToCompletionOptions(), document.Project.Solution.Options, trigger, roles, cancellationToken);
Microsoft.CodeAnalysis.Features (4)
Completion\CompletionProvider.cs (1)
58=> ShouldTriggerCompletion(document.Project.Services, await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false), caretPosition, trigger, options, document.Project.Solution.Options);
Completion\CompletionService.cs (1)
124/// <param name="passThroughOptions">Options originating either from external caller of the <see cref="CompletionService"/> or set externally to <see cref="Solution.Options"/>.</param>
Completion\CompletionService_GetCompletions.cs (1)
48var passThroughOptions = options ?? document.Project.Solution.Options;
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
128var passThroughOptions = document.Project.Solution.Options;
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Completion\CompletionHandler.cs (2)
93&& !completionService.ShouldTriggerCompletion(project, project.Services, documentText, position, completionTrigger, completionOptions, project.Solution.Options, roles: null)) 176var completionList = await completionService.GetCompletionsAsync(document, position, completionOptions, document.Project.Solution.Options, completionTrigger, cancellationToken: cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (12)
Formatting\Formatter.cs (1)
321return syntaxFormattingService.GetFormattingOptions(optionSet ?? workspace.CurrentSolution.Options);
Options\ILegacyWorkspaceOptionService.cs (1)
13/// <see cref="Workspace.Options"/> and <see cref="Solution.Options"/>.
Options\SolutionOptionSet.cs (1)
13/// Implements in-proc only storage for <see cref="Solution.Options"/>.
Recommendations\Recommender.cs (1)
60options ??= project.Solution.Options;
Rename\Renamer.cs (2)
41=> RenameSymbolAsync(solution, symbol, GetSymbolRenameOptions(optionSet ?? solution.Options), newName, cancellationToken); 76=> RenameDocumentAsync(document, GetDocumentRenameOptions(optionSet ?? document.Project.Solution.Options), newDocumentName, newDocumentFolders, cancellationToken);
Workspace\Solution\Document.cs (2)
544/// Returns the options that should be applied to this document. This consists of global options from <see cref="Solution.Options"/>, 555InitializeCachedOptions(Project.Solution.Options);
Workspace\Workspace.cs (4)
549/// Gets or sets the set of all global options and <see cref="Solution.Options"/>. 550/// Setter also force updates the <see cref="CurrentSolution"/> to have the updated <see cref="Solution.Options"/>. 556return this.CurrentSolution.Options; 1551if (this.CurrentSolution.Options != newSolution.Options)
Microsoft.CodeAnalysis.Workspaces.UnitTests (26)
Formatter\FormatterTests.cs (2)
72var solutionOptions = workspace.CurrentSolution.Options. 126var updatedSolutionOptions = OptionsTestHelpers.GetOptionSetWithChangedOptions(workspace.CurrentSolution.Options, OptionsTestHelpers.PublicFormattingOptionsWithNonDefaultValues);
Simplifier\SimplifierTests.cs (1)
81var updatedOptions = GetOptionSetWithChangedPublicOptions(workspace.CurrentSolution.Options);
SolutionTests\SolutionTests.cs (4)
5393var options = s0.Options.WithChangedOption(option, LanguageNames.CSharp, changedValue); 5397VerifyOptionSet(s1.Options); 5401VerifyOptionSet(s2.Options); 5405VerifyOptionSet(s4.Options);
WorkspaceServiceTests\GlobalOptionServiceTests.cs (18)
74Assert.Equal(2, newSolution1.Options.GetOption<int>(optionKey)); 75Assert.Equal(3, newSolution1.Options.GetOption<int>(perLanguageOptionKey)); 79Assert.Equal(1, oldSolution2.Options.GetOption<int>(optionKey)); 80Assert.Equal(1, oldSolution2.Options.GetOption<int>(perLanguageOptionKey)); 85Assert.Equal(2, newSolution2.Options.GetOption<int>(optionKey)); 86Assert.Equal(3, newSolution2.Options.GetOption<int>(perLanguageOptionKey)); 105Assert.Equal("EOLN", newSolution1.Options.GetOption<string>(perLanguageOptionKey)); 109Assert.Equal(perLanguageOptionKey.Option.DefaultValue, oldSolution2.Options.GetOption<string>(perLanguageOptionKey)); 113Assert.Equal("EOLN", workspace1.CurrentSolution.Options.GetOption<string>(perLanguageOptionKey)); 114Assert.Equal("EOLN", workspace2.CurrentSolution.Options.GetOption<string>(perLanguageOptionKey)); 120Assert.Equal("EOLN", workspace1.CurrentSolution.Options.GetOption<string>(perLanguageOptionKey)); 121Assert.Equal("EOLN", workspace2.CurrentSolution.Options.GetOption<string>(perLanguageOptionKey)); 128Assert.Equal("NEW_LINE", workspace1.CurrentSolution.Options.GetOption<string>(perLanguageOptionKey)); 129Assert.Equal("NEW_LINE", workspace2.CurrentSolution.Options.GetOption<string>(perLanguageOptionKey)); 134Assert.Equal("NEW_LINE", workspace1.CurrentSolution.Options.GetOption<string>(perLanguageOptionKey)); 135Assert.Equal("NEW_LINE", workspace2.CurrentSolution.Options.GetOption<string>(perLanguageOptionKey)); 139Assert.Equal("NEW_LINE2", workspace1.CurrentSolution.Options.GetOption<string>(perLanguageOptionKey)); 140Assert.Equal("NEW_LINE2", workspace2.CurrentSolution.Options.GetOption<string>(perLanguageOptionKey));
WorkspaceTests\WorkspaceTests.cs (1)
192var newOptions = OptionsTestHelpers.GetOptionSetWithChangedOptions(solution.Options, OptionsTestHelpers.AllPublicOptionsWithNonDefaultValues);
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
496solution = solution.WithOptions(solution.Options