41 references to NestedFileKind
Microsoft.CodeAnalysis.Razor.Workspaces (3)
Protocol\NestedFiles\AddNestedFileParams.cs (2)
25public required NestedFileKind FileKind { get; set; } 27public static AddNestedFileParams Create(Uri razorFileUri, NestedFileKind fileKind)
Remote\IRemoteAddNestedFileService.cs (1)
21NestedFileKind fileKind,
Microsoft.CodeAnalysis.Remote.Razor (10)
NestedFiles\RemoteAddNestedFileService.cs (10)
38NestedFileKind fileKind, 48NestedFileKind fileKind, 83private static string? GetNestedFilePath(string razorFilePath, NestedFileKind fileKind) 87NestedFileKind.Css => razorFilePath + ".css", 88NestedFileKind.CSharp => razorFilePath + ".cs", 89NestedFileKind.JavaScript => razorFilePath + ".js", 95NestedFileKind fileKind, 103NestedFileKind.CSharp => await GenerateCSharpContentAsync( 105NestedFileKind.Css => GenerateCssContent(razorFilePath), 106NestedFileKind.JavaScript => GenerateJavaScriptContent(razorFilePath),
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (10)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\NestedFiles\RemoteAddNestedFileServiceTest.cs (10)
21(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.Css, ct), 37(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.JavaScript, ct), 53(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 81(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 112(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 139(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.Css, ct), 156(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 192(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 215(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 239(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, (NestedFileKind)999, ct),
Microsoft.VisualStudio.RazorExtension (8)
NestedFiles\NestedFileCommandHandler.cs (2)
43NestedFileKind fileKind, 50private readonly NestedFileKind _fileKind = fileKind;
RazorPackage.cs (6)
156AddMenuNestedFileCommand(".cs", NestedFileKind.CSharp, (int)CmdIdAddOrViewNestedCsFile, GuidRazorNestedFilesCmdSet, allowExternalHandlers: false, hideWhenFileExists: false); 157AddMenuNestedFileCommand(".css", NestedFileKind.Css, (int)CmdIdAddOrViewNestedCssFile, GuidRazorNestedFilesCmdSet, allowExternalHandlers: false, hideWhenFileExists: false); 158AddMenuNestedFileCommand(".js", NestedFileKind.JavaScript, (int)CmdIdAddOrViewNestedJsFile, GuidRazorNestedFilesCmdSet, allowExternalHandlers: false, hideWhenFileExists: false); 164AddMenuNestedFileCommand(".cs", NestedFileKind.CSharp, (int)VSConstants.VSStd97CmdID.ViewCode, VSConstants.GUID_VSStandardCommandSet97, allowExternalHandlers: true, hideWhenFileExists: false); 168AddMenuNestedFileCommand(".cs", NestedFileKind.CSharp, (int)CmdIdAddNestedCsFileEditor, GuidRazorNestedFilesCmdSet, allowExternalHandlers: false, hideWhenFileExists: true); 184void AddMenuNestedFileCommand(string fileExtension, NestedFileKind fileKind, int cmdId, Guid cmdSet, bool allowExternalHandlers, bool hideWhenFileExists)
Microsoft.VisualStudioCode.RazorExtension.UnitTests (10)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\NestedFiles\RemoteAddNestedFileServiceTest.cs (10)
21(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.Css, ct), 37(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.JavaScript, ct), 53(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 81(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 112(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 139(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.Css, ct), 156(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 192(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 215(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, NestedFileKind.CSharp, ct), 239(service, solutionInfo, ct) => service.GetNewNestedFileWorkspaceEditAsync(solutionInfo, document.Id, (NestedFileKind)999, ct),