4 writes to Range
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\SelectionRanges\SelectionRangeHandler.cs (2)
88Range = ProtocolConversions.TextSpanToRange(spans[i], text), 94return current ?? new SelectionRange { Range = ProtocolConversions.TextSpanToRange(new TextSpan(position, 0), text) };
Microsoft.CodeAnalysis.Remote.Razor (2)
SelectionRanges\RemoteSelectionRangeService.cs (2)
105Range = mappedRange, 113Range = LspFactory.CreateRange(originalPosition, originalPosition)
17 references to Range
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
SelectionRanges\SelectionRangesTests.cs (5)
203chain.Add(current.Range); 240ContainsOrEquals(current.Parent.Range, current.Range), 241$"Parent range {current.Parent.Range} should contain child range {current.Range}");
Microsoft.CodeAnalysis.Remote.Razor (2)
SelectionRanges\RemoteSelectionRangeService.cs (2)
93if (!DocumentMappingService.TryMapToRazorDocumentRange(csharpDocument, csharpSelectionRange.Range, out var mappedRange)) 98if (mappedParent is not null && mappedParent.Range == mappedRange)
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (5)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostSelectionRangeEndpointTest.cs (5)
73chain.Add(current.Range); 101ContainsOrEquals(current.Parent.Range, current.Range), 102$"Parent range {current.Parent.Range} should contain child range {current.Range}");
Microsoft.VisualStudioCode.RazorExtension.UnitTests (5)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostSelectionRangeEndpointTest.cs (5)
73chain.Add(current.Range); 101ContainsOrEquals(current.Parent.Range, current.Range), 102$"Parent range {current.Parent.Range} should contain child range {current.Range}");