2 instantiations of DocumentOptionSet
Microsoft.CodeAnalysis.Workspaces (2)
Options\DocumentOptionSet.cs (1)
94=> new DocumentOptionSet(_configOptions, _underlyingOptions, Language, _values.SetItem(optionKey, internalValue));
Workspace\Solution\Document.cs (1)
567return new DocumentOptionSet(options, arg.solutionOptions, arg.self.Project.Language);
17 references to DocumentOptionSet
Microsoft.CodeAnalysis.EditorFeatures (4)
ExternalAccess\VSTypeScript\Api\IVSTypeScriptFormattingInteractionService.cs (4)
31Task<ImmutableArray<TextChange>> GetFormattingChangesAsync(Document document, TextSpan? textSpan, DocumentOptionSet? documentOptions, CancellationToken cancellationToken); 36Task<ImmutableArray<TextChange>> GetFormattingChangesOnPasteAsync(Document document, TextSpan textSpan, DocumentOptionSet? documentOptions, CancellationToken cancellationToken); 43Task<ImmutableArray<TextChange>> GetFormattingChangesAsync(Document document, char typedChar, int position, DocumentOptionSet? documentOptions, CancellationToken cancellationToken); 48Task<ImmutableArray<TextChange>> GetFormattingChangesOnReturnAsync(Document document, int position, DocumentOptionSet? documentOptions, CancellationToken cancellationToken);
Microsoft.CodeAnalysis.Workspaces (6)
Formatting\Formatter.cs (1)
369var optionSet = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false);
Options\DocumentOptionSet.cs (3)
97/// Creates a new <see cref="DocumentOptionSet" /> that contains the changed value. 99public DocumentOptionSet WithChangedOption<T>(PerLanguageOption<T> option, T value) 100=> (DocumentOptionSet)WithChangedOption(option, Language, value);
Workspace\Solution\Document.cs (2)
541private AsyncLazy<DocumentOptionSet>? _cachedOptions; 551public Task<DocumentOptionSet> GetOptionsAsync(CancellationToken cancellationToken = default)
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
Formatter\FormatterTests.cs (1)
81var documentOptions = await document.GetOptionsAsync();
Options\DocumentOptionSetTests.cs (6)
29var 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); 131var set = new DocumentOptionSet(configOptions, underlyingSet, LanguageNames.CSharp); 153var set = new DocumentOptionSet(configOptions: null, underlyingSet, LanguageNames.CSharp);