6 instantiations of FoldingRangeKind
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Protocol\FoldingRangeKind.cs (3)
24public static readonly FoldingRangeKind Comment = new("comment"); 29public static readonly FoldingRangeKind Imports = new("imports"); 34public static readonly FoldingRangeKind Region = new("region");
Protocol\Internal\VSFoldingRangeKind.cs (1)
22public static FoldingRangeKind Implementation = new("implementation");
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
FoldingRanges\FoldingRangesTests.cs (1)
179_ => new(kind)
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Protocol\Folding\RemoteFoldingRange.cs (1)
38Kind = r.Kind is null ? null : new FoldingRangeKind(r.Kind),
21 references to FoldingRangeKind
Microsoft.CodeAnalysis.LanguageServer.Protocol (17)
Handler\FoldingRanges\FoldingRangesHandler.cs (4)
109FoldingRangeKind? foldingRangeKind = span.Type switch 111BlockTypes.Comment => FoldingRangeKind.Comment, 112BlockTypes.Imports => FoldingRangeKind.Imports, 113BlockTypes.PreprocessorRegion => FoldingRangeKind.Region,
Protocol\FoldingRange.cs (4)
83/// Describes the kind of the folding range such as <see cref="FoldingRangeKind.Comment"/> 84/// or <see cref="FoldingRangeKind.Region"/>. 87/// 'Fold all comments'. See <see cref="FoldingRangeKind"/> for an 93public FoldingRangeKind? Kind
Protocol\FoldingRangeKind.cs (5)
17[JsonConverter(typeof(StringEnumConverter<FoldingRangeKind>))] 18[TypeConverter(typeof(StringEnumConverter<FoldingRangeKind>.TypeConverter))] 24public static readonly FoldingRangeKind Comment = new("comment"); 29public static readonly FoldingRangeKind Imports = new("imports"); 34public static readonly FoldingRangeKind Region = new("region");
Protocol\FoldingRangeKindSet.cs (2)
10/// A set of <see cref="FoldingRangeKind"/> values 25public FoldingRangeKind[]? ValueSet { get; init; }
Protocol\Internal\VSFoldingRangeKind.cs (2)
8/// Additional to predefined <see cref="FoldingRangeKind"/> folding range kinds. 22public static FoldingRangeKind Implementation = new("implementation");
Microsoft.CodeAnalysis.Razor.Workspaces (2)
Extensions\LspFactory.cs (1)
231public static FoldingRange CreateFoldingRange(FoldingRangeKind kind, LinePositionSpan linePositionSpan)
FoldingRanges\UsingsFoldingRangeProvider.cs (1)
44ranges.Add(LspFactory.CreateFoldingRange(FoldingRangeKind.Imports, span));
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFoldingRangeEndpointTest.cs (1)
423static string GetMarker(int index, bool isStart, ImmutableArray<TextSpan> htmlSpans, FoldingRangeKind? kind)
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFoldingRangeEndpointTest.cs (1)
423static string GetMarker(int index, bool isStart, ImmutableArray<TextSpan> htmlSpans, FoldingRangeKind? kind)