21 references to GetAbsoluteOrUNCPath
Microsoft.CodeAnalysis.Razor.Workspaces (9)
AbstractFilePathService.cs (1)
30=> uri.GetAbsoluteOrUNCPath()?.EndsWith(extension, StringComparison.Ordinal) ?? false;
CodeActions\Razor\ExtractToCodeBehindCodeActionResolver.cs (1)
42var path = FilePathNormalizer.Normalize(documentContext.Uri.GetAbsoluteOrUNCPath());
CodeActions\Razor\ExtractToComponentCodeActionResolver.cs (1)
45var path = FilePathNormalizer.Normalize(documentContext.Uri.GetAbsoluteOrUNCPath());
CodeActions\Razor\ExtractToCssCodeActionResolver.cs (1)
40var cssFilePath = $"{FilePathNormalizer.Normalize(documentContext.Uri.GetAbsoluteOrUNCPath())}.css";
CodeActions\Razor\PromoteUsingCodeActionResolver.cs (1)
39var file = FilePathNormalizer.Normalize(documentContext.Uri.GetAbsoluteOrUNCPath());
DocumentPresentation\UriPresentationHelper.cs (3)
23x => Path.GetFileName(x.GetAbsoluteOrUNCPath()).EndsWith(".razor", PathUtilities.OSSpecificPathComparison)).FirstOrDefault(); 34var fileName = Path.GetFileName(razorFileUri.GetAbsoluteOrUNCPath()); 35if (uris.Any(uri => !Path.GetFileName(uri.GetAbsoluteOrUNCPath()).StartsWith(fileName, PathUtilities.OSSpecificPathComparison)))
UriExtensions.cs (1)
25=> GetAbsoluteOrUNCPath(uri.GetRequiredParsedUri());
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (11)
FilePathServiceTest.cs (2)
32Assert.Equal(@"C:/path/to/file.razor", result.GetAbsoluteOrUNCPath()); 44Assert.Equal(@"C:/path/to/file.razor", result.GetAbsoluteOrUNCPath());
UriExtensionsTest.cs (9)
26var path = uri.GetAbsoluteOrUNCPath(); 39var path = uri.GetAbsoluteOrUNCPath(); 52var path = uri.GetAbsoluteOrUNCPath(); 70var path = uri.GetAbsoluteOrUNCPath(); 89var path = uri.GetAbsoluteOrUNCPath(); 102var path = uri.GetAbsoluteOrUNCPath(); 115var path = uri.GetAbsoluteOrUNCPath(); 128var path = uri.GetAbsoluteOrUNCPath(); 146var path = uri.GetAbsoluteOrUNCPath();
Microsoft.VisualStudio.LanguageServices.Razor (1)
LiveShare\Guest\RazorGuestInitializationService.cs (1)
80if (fileUri.GetAbsoluteOrUNCPath().EndsWith(ViewImportsFileName, StringComparison.Ordinal))