public static Range ToLineRange(this ITextRange textRange, IEditorBufferSnapshot snapshot) => new Range { Start = snapshot.ToLinePosition(textRange.Start), End = snapshot.ToLinePosition(textRange.End) };
public static Range ToLineRange(this IEditorBufferSnapshot snapshot, int start, int end) => new Range { Start = snapshot.ToLinePosition(start), End = snapshot.ToLinePosition(end) };