2 implementations of FileKind
Microsoft.AspNetCore.Razor.Test.Common.Tooling (1)
ProjectSystem\TestDocumentSnapshot.cs (1)
22public RazorFileKind FileKind => throw new NotImplementedException();
Microsoft.CodeAnalysis.Remote.Razor (1)
ProjectSystem\RemoteDocumentSnapshot.cs (1)
34public RazorFileKind FileKind => FileKinds.GetFileKindFromPath(FilePath);
12 references to FileKind
Microsoft.CodeAnalysis.Razor.Workspaces (10)
CodeActions\Razor\CreateComponentCodeActionResolver.cs (1)
36if (!documentContext.Snapshot.FileKind.IsComponent())
CodeActions\Razor\PromoteUsingCodeActionProvider.cs (1)
45var importFileName = GetImportsFileName(context.DocumentSnapshot.FileKind);
CodeActions\Razor\PromoteUsingCodeActionResolver.cs (1)
37var importsFileName = PromoteUsingCodeActionProvider.GetImportsFileName(documentContext.Snapshot.FileKind);
Formatting\RazorFormattingService.cs (2)
96logger?.LogObject("FileKind", documentContext.Snapshot.FileKind); 291logger?.LogObject("FileKind", documentSnapshot.FileKind);
GoToDefinition\AbstractDefinitionService.cs (2)
36if (!includeMvcTagHelpers && !documentSnapshot.FileKind.IsComponent()) 38_logger.LogInformation($"'{documentSnapshot.FileKind}' is not a component type.");
ProjectSystem\IDocumentSnapshotExtensions.cs (2)
20if (documentSnapshot.FileKind != RazorFileKind.Component) 50if (documentSnapshot.FileKind != RazorFileKind.Component)
Rename\RenameService.cs (1)
40if (!documentContext.Snapshot.FileKind.IsComponent())
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (1)
126.Setup(d => d.FileKind)
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (1)
126.Setup(d => d.FileKind)