22 references to GeneratedDocumentKind
Microsoft.CodeAnalysis.Razor.Workspaces (2)
Protocol\DevTools\DocumentContentsRequest.cs (2)
15public required GeneratedDocumentKind Kind { get; set; } 17public static DocumentContentsRequest Create(Uri hostDocumentUri, GeneratedDocumentKind kind)
Microsoft.VisualStudio.LanguageServices.Razor (3)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\GeneratedDocumentContents\CohostGeneratedDocumentContentsEndpoint.cs (3)
40GeneratedDocumentKind.CSharp => await _remoteServiceInvoker.TryInvokeAsync<IRemoteDevToolsService, string>( 44GeneratedDocumentKind.Html => await _remoteServiceInvoker.TryInvokeAsync<IRemoteDevToolsService, string>( 48GeneratedDocumentKind.Formatting => await _remoteServiceInvoker.TryInvokeAsync<IRemoteDevToolsService, string>(
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (4)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGeneratedDocumentContentsEndpointTest.cs (4)
24await VerifyGeneratedDocumentContentsAsync(input, GeneratedDocumentKind.CSharp, """var message = "Hello World";"""); 37await VerifyGeneratedDocumentContentsAsync(input, GeneratedDocumentKind.Html, "<div>/*~~~~*/</div>"); 51await VerifyGeneratedDocumentContentsAsync(input, GeneratedDocumentKind.Formatting, "class @code{"); 54private async Task VerifyGeneratedDocumentContentsAsync(string input, GeneratedDocumentKind kind, string expectedContentSubstring)
Microsoft.VisualStudio.RazorExtension (6)
SyntaxVisualizer\SyntaxVisualizerControl.xaml.cs (6)
127ShowGeneratedCode(_activeWpfTextView.TextBuffer, hostDocumentUri, GeneratedDocumentKind.Formatting); 142ShowGeneratedCode(_activeWpfTextView.TextBuffer, hostDocumentUri, GeneratedDocumentKind.CSharp); 186private void ShowGeneratedCode(ITextBuffer textBuffer, Uri hostDocumentUri, GeneratedDocumentKind kind) 206GeneratedDocumentKind.CSharp => ".g.cs", 207GeneratedDocumentKind.Html => ".g.html", 208GeneratedDocumentKind.Formatting => ".formatting.cs",
Microsoft.VisualStudioCode.RazorExtension (3)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\GeneratedDocumentContents\CohostGeneratedDocumentContentsEndpoint.cs (3)
40GeneratedDocumentKind.CSharp => await _remoteServiceInvoker.TryInvokeAsync<IRemoteDevToolsService, string>( 44GeneratedDocumentKind.Html => await _remoteServiceInvoker.TryInvokeAsync<IRemoteDevToolsService, string>( 48GeneratedDocumentKind.Formatting => await _remoteServiceInvoker.TryInvokeAsync<IRemoteDevToolsService, string>(
Microsoft.VisualStudioCode.RazorExtension.UnitTests (4)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGeneratedDocumentContentsEndpointTest.cs (4)
24await VerifyGeneratedDocumentContentsAsync(input, GeneratedDocumentKind.CSharp, """var message = "Hello World";"""); 37await VerifyGeneratedDocumentContentsAsync(input, GeneratedDocumentKind.Html, "<div>/*~~~~*/</div>"); 51await VerifyGeneratedDocumentContentsAsync(input, GeneratedDocumentKind.Formatting, "class @code{"); 54private async Task VerifyGeneratedDocumentContentsAsync(string input, GeneratedDocumentKind kind, string expectedContentSubstring)