1 implementation of IDocumentMappingService
Microsoft.CodeAnalysis.Razor.Workspaces (1)
DocumentMapping\AbstractDocumentMappingService.cs (1)
17internal abstract class AbstractDocumentMappingService(ILogger logger) : IDocumentMappingService
142 references to IDocumentMappingService
Microsoft.CodeAnalysis.Razor.Workspaces (45)
CodeActions\CodeActionsService.cs (2)
25IDocumentMappingService documentMappingService, 33private readonly IDocumentMappingService _documentMappingService = documentMappingService;
CodeActions\CSharp\UnformattedRemappingCSharpCodeActionResolver.cs (2)
17internal class UnformattedRemappingCSharpCodeActionResolver(IDocumentMappingService documentMappingService) : ICSharpCodeActionResolver 19private readonly IDocumentMappingService _documentMappingService = documentMappingService;
Completion\Delegation\DelegatedCompletionHelper.cs (2)
162IDocumentMappingService documentMappingService, 304IDocumentMappingService documentMappingService,
Diagnostics\RazorTranslateDiagnosticsService.cs (2)
31internal class RazorTranslateDiagnosticsService(IDocumentMappingService documentMappingService, ILoggerFactory loggerFactory) 33private readonly IDocumentMappingService _documentMappingService = documentMappingService;
DocumentMapping\DefaultDocumentPositionInfoStrategy.cs (1)
16public DocumentPositionInfo GetPositionInfo(IDocumentMappingService mappingService, RazorCodeDocument codeDocument, int hostDocumentIndex)
DocumentMapping\IDocumentMappingServiceExtensions.cs (8)
14public static bool TryMapToRazorDocumentRange(this IDocumentMappingService service, RazorCSharpDocument csharpDocument, LinePositionSpan csharpRange, out LinePositionSpan razorRange) 17public static bool TryMapToRazorDocumentRange(this IDocumentMappingService service, RazorCSharpDocument csharpDocument, LspRange csharpRange, [NotNullWhen(true)] out LspRange? razorRange) 21this IDocumentMappingService service, 60public static bool TryMapToRazorDocumentRange(this IDocumentMappingService service, RazorCSharpDocument csharpDocument, LspRange csharpRange, MappingBehavior mappingBehavior, [NotNullWhen(true)] out LspRange? razorRange) 67public static bool TryMapToCSharpDocumentRange(this IDocumentMappingService service, RazorCSharpDocument csharpDocument, LspRange razorRange, [NotNullWhen(true)] out LspRange? csharpRange) 74public static bool TryMapToRazorDocumentPosition(this IDocumentMappingService service, RazorCSharpDocument csharpDocument, int csharpIndex, [NotNullWhen(true)] out Position? razorPosition, out int razorIndex) 81public static bool TryMapToCSharpDocumentPosition(this IDocumentMappingService service, RazorCSharpDocument csharpDocument, int razorIndex, [NotNullWhen(true)] out Position? csharpPosition, out int csharpIndex) 88public static bool TryMapToCSharpPositionOrNext(this IDocumentMappingService service, RazorCSharpDocument csharpDocument, int razorIndex, [NotNullWhen(true)] out Position? csharpPosition, out int csharpIndex)
DocumentMapping\IDocumentPositionInfoStrategy.cs (1)
10DocumentPositionInfo GetPositionInfo(IDocumentMappingService mappingService, RazorCodeDocument codeDocument, int hostDocumentIndex);
DocumentMapping\PreferAttributeNameDocumentPositionInfoStrategy.cs (1)
21public DocumentPositionInfo GetPositionInfo(IDocumentMappingService mappingService, RazorCodeDocument codeDocument, int hostDocumentIndex)
DocumentMapping\PreferHtmlInAttributeValuesDocumentPositionStrategy.cs (1)
23public DocumentPositionInfo GetPositionInfo(IDocumentMappingService mappingService, RazorCodeDocument codeDocument, int hostDocumentIndex)
DocumentMapping\RazorEditService.cs (2)
26IDocumentMappingService documentMappingService, 31private readonly IDocumentMappingService _documentMappingService = documentMappingService;
FindAllReferences\FindAllReferencesHelper.cs (1)
15public static async Task<string?> GetResultTextAsync(IDocumentMappingService documentMappingService, ISolutionQueryOperations solutionQueryOperations, int lineNumber, string filePath, CancellationToken cancellationToken)
FoldingRanges\FoldingRangeService.cs (2)
18IDocumentMappingService documentMappingService, 23private readonly IDocumentMappingService _documentMappingService = documentMappingService;
Formatting\Passes\CSharpFormattingPass.cs (3)
24IDocumentMappingService documentMappingService, 29private readonly IDocumentMappingService _documentMappingService = documentMappingService; 152internal static string GetFormattingDocumentContentsForSyntaxVisualizer(RazorCodeDocument codeDocument, SyntaxNode csharpSyntaxRoot, IDocumentMappingService documentMappingService)
Formatting\Passes\CSharpFormattingPass.CSharpDocumentGenerator.cs (3)
86public static FormattedDocument Generate(RazorCodeDocument codeDocument, SyntaxNode csharpSyntaxRoot, RazorFormattingOptions options, IDocumentMappingService documentMappingService) 153IDocumentMappingService documentMappingService) : SyntaxVisitor<LineInfo> 167private readonly IDocumentMappingService _documentMappingService = documentMappingService;
Formatting\Passes\CSharpOnTypeFormattingPass.cs (2)
36IDocumentMappingService documentMappingService, 41private readonly IDocumentMappingService _documentMappingSerivce = documentMappingService;
Formatting\Passes\HtmlFormattingPass.cs (2)
23IDocumentMappingService documentMappingService, 26private readonly IDocumentMappingService _documentMappingService = documentMappingService;
Formatting\RazorFormattingService.cs (1)
41IDocumentMappingService documentMappingService,
GoToDefinition\AbstractDefinitionService.cs (2)
21IDocumentMappingService documentMappingService, 26private readonly IDocumentMappingService _documentMappingService = documentMappingService;
GoToDefinition\RazorComponentDefinitionHelpers.cs (1)
158IDocumentMappingService documentMappingService,
Protocol\DocumentSymbols\DocumentSymbolService.cs (2)
12internal class DocumentSymbolService(IDocumentMappingService documentMappingService) : IDocumentSymbolService 14private readonly IDocumentMappingService _documentMappingService = documentMappingService;
SemanticTokens\AbstractRazorSemanticTokensInfoService.cs (2)
22IDocumentMappingService documentMappingService, 37private readonly IDocumentMappingService _documentMappingService = documentMappingService;
SpellCheck\SpellCheckService.cs (2)
17IDocumentMappingService documentMappingService) : ISpellCheckService 20private readonly IDocumentMappingService _documentMappingService = documentMappingService;
Microsoft.CodeAnalysis.Remote.Razor (25)
CodeActions\RemoteServices.cs (2)
21IDocumentMappingService documentMappingService, 140internal sealed class OOPUnformattedRemappingCSharpCodeActionResolver(IDocumentMappingService documentMappingService) : UnformattedRemappingCSharpCodeActionResolver(documentMappingService);
CodeLens\RemoteCodeLensService.cs (2)
22private readonly IDocumentMappingService _documentMappingService = args.ExportProvider.GetExportedValue<IDocumentMappingService>();
Completion\RemoteCompletionService.cs (2)
44private readonly IDocumentMappingService _documentMappingService = args.ExportProvider.GetExportedValue<IDocumentMappingService>();
Debugging\RemoteDataTipRangeService.cs (2)
23private readonly IDocumentMappingService _documentMappingService = args.ExportProvider.GetExportedValue<IDocumentMappingService>();
Debugging\RemoteDebugInfoService.cs (2)
25private readonly IDocumentMappingService _documentMappingService = args.ExportProvider.GetExportedValue<IDocumentMappingService>();
Diagnostics\RemoteRazorTranslateDiagnosticsService.cs (1)
14IDocumentMappingService documentMappingService,
DocumentMapping\IDocumentMappingServiceExtensions.cs (2)
22this IDocumentMappingService service, 42this IDocumentMappingService service,
DocumentMapping\RemoteDocumentMappingService.cs (1)
17[Export(typeof(IDocumentMappingService)), Shared]
DocumentMapping\RemoteRazorEditService.cs (1)
21IDocumentMappingService documentMappingService,
DocumentSymbols\OOPDocumentSymbolService.cs (1)
12internal class OOPDocumentSymbolService(IDocumentMappingService documentMappingService) : DocumentSymbolService(documentMappingService)
FoldingRanges\OOPFoldingRangeService.cs (1)
15IDocumentMappingService documentMappingService,
Formatting\RemoteRazorFormattingService.cs (1)
14internal sealed class RemoteRazorFormattingService(IDocumentMappingService documentMappingService, IRazorEditService razorEditService, IHostServicesProvider hostServicesProvider, IFormattingLoggerFactory formattingLoggerFactory, ILoggerFactory loggerFactory)
GoToDefinition\DefinitionService.cs (1)
16IDocumentMappingService documentMappingService,
InlineCompletion\RemoteInlineCompletionService.cs (2)
23private readonly IDocumentMappingService _documentMappingService = args.ExportProvider.GetExportedValue<IDocumentMappingService>();
RazorDocumentServiceBase.cs (2)
18protected IDocumentMappingService DocumentMappingService { get; } = args.ExportProvider.GetExportedValue<IDocumentMappingService>();
SemanticTokens\RazorSemanticTokensInfoService.cs (1)
14IDocumentMappingService documentMappingService,
SpellCheck\OOPSpellCheckService.cs (1)
14IDocumentMappingService documentMappingService)
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (37)
Cohost\CohostRoslynRenameTest.cs (2)
271var documentMappingService = OOPExportProvider.GetExportedValue<IDocumentMappingService>();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\PreferHtmlInAttributeValuesDocumentPositionInfoStrategyTest.cs (2)
52var documentMappingService = OOPExportProvider.GetExportedValue<IDocumentMappingService>();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingPassTest.cs (2)
136var documentMappingService = OOPExportProvider.GetExportedValue<IDocumentMappingService>();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\RazorDocumentMappingServiceTest.cs (31)
20private IDocumentMappingService CreateMappingService() 27var service = CreateMappingService(); 50var service = CreateMappingService(); 73var service = CreateMappingService(); 97var service = CreateMappingService(); 121var service = CreateMappingService(); 145var service = CreateMappingService(); 169var service = CreateMappingService(); 195var service = CreateMappingService(); 221var service = CreateMappingService(); 245var service = CreateMappingService(); 271var service = CreateMappingService(); 295var service = CreateMappingService(); 318var service = CreateMappingService(); 345var service = CreateMappingService(); 369var service = CreateMappingService(); 405var service = CreateMappingService(); 432var service = CreateMappingService(); 453var service = CreateMappingService(); 479var service = CreateMappingService(); 505var service = CreateMappingService(); 531var service = CreateMappingService(); 552var service = CreateMappingService(); 578var service = CreateMappingService(); 604var service = CreateMappingService(); 630var service = CreateMappingService(); 657var service = CreateMappingService(); 680var service = CreateMappingService(); 703var service = CreateMappingService(); 726var service = CreateMappingService(); 747var service = CreateMappingService();
Microsoft.VisualStudioCode.RazorExtension.UnitTests (35)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\PreferHtmlInAttributeValuesDocumentPositionInfoStrategyTest.cs (2)
52var documentMappingService = OOPExportProvider.GetExportedValue<IDocumentMappingService>();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingPassTest.cs (2)
136var documentMappingService = OOPExportProvider.GetExportedValue<IDocumentMappingService>();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\RazorDocumentMappingServiceTest.cs (31)
20private IDocumentMappingService CreateMappingService() 27var service = CreateMappingService(); 50var service = CreateMappingService(); 73var service = CreateMappingService(); 97var service = CreateMappingService(); 121var service = CreateMappingService(); 145var service = CreateMappingService(); 169var service = CreateMappingService(); 195var service = CreateMappingService(); 221var service = CreateMappingService(); 245var service = CreateMappingService(); 271var service = CreateMappingService(); 295var service = CreateMappingService(); 318var service = CreateMappingService(); 345var service = CreateMappingService(); 369var service = CreateMappingService(); 405var service = CreateMappingService(); 432var service = CreateMappingService(); 453var service = CreateMappingService(); 479var service = CreateMappingService(); 505var service = CreateMappingService(); 531var service = CreateMappingService(); 552var service = CreateMappingService(); 578var service = CreateMappingService(); 604var service = CreateMappingService(); 630var service = CreateMappingService(); 657var service = CreateMappingService(); 680var service = CreateMappingService(); 703var service = CreateMappingService(); 726var service = CreateMappingService(); 747var service = CreateMappingService();