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)
42
var path = FilePathNormalizer.Normalize(documentContext.Uri.
GetAbsoluteOrUNCPath
());
CodeActions\Razor\ExtractToComponentCodeActionResolver.cs (1)
45
var path = FilePathNormalizer.Normalize(documentContext.Uri.
GetAbsoluteOrUNCPath
());
CodeActions\Razor\ExtractToCssCodeActionResolver.cs (1)
40
var cssFilePath = $"{FilePathNormalizer.Normalize(documentContext.Uri.
GetAbsoluteOrUNCPath
())}.css";
CodeActions\Razor\PromoteUsingCodeActionResolver.cs (1)
39
var file = FilePathNormalizer.Normalize(documentContext.Uri.
GetAbsoluteOrUNCPath
());
DocumentPresentation\UriPresentationHelper.cs (3)
23
x => Path.GetFileName(x.
GetAbsoluteOrUNCPath
()).EndsWith(".razor", PathUtilities.OSSpecificPathComparison)).FirstOrDefault();
34
var fileName = Path.GetFileName(razorFileUri.
GetAbsoluteOrUNCPath
());
35
if (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)
32
Assert.Equal(@"C:/path/to/file.razor", result.
GetAbsoluteOrUNCPath
());
44
Assert.Equal(@"C:/path/to/file.razor", result.
GetAbsoluteOrUNCPath
());
UriExtensionsTest.cs (9)
26
var path = uri.
GetAbsoluteOrUNCPath
();
39
var path = uri.
GetAbsoluteOrUNCPath
();
52
var path = uri.
GetAbsoluteOrUNCPath
();
70
var path = uri.
GetAbsoluteOrUNCPath
();
89
var path = uri.
GetAbsoluteOrUNCPath
();
102
var path = uri.
GetAbsoluteOrUNCPath
();
115
var path = uri.
GetAbsoluteOrUNCPath
();
128
var path = uri.
GetAbsoluteOrUNCPath
();
146
var path = uri.
GetAbsoluteOrUNCPath
();
Microsoft.VisualStudio.LanguageServices.Razor (1)
LiveShare\Guest\RazorGuestInitializationService.cs (1)
80
if (fileUri.
GetAbsoluteOrUNCPath
().EndsWith(ViewImportsFileName, StringComparison.Ordinal))