5 writes to SelectionRange
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Symbols\DocumentSymbolsHandler.cs (1)
115SelectionRange = ProtocolConversions.TextSpanToRange(selectionSpan, text),
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Symbols\DocumentSymbolsTests.Hierarchical.cs (1)
848SelectionRange = testLspServer.GetLocations(selectionRangeLocationName).Single().Range,
Microsoft.CodeAnalysis.Razor.Workspaces (2)
Protocol\DocumentSymbols\DocumentSymbolService.cs (2)
90documentSymbol.SelectionRange = LspFactory.DefaultRange; 98documentSymbol.SelectionRange = newSelectionRange;
Microsoft.CodeAnalysis.Remote.Razor (1)
DocumentSymbols\RemoteDocumentSymbolService.cs (1)
77SelectionRange = symbol.SelectionRange,
37 references to SelectionRange
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (6)
Symbols\DocumentSymbolsTests.Hierarchical.cs (6)
807Assert.Equal(expected.SelectionRange, actual.SelectionRange); 810Assert.True(IsPositionBeforeOrEqual(actual.Range.Start, actual.SelectionRange.Start), 811$"SelectionRange start {actual.SelectionRange.Start} should be >= Range start {actual.Range.Start}"); 812Assert.True(IsPositionBeforeOrEqual(actual.SelectionRange.End, actual.Range.End), 813$"SelectionRange end {actual.SelectionRange.End} should be <= Range end {actual.Range.End}");
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Protocol\DocumentSymbols\DocumentSymbolService.cs (1)
95_documentMappingService.TryMapToRazorDocumentRange(csharpDocument, documentSymbol.SelectionRange, out var newSelectionRange))
Microsoft.CodeAnalysis.Remote.Razor (1)
DocumentSymbols\RemoteDocumentSymbolService.cs (1)
77SelectionRange = symbol.SelectionRange,
Microsoft.VisualStudio.LanguageServices (1)
DocumentOutline\DocumentOutlineViewModel_Utilities.cs (1)
82GetSymbolRangeSpan(symbol.SelectionRange),
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (14)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentSymbolEndpointTest.cs (14)
80Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["C"])), classC.SelectionRange); 87Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["HandleString"])), handleString.SelectionRange); 92Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["M"])), m.SelectionRange); 97Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["ObjToString"])), objToString.SelectionRange); 166Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["C"])), classC.SelectionRange); 173Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["HandleString"])), handleString.SelectionRange); 178Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["M"])), m.SelectionRange); 183Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["ObjToString"])), objToString.SelectionRange); 241Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["HandleString"])), handleString.SelectionRange); 246Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["M"])), m.SelectionRange); 251Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["ObjToString"])), objToString.SelectionRange); 310Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["HandleString"])), handleString.SelectionRange); 315Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["M"])), m.SelectionRange); 320Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["ObjToString"])), objToString.SelectionRange);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (14)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentSymbolEndpointTest.cs (14)
80Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["C"])), classC.SelectionRange); 87Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["HandleString"])), handleString.SelectionRange); 92Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["M"])), m.SelectionRange); 97Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["ObjToString"])), objToString.SelectionRange); 166Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["C"])), classC.SelectionRange); 173Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["HandleString"])), handleString.SelectionRange); 178Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["M"])), m.SelectionRange); 183Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["ObjToString"])), objToString.SelectionRange); 241Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["HandleString"])), handleString.SelectionRange); 246Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["M"])), m.SelectionRange); 251Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["ObjToString"])), objToString.SelectionRange); 310Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["HandleString"])), handleString.SelectionRange); 315Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["M"])), m.SelectionRange); 320Assert.Equal(sourceText.GetRange(Assert.Single(input.NamedSpans["ObjToString"])), objToString.SelectionRange);