Configurable size of preview text for region in ConstructMultilineContextSnippet
derigel23 opened this issue · 0 comments
derigel23 commented
Currently, it's hardcoded to have one line before and one after for text preview of the region.
I want to have control on size of this window.
public Region ConstructMultilineContextSnippet(Region inputRegion, Uri uri, string fileText = null)
{
....
var region = new Region
{
StartLine = inputRegion.StartLine == 1 ? 1 : inputRegion.StartLine - 1,
EndLine = inputRegion.EndLine == maxLineNumber ? maxLineNumber : inputRegion.EndLine + 1
};
// Generating multilineRegion with one line before and after.
Region multilineContextSnippet = this.PopulateTextRegionProperties(region, uri, populateSnippet: true, fileText);
....