This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
GitHub.Exports.Reactive/Services
GitHub.InlineReviews/ViewModels Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ namespace GitHub.Services
12
12
public interface IInlineCommentPeekService
13
13
{
14
14
/// <summary>
15
- /// Gets the line number for a peek session tracking point.
15
+ /// Gets the 0-based line number for a peek session tracking point.
16
16
/// </summary>
17
17
/// <param name="session">The peek session.</param>
18
18
/// <param name="point">The peek session tracking point</param>
19
19
/// <returns>
20
- /// A tuple containing the line number and whether the line number represents a line in the
20
+ /// A tuple containing the 0-based line number and whether the line number represents a line in the
21
21
/// left hand side of a diff view.
22
22
/// </returns>
23
23
Tuple < int , bool > GetLineNumber ( IPeekSession session , ITrackingPoint point ) ;
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ async Task UpdateThread()
196
196
197
197
AvailableForComment =
198
198
file . Diff . Any ( chunk => chunk . Lines
199
- . Any ( line => line . NewLineNumber == lineNumber ) ) ;
199
+ . Any ( line => line . NewLineNumber - 1 == lineNumber ) ) ;
200
200
201
201
var thread = file . InlineCommentThreads ? . FirstOrDefault ( x =>
202
202
x . LineNumber == lineNumber &&
You can’t perform that action at this time.
0 commit comments