8 instantiations of DocumentOptionSet
Microsoft.CodeAnalysis.Workspaces (2)
Options\DocumentOptionSet.cs (1)
101=> new DocumentOptionSet(_configOptions, _underlyingOptions, _language, _values.SetItem(optionKey, internalValue));
Workspace\Solution\Document.cs (1)
494return new DocumentOptionSet(options, solutionOptions, Project.Language);
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
Options\DocumentOptionSetTests.cs (6)
30var set = new DocumentOptionSet(configOptions, underlyingSet, LanguageNames.CSharp); 55var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp); 74var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp); 91var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp); 130var set = new DocumentOptionSet(configOptions, underlyingSet, LanguageNames.CSharp); 152var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp);
19 references to DocumentOptionSet
Microsoft.CodeAnalysis.EditorFeatures (4)
ExternalAccess\VSTypeScript\Api\IVSTypeScriptFormattingInteractionService.cs (4)
33Task<ImmutableArray<TextChange>> GetFormattingChangesAsync(Document document, TextSpan? textSpan, DocumentOptionSet? documentOptions, CancellationToken cancellationToken); 38Task<ImmutableArray<TextChange>> GetFormattingChangesOnPasteAsync(Document document, TextSpan textSpan, DocumentOptionSet? documentOptions, CancellationToken cancellationToken); 45Task<ImmutableArray<TextChange>> GetFormattingChangesAsync(Document document, char typedChar, int position, DocumentOptionSet? documentOptions, CancellationToken cancellationToken); 50Task<ImmutableArray<TextChange>> GetFormattingChangesOnReturnAsync(Document document, int position, DocumentOptionSet? documentOptions, CancellationToken cancellationToken);
Microsoft.CodeAnalysis.Workspaces (7)
Formatting\Formatter.cs (1)
370var optionSet = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false);
Options\DocumentOptionSet.cs (3)
104/// Creates a new <see cref="DocumentOptionSet" /> that contains the changed value. 106public DocumentOptionSet WithChangedOption<T>(PerLanguageOption<T> option, T value) 107=> (DocumentOptionSet)WithChangedOption(option, _language, value);
Workspace\Solution\Document.cs (3)
468private AsyncLazy<DocumentOptionSet>? _cachedOptions; 478public Task<DocumentOptionSet> GetOptionsAsync(CancellationToken cancellationToken = default) 491var newAsyncLazy = new AsyncLazy<DocumentOptionSet>(async cancellationToken =>
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
Formatter\FormatterTests.cs (1)
82var documentOptions = await document.GetOptionsAsync();
Options\DocumentOptionSetTests.cs (6)
30var set = new DocumentOptionSet(configOptions, underlyingSet, LanguageNames.CSharp); 55var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp); 74var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp); 91var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp); 130var set = new DocumentOptionSet(configOptions, underlyingSet, LanguageNames.CSharp); 152var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp);
SolutionTests\SolutionTests.cs (1)
4394var documentOptions = await document.GetOptionsAsync(CancellationToken.None);