41 references to NestedFileKind
Microsoft.CodeAnalysis.Razor.Workspaces (3)
Protocol\NestedFiles\AddNestedFileParams.cs (2)
25
public required
NestedFileKind
FileKind { get; set; }
27
public static AddNestedFileParams Create(Uri razorFileUri,
NestedFileKind
fileKind)
Remote\IRemoteAddNestedFileService.cs (1)
21
NestedFileKind
fileKind,
Microsoft.CodeAnalysis.Remote.Razor (10)
NestedFiles\RemoteAddNestedFileService.cs (10)
38
NestedFileKind
fileKind,
48
NestedFileKind
fileKind,
83
private static string? GetNestedFilePath(string razorFilePath,
NestedFileKind
fileKind)
87
NestedFileKind
.Css => razorFilePath + ".css",
88
NestedFileKind
.CSharp => razorFilePath + ".cs",
89
NestedFileKind
.JavaScript => razorFilePath + ".js",
95
NestedFileKind
fileKind,
103
NestedFileKind
.CSharp => await GenerateCSharpContentAsync(
105
NestedFileKind
.Css => GenerateCssContent(razorFilePath),
106
NestedFileKind
.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)
43
NestedFileKind
fileKind,
50
private readonly
NestedFileKind
_fileKind = fileKind;
RazorPackage.cs (6)
156
AddMenuNestedFileCommand(".cs",
NestedFileKind
.CSharp, (int)CmdIdAddOrViewNestedCsFile, GuidRazorNestedFilesCmdSet, allowExternalHandlers: false, hideWhenFileExists: false);
157
AddMenuNestedFileCommand(".css",
NestedFileKind
.Css, (int)CmdIdAddOrViewNestedCssFile, GuidRazorNestedFilesCmdSet, allowExternalHandlers: false, hideWhenFileExists: false);
158
AddMenuNestedFileCommand(".js",
NestedFileKind
.JavaScript, (int)CmdIdAddOrViewNestedJsFile, GuidRazorNestedFilesCmdSet, allowExternalHandlers: false, hideWhenFileExists: false);
164
AddMenuNestedFileCommand(".cs",
NestedFileKind
.CSharp, (int)VSConstants.VSStd97CmdID.ViewCode, VSConstants.GUID_VSStandardCommandSet97, allowExternalHandlers: true, hideWhenFileExists: false);
168
AddMenuNestedFileCommand(".cs",
NestedFileKind
.CSharp, (int)CmdIdAddNestedCsFileEditor, GuidRazorNestedFilesCmdSet, allowExternalHandlers: false, hideWhenFileExists: true);
184
void 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),