108 references to EditorOptionsService
Microsoft.CodeAnalysis.CSharp.EditorFeatures (19)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
44EditorOptionsService editorOptionsService) : AbstractAutomaticLineEnderCommandHandler(undoRegistry, editorOperations, editorOptionsService)
BlockCommentEditing\BlockCommentEditingCommandHandler.cs (4)
36private readonly EditorOptionsService _editorOptionsService; 43EditorOptionsService editorOptionsService) 96private static string? GetTextToInsert(SnapshotPoint caretPosition, ITextBuffer buffer, EditorOptionsService editorOptionsService, CancellationToken cancellationToken) 269EditorOptionsService editorOptionsService,
BlockCommentEditing\CloseBlockCommentCommandHandler.cs (2)
23internal sealed class CloseBlockCommentCommandHandler(EditorOptionsService editorOptionsService) : ICommandHandler<TypeCharCommandArgs> 25private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
CommentSelection\CSharpToggleBlockCommentCommandHandler.cs (1)
33EditorOptionsService editorOptionsService) :
ConvertNamespace\ConvertNamespaceCommandHandler.cs (2)
42EditorOptionsService editorOptionsService, 55private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
DocumentationComments\DocumentationCommentCommandHandler.cs (1)
28EditorOptionsService editorOptionsService,
Formatting\CSharpFormattingInteractionService.cs (2)
24internal sealed class CSharpFormattingInteractionService(EditorOptionsService editorOptionsService) : IFormattingInteractionService 36private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
RawStringLiteral\RawStringLiteralCommandHandler.cs (2)
25EditorOptionsService editorOptionsService) 29private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
SplitStringLiteral\SplitStringLiteralCommandHandler.cs (2)
34EditorOptionsService editorOptionsService) : ICommandHandler<ReturnKeyCommandArgs> 38private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
StringCopyPaste\StringCopyPasteCommandHandler.cs (2)
58EditorOptionsService editorOptionsService) : 66private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
CommentSelection\CSharpCommentSelectionTests.cs (1)
119workspace.GetService<EditorOptionsService>());
Formatting\Indentation\SmartIndenterTests.cs (2)
3426var editorOptionsService = workspace.GetService<EditorOptionsService>();
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (2)
3075var optionsService = workspace.GetService<EditorOptionsService>();
Microsoft.CodeAnalysis.EditorFeatures (55)
AutomaticCompletion\AbstractAutomaticLineEnderCommandHandler.cs (2)
28public readonly EditorOptionsService EditorOptionsService; 35EditorOptionsService editorOptionsService)
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (1)
53private EditorOptionsService EditorOptionsService => _provider._editorOptionsService;
AutomaticCompletion\BraceCompletionSessionProvider.cs (2)
39EditorOptionsService editorOptionsService) : IBraceCompletionSessionProvider 44private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
CommentSelection\AbstractCommentSelectionBase.cs (2)
46private readonly EditorOptionsService _editorOptionsService; 51EditorOptionsService editorOptionsService)
CommentSelection\AbstractToggleBlockCommentBase.cs (1)
38EditorOptionsService editorOptionsService)
CommentSelection\CommentUncommentSelectionCommandHandler.cs (1)
34EditorOptionsService editorOptionsService) :
CommentSelection\ToggleBlockCommentCommandHandler.cs (1)
30EditorOptionsService editorOptionsService) : AbstractToggleBlockCommentBase(undoHistoryRegistry, editorOperationsFactoryService, navigatorSelectorService, editorOptionsService)
CommentSelection\ToggleLineCommentCommandHandler.cs (1)
38EditorOptionsService editorOptionsService) :
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (2)
34private readonly EditorOptionsService _editorOptionsService; 41EditorOptionsService editorOptionsService,
InlineHints\InlineHintsTaggerProvider.cs (2)
43EditorOptionsService editorOptionsService, 56public readonly EditorOptionsService EditorOptionsService = editorOptionsService;
IntelliSense\AsyncCompletion\CompletionSource.cs (2)
66private readonly EditorOptionsService _editorOptionsService; 75EditorOptionsService editorOptionsService)
IntelliSense\AsyncCompletion\CompletionSourceProvider.cs (2)
29EditorOptionsService editorOptionsService) : IAsyncCompletionSourceProvider 35private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
IntelliSense\AsyncCompletion\ItemManager.cs (2)
36private readonly EditorOptionsService _editorOptionsService; 38internal ItemManager(RecentItemsManager recentItemsManager, EditorOptionsService editorOptionsService)
IntelliSense\AsyncCompletion\ItemManagerProvider.cs (1)
21internal sealed class ItemManagerProvider(RecentItemsManager recentItemsManager, EditorOptionsService editorOptionsService) : IAsyncCompletionItemManagerProvider
IntelliSense\QuickInfo\QuickInfoSourceProvider.cs (2)
31EditorOptionsService editorOptionsService, 38private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
IntelliSense\QuickInfo\QuickInfoSourceProvider.QuickInfoSource.cs (2)
37EditorOptionsService editorOptionsService, 45private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
Interactive\InteractiveCommandHandler.cs (2)
26private readonly EditorOptionsService _editorOptionsService; 31EditorOptionsService editorOptionsService,
Interactive\ResetInteractive.cs (2)
33private readonly EditorOptionsService _editorOptionsService; 37internal ResetInteractive(EditorOptionsService editorOptionsService, Func<string, string> createReference, Func<string, string> createImport)
Options\EditorOptionsService.cs (1)
15[Export(typeof(EditorOptionsService)), Shared]
Options\TextBufferOptionProviders.cs (6)
20public static DocumentationCommentOptions GetDocumentationCommentOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, LanguageServices languageServices) 27public static LineFormattingOptions GetLineFormattingOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, bool explicitFormat) 43public static SyntaxFormattingOptions GetSyntaxFormattingOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, StructuredAnalyzerConfigOptions fallbackOptions, LanguageServices languageServices, bool explicitFormat) 55public static IndentationOptions GetIndentationOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, StructuredAnalyzerConfigOptions fallbackOptions, LanguageServices languageServices, bool explicitFormat) 68public static AddImportPlacementOptions GetAddImportPlacementOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, StructuredAnalyzerConfigOptions fallbackOptions, LanguageServices languageServices, bool allowInHiddenRegions) 75public static CodeCleanupOptions GetCodeCleanupOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, StructuredAnalyzerConfigOptions fallbackOptions, LanguageServices languageServices, bool explicitFormat, bool allowImportsInHiddenRegions)
Preview\AbstractPreviewFactoryService.cs (2)
43EditorOptionsService editorOptionsService, 56private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
Preview\PreviewFactoryService.cs (1)
39EditorOptionsService editorOptionsService,
QuickInfo\ContentControlService.cs (2)
32private readonly EditorOptionsService _editorOptionsService; 41EditorOptionsService editorOptionsService)
QuickInfo\ProjectionBufferContent.cs (3)
29private readonly EditorOptionsService _editorOptionsService; 38EditorOptionsService editorOptionsService, 56EditorOptionsService editorOptionsService,
Shared\Extensions\ITextSnapshotExtensions.cs (1)
28EditorOptionsService editorOptionsService,
SmartIndent\SmartIndent.cs (2)
18internal sealed partial class SmartIndent(ITextView textView, EditorOptionsService editorOptionsService) : ISmartIndent 21private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
SmartIndent\SmartIndentProvider.cs (2)
19internal sealed class SmartIndentProvider(EditorOptionsService editorOptionsService) : ISmartIndentProvider 21private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
SplitComment\SplitCommentCommandHandler.cs (2)
35EditorOptionsService editorOptionsService, 40private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
Structure\AbstractStructureTaggerProvider.cs (2)
41EditorOptionsService editorOptionsService, 50protected readonly EditorOptionsService EditorOptionsService = editorOptionsService;
Structure\StructureTaggerProvider.cs (1)
31EditorOptionsService editorOptionsService,
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Formatting\CoreFormatterTestsBase.cs (2)
52int point, int? expectedIndentation, ITextView textView, EditorTestHostDocument subjectDocument, EditorOptionsService editorOptionsService) 116workspace.GetService<EditorOptionsService>());
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CommentSelection\CommentUncommentSelectionCommandHandlerTests.cs (2)
710var editorOptionsService = exportProvider.GetExportedValue<EditorOptionsService>();
Microsoft.VisualStudio.LanguageServices (13)
Interactive\VsResetInteractive.cs (1)
41EditorOptionsService editorOptionsService,
LanguageService\AbstractLanguageService`2.cs (2)
59internal readonly EditorOptionsService EditorOptionsService; 84this.EditorOptionsService = this.Package.ComponentModel.GetService<EditorOptionsService>();
Snippets\AbstractSnippetCommandHandler.cs (2)
31EditorOptionsService editorOptionsService, 41private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
Snippets\SnippetExpansionClient.cs (2)
70internal readonly EditorOptionsService EditorOptionsService; 100EditorOptionsService editorOptionsService)
Snippets\SnippetExpansionClientFactory.cs (2)
34EditorOptionsService editorOptionsService) 42private readonly EditorOptionsService _editorOptionsService = editorOptionsService;
Venus\ContainedDocument.cs (4)
84private readonly EditorOptionsService _editorOptionsService; 120_editorOptionsService = componentModel.GetService<EditorOptionsService>(); 772var editorOptionsService = _componentModel.GetService<EditorOptionsService>();
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CodeModel\CSharpCodeModelService.cs (1)
45EditorOptionsService editorOptionsService,
CodeModel\CSharpCodeModelServiceFactory.cs (2)
21private readonly EditorOptionsService _editorOptionsService; 28EditorOptionsService editorOptionsService,
Interactive\CSharpInteractiveCommandHandler.cs (1)
32EditorOptionsService editorOptionsService,
Interactive\ResetInteractiveWindowFromProjectCommand.cs (2)
28MefInjection<EditorOptionsService> mefEditorOptionsService, 47var editorOptionsService = await mefEditorOptionsService.GetServiceAsync().ConfigureAwait(false);
Snippets\SnippetCommandHandler.cs (1)
43EditorOptionsService editorOptionsService) :
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (5)
Interactive\Commands\InteractiveWindowCommandHandlerTestState.cs (1)
53GetExportedValue<EditorOptionsService>(),
Interactive\Commands\ResetInteractiveTests.cs (2)
87var editorOptionsService = workspace.GetService<EditorOptionsService>();
Interactive\Commands\TestInteractiveCommandHandler.cs (1)
25EditorOptionsService editorOptionsService,
Interactive\Commands\TestResetInteractive.cs (1)
46EditorOptionsService editorOptionsService,