1 instantiation of SolutionServices
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Host\HostWorkspaceServices.cs (1)
69SolutionServices = new SolutionServices(this);
259 references to SolutionServices
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (3)
67var solutionServices = document.Project.Solution.Services; 118SolutionServices solutionServices, 181SolutionServices solutionServices,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
73var solutionServices = document.Project.Solution.Services;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
33public SolutionServices SolutionServices => LanguageServices.SolutionServices;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
42var services = document.Project.Solution.Services;
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
153SolutionServices services, SyntaxNode currentRoot,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (8)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (2)
392SolutionServices services, 483SolutionServices services,
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (6)
28SolutionServices services, 62SolutionServices services, 96SolutionServices services, 169SolutionServices services, 228SolutionServices services, 285SolutionServices services,
Microsoft.CodeAnalysis.CSharp.Features (10)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
104SolutionServices services,
Completion\CompletionProviders\ImportCompletion\TypeImportCompletionServiceFactory.cs (1)
25private sealed class CSharpTypeImportCompletionService(SolutionServices services) : AbstractTypeImportCompletionService(services)
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
167CompletionContext context, SolutionServices services, SemanticModel semanticModel, bool isPreProcessorContext)
Completion\CSharpCompletionService.cs (1)
33private CSharpCompletionService(SolutionServices services, IAsynchronousOperationListenerProvider listenerProvider)
EmbeddedLanguages\CSharpTestEmbeddedLanguageClassifier.cs (1)
112Host.SolutionServices solutionServices, SemanticModel semanticModel, VirtualCharSequence virtualCharsWithoutMarkup, CancellationToken cancellationToken)
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (1)
82var services = solution.Services;
SemanticSearch\CSharpSemanticSearchService.cs (1)
26SolutionServices services,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
42var services = document.Project.Solution.Services;
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
153SolutionServices services, SyntaxNode currentRoot,
Structure\CSharpBlockStructureService.cs (1)
29internal class CSharpBlockStructureService(SolutionServices services) : BlockStructureServiceWithProviders(services)
Microsoft.CodeAnalysis.EditorFeatures (15)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (5)
41SolutionServices SolutionServices, 136private (SolutionServices solutionServices, IClassificationService classificationService)? TryGetClassificationService(ITextSnapshot snapshot) 370SolutionServices solutionServices, 469SolutionServices solutionServices, 508SolutionServices solutionServices,
EditAndContinue\EditAndContinueLanguageService.cs (1)
79private SolutionServices Services
Formatting\FormatCommandHandler.Paste.cs (1)
66var services = solution.Services;
Interactive\Completion\InteractiveCommandCompletionService.cs (1)
27private InteractiveCommandCompletionService(SolutionServices services, IAsynchronousOperationListenerProvider listenerProvider)
Shared\Extensions\HostWorkspaceServicesExtensions.cs (7)
20this SolutionServices workspaceServices, ITextBuffer textBuffer) 26this SolutionServices workspaceServices, IContentType contentType) 47private static readonly ConditionalWeakTable<SolutionServices, Dictionary<string, string>> s_hostServicesToContentTypeMap = new(); 49private static string? GetDefaultContentTypeName(SolutionServices workspaceServices, string language) 60private static Dictionary<string, string> CreateContentTypeMap(SolutionServices hostWorkspaceServices) 87this SolutionServices workspaceServices, 102SolutionServices workspaceServices)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\WorkspaceTestLogger.cs (1)
30public static void SetWorkspaceTestOutput(this SolutionServices services, ITestOutputHelper outputHelper)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Peek\PeekableItemSource.cs (1)
75var services = document.Project.Solution.Services;
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (4)
Classification\ClassificationTests.vb (2)
345Public Sub AddSyntacticClassifications(services As SolutionServices, root As SyntaxNode, textSpans As ImmutableArray(Of TextSpan), result As SegmentedList(Of ClassifiedSpan), cancellationToken As CancellationToken) Implements IClassificationService.AddSyntacticClassifications 363Public Function ComputeSyntacticChangeRange(services As SolutionServices, oldRoot As SyntaxNode, newRoot As SyntaxNode, timeout As TimeSpan, cancellationToken As CancellationToken) As TextChangeRange? Implements IClassificationService.ComputeSyntacticChangeRange
IntelliSense\CompletionServiceTests.vb (1)
51Public Sub New(services As SolutionServices, listenerProvider As IAsynchronousOperationListenerProvider)
IntelliSense\CompletionServiceTests_Exclusivitiy.vb (1)
57Public Sub New(services As SolutionServices)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Internal\Classification\FSharpClassificationService.cs (2)
67public void AddSyntacticClassifications(SolutionServices services, SyntaxNode? root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 72public TextChangeRange? ComputeSyntacticChangeRange(SolutionServices services, SyntaxNode oldRoot, SyntaxNode newRoot, TimeSpan timeout, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorCSharpFormattingInteractionService.cs (1)
81private static SyntaxFormattingOptions GetFormattingOptions(SolutionServices services, RazorIndentationOptions indentationOptions)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Internal\DescriptionService.cs (1)
66var services = project.Solution.Services;
Microsoft.CodeAnalysis.Features (58)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.AddConstructorParametersCodeAction.cs (1)
50var services = _document.Project.Solution.Services;
AddImport\AbstractAddImportCodeFixProvider.cs (1)
59var services = document.Project.Solution.Services;
AddPackage\AbstractAddPackageCodeFixProvider.cs (1)
34var workspaceServices = document.Project.Solution.Services;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
55SolutionServices services,
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (1)
174var services = document.Project.Solution.Services;
Completion\CommonCompletionService.cs (1)
14protected CommonCompletionService(SolutionServices services, IAsynchronousOperationListenerProvider listenerProvider)
Completion\CommonCompletionUtilities.cs (2)
86SolutionServices workspaceServices, SemanticModel semanticModel, int position, ISymbol symbol, int overloadCount, SymbolDescriptionOptions options, SupportedPlatformData? supportedPlatforms, CancellationToken cancellationToken) 151SolutionServices workspaceServices, SemanticModel semanticModel, int position, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, SupportedPlatformData? supportedPlatforms, CancellationToken cancellationToken)
Completion\CompletionService.cs (2)
33private readonly SolutionServices _services; 42internal CompletionService(SolutionServices services, IAsynchronousOperationListenerProvider listenerProvider)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
34internal AbstractTypeImportCompletionService(SolutionServices services)
Completion\Providers\SymbolCompletionItem.cs (1)
205var services = document.Project.Solution.Services;
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
419var services = document.Project.Solution.Services;
DesignerAttribute\DesignerAttributeDiscoveryService.cs (3)
64var solutionServices = project.Solution.Services; 81SolutionServices solutionServices, 104SolutionServices solutionServices,
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (1)
17internal sealed class RemoteDebuggingSessionProxy(SolutionServices services, IDisposable? connection, DebuggingSessionId sessionId) : IActiveStatementSpanFactory, IDisposable
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (1)
25internal readonly partial struct RemoteEditAndContinueServiceProxy(SolutionServices services)
EmbeddedLanguages\Classification\AbstractEmbeddedLanguageClassificationService.cs (3)
52SolutionServices services, Project? project, SemanticModel semanticModel, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 67SolutionServices solutionServices, 76private readonly SolutionServices _solutionServices = solutionServices;
EmbeddedLanguages\Classification\EmbeddedLanguageClassifierContext.cs (2)
15internal readonly SolutionServices SolutionServices; 42SolutionServices solutionServices,
ExternalAccess\UnitTesting\API\NewUnitTestingIncrementalAnalyzerProvider.cs (3)
14private readonly SolutionServices _services; 21SolutionServices services, 43public static NewUnitTestingIncrementalAnalyzerProvider? TryRegister(string? workspaceKind, SolutionServices services, string analyzerName, INewUnitTestingIncrementalAnalyzerProviderImplementation provider)
ExternalAccess\UnitTesting\LegacySolutionEvents\UnitTestingLegacySolutionEventsListener.cs (1)
39public bool ShouldReportChanges(SolutionServices services)
ExternalAccess\UnitTesting\SolutionCrawler\IUnitTestingSolutionCrawlerService.cs (1)
19void Reanalyze(string? workspaceKind, SolutionServices services, IUnitTestingIncrementalAnalyzer analyzer, IEnumerable<ProjectId>? projectIds = null, IEnumerable<DocumentId>? documentIds = null);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (5)
30private readonly Dictionary<(string workspaceKind, SolutionServices services), UnitTestingWorkCoordinator> _documentWorkCoordinatorMap = []; 59var solutionServices = solution.Services; 128public void Reanalyze(string? workspaceKind, SolutionServices services, IUnitTestingIncrementalAnalyzer analyzer, IEnumerable<ProjectId>? projectIds, IEnumerable<DocumentId>? documentIds) 264SolutionServices solutionServices, 271public readonly SolutionServices Services = solutionServices;
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerService.cs (1)
30public void Reanalyze(string? workspaceKind, SolutionServices services, IUnitTestingIncrementalAnalyzer analyzer, IEnumerable<ProjectId>? projectIds = null, IEnumerable<DocumentId>? documentIds = null)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (2)
287private readonly Dictionary<(string workspaceKind, SolutionServices services), ImmutableArray<IUnitTestingIncrementalAnalyzer>> _analyzerMap = []; 289public ImmutableArray<IUnitTestingIncrementalAnalyzer> GetOrderedAnalyzers(string workspaceKind, SolutionServices services, bool onlyHighPriorityAnalyzer)
ExtractMethod\MethodExtractor.cs (1)
161var services = document.Project.Solution.Services;
GenerateOverrides\GenerateOverridesWithDialogCodeAction.cs (1)
40var services = _document.Project.Solution.Services;
GoToDefinition\AbstractGoToDefinitionSymbolService.cs (1)
26var services = document.Project.Solution.Services;
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
480var services = document.Project.Solution.Services;
LegacySolutionEvents\ILegacySolutionEventsAggregationService.cs (2)
23bool ShouldReportChanges(SolutionServices services); 36public bool ShouldReportChanges(SolutionServices services)
LegacySolutionEvents\ILegacySolutionEventsListener.cs (1)
18bool ShouldReportChanges(SolutionServices services);
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
58public (ProjectInfo, DocumentId) GetProjectInfoAndDocumentId(SolutionServices services, bool loadFileFromDisk)
QuickInfo\CommonQuickInfoContext.cs (2)
12SolutionServices services, 18public readonly SolutionServices Services = services;
QuickInfo\CommonSemanticQuickInfoProvider.cs (3)
154SolutionServices services, 191SolutionServices services, SemanticModel semanticModel, SyntaxToken token, CancellationToken cancellationToken) 237private ImmutableArray<ISymbol> GetSymbolsFromToken(SyntaxToken token, SolutionServices services, SemanticModel semanticModel, CancellationToken cancellationToken)
QuickInfo\QuickInfoUtilities.cs (2)
21public static Task<QuickInfoItem> CreateQuickInfoItemAsync(SolutionServices services, SemanticModel semanticModel, TextSpan span, ImmutableArray<ISymbol> symbols, SymbolDescriptionOptions options, CancellationToken cancellationToken) 25SolutionServices services,
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (3)
67var solutionServices = document.Project.Solution.Services; 118SolutionServices solutionServices, 181SolutionServices solutionServices,
Structure\BlockStructureServiceWithProviders.cs (2)
18private readonly SolutionServices _services; 21protected BlockStructureServiceWithProviders(SolutionServices services)
Workspace\MiscellaneousFileUtilities.cs (2)
24SolutionServices services, 82private static CompilationOptions GetCompilationOptionsWithScriptReferenceResolvers(SolutionServices services, CompilationOptions compilationOptions, string filePath)
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\LoadedProject.cs (1)
43public LoadedProject(ProjectSystemProject projectSystemProject, SolutionServices solutionServices, IFileChangeWatcher fileWatcher, ProjectTargetFrameworkManager targetFrameworkManager)
HostWorkspace\WorkspaceProject.cs (1)
21public WorkspaceProject(ProjectSystemProject project, SolutionServices solutionServices, ProjectTargetFrameworkManager targetFrameworkManager, ILoggerFactory logger)
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Features\CodeFixes\CodeFixService.cs (4)
395SolutionServices services, 868SolutionServices services) 930private ImmutableDictionary<LanguageKind, Lazy<ImmutableDictionary<CodeFixProvider, int>>> GetFixerPriorityPerLanguageMap(SolutionServices services) 1037public ImmutableDictionary<LanguageKind, Lazy<ImmutableDictionary<CodeFixProvider, int>>> GetFixerPriorityPerLanguageMap(SolutionServices services)
Features\EditAndContinue\EditAndContinueDiagnosticSource_OpenDocument.cs (1)
28var services = designTimeSolution.Services;
Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
42var services = document.Project.Solution.Services;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Completion\CompletionFeaturesTests.cs (2)
573private CSharpLspMockCompletionService(SolutionServices services, IAsynchronousOperationListenerProvider listenerProvider) : base(services, listenerProvider) 866private CSharpLspThrowExceptionOnChangeCompletionService(SolutionServices services, IAsynchronousOperationListenerProvider listenerProvider) : base(services, listenerProvider)
Completion\CompletionResolveTests.cs (1)
483public TestCaretOutOfScopeCompletionService(SolutionServices services) : base(services, AsynchronousOperationListenerProvider.NullProvider)
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Host\AssetProvider.cs (2)
26SolutionServices solutionServices) 35private readonly SolutionServices _solutionServices = solutionServices;
Services\BrokeredServiceBase.cs (1)
79public SolutionServices GetWorkspaceServices()
Services\LegacySolutionEvents\RemoteLegacySolutionEventsAggregationService.cs (1)
33var services = this.GetWorkspaceServices();
Microsoft.CodeAnalysis.Remote.Workspaces (6)
AbstractAssetProvider.cs (2)
32SolutionServices solutionServices, 76SolutionServices solutionServices,
ServiceHubRemoteHostClient.cs (3)
21private readonly SolutionServices _services; 34SolutionServices services, 55SolutionServices services,
SolutionAssetProvider.cs (1)
18internal sealed class SolutionAssetProvider(SolutionServices services) : ISolutionAssetProvider
Microsoft.CodeAnalysis.VisualBasic.Features (6)
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (1)
121services As SolutionServices,
Completion\CompletionProviders\ImportCompletionProvider\TypeImportCompletionServiceFactory.vb (1)
28Public Sub New(services As SolutionServices)
Completion\VisualBasicCompletionService.vb (1)
43Private Sub New(services As SolutionServices, listenerProvider As IAsynchronousOperationListenerProvider)
QuickInfo\VisualBasicSemanticQuickInfoProvider.vb (2)
53services As SolutionServices, 165services As SolutionServices,
Structure\VisualBasicBlockStructureService.vb (1)
29Friend Sub New(services As SolutionServices)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CodeCleanup\Providers\AbstractTokensCodeCleanupProvider.vb (1)
30Public Async Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync
CodeCleanup\Providers\CaseCorrectionCodeCleanupProvider.vb (1)
35Public Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (1)
42Public Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync
CodeCleanup\Providers\RemoveUnnecessaryLineContinuationCodeCleanupProvider.vb (1)
45Public Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync
Microsoft.CodeAnalysis.Workspaces (93)
CaseCorrection\CaseCorrector.cs (1)
69internal static SyntaxNode CaseCorrect(SyntaxNode root, ImmutableArray<TextSpan> spans, SolutionServices services, CancellationToken cancellationToken = default)
Classification\AbstractClassificationService.cs (2)
209SolutionServices services, SyntaxNode? root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken) 232public TextChangeRange? ComputeSyntacticChangeRange(SolutionServices services, SyntaxNode oldRoot, SyntaxNode newRoot, TimeSpan timeout, CancellationToken cancellationToken)
Classification\ClassificationServiceExtensions.cs (1)
17SolutionServices services,
Classification\Classifier.cs (2)
58SolutionServices services, 70SolutionServices services,
Classification\EmbeddedLanguageClassificationServiceExtensions.cs (1)
16SolutionServices solutionServices,
Classification\IClassificationService.cs (2)
34void AddSyntacticClassifications(SolutionServices services, SyntaxNode? root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken); 112SolutionServices workspace, SyntaxNode oldRoot, SyntaxNode newRoot,
Classification\IEmbeddedLanguageClassificationService.cs (1)
24SolutionServices solutionServices,
CodeCleanup\AbstractCodeCleanerService.cs (2)
73public async Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<ICodeCleanupProvider> providers, CancellationToken cancellationToken) 540SolutionServices services,
CodeCleanup\CodeCleaner.cs (2)
87public static Task<SyntaxNode> CleanupAsync(SyntaxNode root, TextSpan span, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default) 94public static Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default)
CodeCleanup\ICodeCleanerService.cs (1)
37Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<ICodeCleanupProvider> providers, CancellationToken cancellationToken);
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
32public Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, CancellationToken cancellationToken)
CodeCleanup\Providers\ICodeCleanupProvider.cs (1)
34Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, CancellationToken cancellationToken);
CodeCleanup\Providers\SimplificationCodeCleanupProvider.cs (1)
22public Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, CancellationToken cancellationToken)
Editing\SyntaxEditor.cs (1)
80public SyntaxEditor(SyntaxNode root, SolutionServices services)
Editing\SyntaxGenerator.cs (1)
65internal static SyntaxGenerator GetGenerator(SolutionServices services, string language)
FindSymbols\SymbolFinder.cs (4)
63SolutionServices services, 79SolutionServices services, 96SolutionServices services, 113SolutionServices services,
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (4)
125SolutionServices solutionServices, 144SolutionServices services, 169SolutionServices services, 211SolutionServices services, PortableExecutableReference reference, CancellationToken cancellationToken)
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (2)
29SolutionServices services, 82SolutionServices services,
Formatting\Formatter.cs (13)
95var services = document.Project.Solution.Services; 116var services = document.Project.Solution.Services; 133var services = document.Project.Solution.Services; 154internal static SyntaxNode Format(SyntaxNode node, SyntaxAnnotation annotation, SolutionServices services, SyntaxFormattingOptions options, CancellationToken cancellationToken) 177internal static SyntaxNode Format(SyntaxNode node, SyntaxAnnotation annotation, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 191internal static SyntaxNode Format(SyntaxNode node, SolutionServices services, SyntaxFormattingOptions options, CancellationToken cancellationToken) 206internal static SyntaxNode Format(SyntaxNode node, TextSpan span, SolutionServices services, SyntaxFormattingOptions options, CancellationToken cancellationToken) 227internal static SyntaxNode Format(SyntaxNode node, IEnumerable<TextSpan>? spans, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 254internal static IFormattingResult GetFormattingResult(SyntaxNode node, IEnumerable<TextSpan>? spans, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken) 271internal static IList<TextChange> GetFormattedTextChanges(SyntaxNode node, SolutionServices services, SyntaxFormattingOptions options, CancellationToken cancellationToken) 286internal static IList<TextChange> GetFormattedTextChanges(SyntaxNode node, TextSpan span, SolutionServices services, SyntaxFormattingOptions options, CancellationToken cancellationToken = default) 301internal static IList<TextChange> GetFormattedTextChanges(SyntaxNode node, IEnumerable<TextSpan>? spans, SolutionServices services, SyntaxFormattingOptions options, CancellationToken cancellationToken = default) 312internal static IList<TextChange> GetFormattedTextChanges(SyntaxNode node, IEnumerable<TextSpan>? spans, SolutionServices services, SyntaxFormattingOptions options, ImmutableArray<AbstractFormattingRule> rules, CancellationToken cancellationToken = default)
Remote\RemoteHostClient.cs (1)
44public static Task<RemoteHostClient?> TryGetClientAsync(SolutionServices services, CancellationToken cancellationToken)
Remote\RemoteOptionsProvider.cs (1)
16internal sealed class RemoteOptionsProvider<TOptions>(SolutionServices services, OptionsProvider<TOptions> optionsProvider)
Rename\RenameUtilities.cs (1)
45int position, SemanticModel semanticModel, SolutionServices services, CancellationToken cancellationToken)
Serialization\SerializerService.cs (1)
24internal partial class SerializerService(SolutionServices workspaceServices) : ISerializerService
Shared\Extensions\ITypeSymbolExtensions.cs (2)
127public static ISymbol? FindImplementations(this ITypeSymbol typeSymbol, ISymbol constructedInterfaceMember, SolutionServices services) 139SolutionServices services) where TSymbol : class, ISymbol
Shared\Extensions\SemanticModelExtensions.cs (1)
73SolutionServices services,
Simplification\Simplifier.cs (2)
92internal static TNode Expand<TNode>(TNode node, SemanticModel semanticModel, SolutionServices services, Func<SyntaxNode, bool>? expandInsideNode = null, bool expandParameter = false, CancellationToken cancellationToken = default) where TNode : SyntaxNode 137internal static SyntaxToken Expand(SyntaxToken token, SemanticModel semanticModel, SolutionServices services, Func<SyntaxNode, bool>? expandInsideNode = null, CancellationToken cancellationToken = default)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
73var solutionServices = document.Project.Solution.Services;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
33public SolutionServices SolutionServices => LanguageServices.SolutionServices;
Storage\PersistentStorageExtensions.cs (1)
15public static IChecksummedPersistentStorageService GetPersistentStorageService(this SolutionServices services)
Workspace\Host\HostWorkspaceServices.cs (1)
58internal SolutionServices SolutionServices { get; }
Workspace\Host\ISupportedChangesService.cs (1)
13/// Can be acquired from <see cref="Solution.Services"/>, with <see cref="SolutionServices.GetService{ISupportedChangesService}"/>.
Workspace\Host\LanguageServices.cs (1)
22public SolutionServices SolutionServices => _services.WorkspaceServices.SolutionServices;
Workspace\IsolatedAnalyzerReferenceSet.cs (2)
26SolutionServices solutionServices, 38SolutionServices solutionServices,
Workspace\IsolatedAnalyzerReferenceSet.Desktop.cs (2)
27SolutionServices solutionServices, 36SolutionServices solutionServices,
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (6)
49public SolutionServices SolutionServices => this.Workspace.Services.SolutionServices; 495SolutionServices solutionServices) 643SolutionServices solutionServices) 764SolutionServices solutionServices) 814string fullFilePath, MetadataReferenceProperties properties, SolutionServices solutionServices) 866Func<SolutionServices, TReference, TReference> createNewReference,
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (2)
18private readonly SolutionServices _workspaceServices; 49SolutionServices workspaceServices)
Workspace\Solution\AdditionalDocumentState.cs (2)
16SolutionServices solutionServices, 27SolutionServices solutionServices,
Workspace\Solution\AnalyzerConfigDocumentState.cs (2)
18SolutionServices solutionServices, 33SolutionServices solutionServices,
Workspace\Solution\Solution.cs (2)
82public SolutionServices Services => this.SolutionState.Services; 1574internal Solution WithNewWorkspace(string? workspaceKind, int workspaceVersion, SolutionServices services)
Workspace\Solution\SolutionCompilationState.cs (2)
100public SolutionServices Services => this.SolutionState.Services; 1393public SolutionCompilationState WithNewWorkspace(string? workspaceKind, int workspaceVersion, SolutionServices services)
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (2)
204var services = compilationState.SolutionState.Services; 219SolutionServices services, Compilation compilation, CancellationToken cancellationToken)
Workspace\Solution\SolutionState.cs (5)
41public SolutionServices Services { get; } 66SolutionServices services, 104SolutionServices services, 216/// since that is extracted from <see cref="SolutionServices"/> for backwards compatibility. 221SolutionServices services)
Workspace\Solution\TextDocumentState.cs (5)
18public readonly SolutionServices SolutionServices; 28SolutionServices solutionServices, 74private static RecoverableTextAndVersion CreateRecoverableText(TextAndVersion text, SolutionServices services) 161protected static ITextAndVersionSource CreateTextAndVersionSource(SolutionServices solutionServices, TextLoader? loader, string? filePath, LoadTextOptions loadTextOptions, PreservationMode mode = PreservationMode.PreserveValue) 166private static ITextAndVersionSource CreateTextFromLoader(SolutionServices solutionServices, TextLoader loader, PreservationMode mode)
Workspace\Solution\VersionSource\RecoverableTextAndVersion.cs (2)
18internal sealed partial class RecoverableTextAndVersion(ITextAndVersionSource initialSource, SolutionServices services) : ITextAndVersionSource 148public RecoverableText(ITextAndVersionSource source, TextAndVersion textAndVersion, LoadTextOptions options, SolutionServices services)
Workspace\WorkspaceFileTextLoader.cs (1)
22internal WorkspaceFileTextLoader(SolutionServices services, string path, Encoding? defaultEncoding)
Microsoft.CodeAnalysis.Workspaces.MSBuild (6)
MSBuild\MSBuildProjectLoader.cs (2)
23private readonly SolutionServices _solutionServices; 34SolutionServices solutionServices,
MSBuild\MSBuildProjectLoader.Worker.cs (2)
26private readonly SolutionServices _solutionServices; 74SolutionServices services,
MSBuild\ProjectFileExtensionRegistry.cs (2)
16private readonly SolutionServices _solutionServices; 21public ProjectFileExtensionRegistry(SolutionServices solutionServices, DiagnosticReporter diagnosticReporter)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (9)
Formatting\FormattingTestBase.cs (2)
67SolutionServices services, string expected, SyntaxNode root, IEnumerable<TextSpan> spans, SyntaxFormattingOptions options, bool treeCompare = true, ParseOptions? parseOptions = null) 83private static async Task AssertFormatAsync(SolutionServices services, string expected, SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SourceText sourceText)
Remote\InProcRemostHostClient.cs (4)
23private readonly SolutionServices _workspaceServices; 27public static RemoteHostClient Create(SolutionServices services, RemoteServiceCallbackDispatcherRegistry callbackDispatchers, TraceListener? traceListener, RemoteHostTestData testData) 37SolutionServices services, 161public InProcRemoteServices(SolutionServices workspaceServices, TraceListener? traceListener, RemoteHostTestData testData)
Remote\InProcRemoteHostClientProvider.cs (2)
63private readonly SolutionServices _services; 72public InProcRemoteHostClientProvider(SolutionServices services, RemoteServiceCallbackDispatcherRegistry callbackDispatchers)
Remote\TestSerializerService.cs (1)
31SolutionServices workspaceServices)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
CodeCleanup\MockCodeCleanupProvider.cs (2)
24public Func<SyntaxNode, ImmutableArray<TextSpan>, SyntaxFormattingOptions, SolutionServices, SyntaxNode>? CleanupNodeImpl { get; set; } 31public Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices (3)
Remote\VisualStudioRemoteHostClientProvider.cs (2)
89public readonly SolutionServices Services; 98SolutionServices services,
Venus\ContainedDocument.cs (1)
807var services = document.Project.Solution.Services;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
28public OptionsProcessor(ProjectSystemProject projectSystemProject, SolutionServices workspaceServices)
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\Projects\RoslynRemoteProjectInfoProvider.cs (1)
87private static ProjectInfo CreateProjectInfo(string projectName, string language, ImmutableArray<string> files, SolutionServices services)
Client\Projects\WorkspaceFileTextLoaderNoException.cs (1)
23public WorkspaceFileTextLoaderNoException(SolutionServices services, string path, Encoding defaultEncoding)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ProjectSystemShim\VisualBasicProject.OptionsProcessor.vb (1)
44Public Sub New(project As ProjectSystemProject, workspaceServices As SolutionServices)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\Extensions\SymbolExtensions.cs (1)
54var services = codeProject.Solution.Services;
Roslyn.VisualStudio.DiagnosticsWindow (2)
OptionPages\PerformanceLoggersPage.cs (2)
30private SolutionServices _workspaceServices; 55public static void SetLoggers(IGlobalOptionService globalOptions, IThreadingContext threadingContext, SolutionServices workspaceServices)