Skip to content

Commit

Permalink
Add large lineEndColumn to ensure all of last line is highlighted
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdisThomann committed Mar 25, 2024
1 parent 38378ea commit 5b14542
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ if (linkFormat == LinkFormat.GitLab)

if (linkFormat == LinkFormat.DevOps)
{
Polyfill.Append(builder, $"?path={path}&line={snippet.StartLine}&lineEnd={snippet.EndLine}&lineStartColumn=1");
Polyfill.Append(builder, $"?path={path}&line={snippet.StartLine}&lineEnd={snippet.EndLine}&lineStartColumn=1&lineEndColumn=999");
}
```
<sup><a href='/src/MarkdownSnippets/Processing/SnippetMarkdownHandling.cs#L96-L126' title='Snippet source file'>snippet source</a> | <a href='#snippet-BuildLink' title='Start of snippet'>anchor</a></sup>
Expand Down
2 changes: 1 addition & 1 deletion src/MarkdownSnippets/Processing/SnippetMarkdownHandling.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void BuildLink(Snippet snippet, string path, StringBuilder builder)

if (linkFormat == LinkFormat.DevOps)
{
Polyfill.Append(builder, $"?path={path}&line={snippet.StartLine}&lineEnd={snippet.EndLine}&lineStartColumn=1");
Polyfill.Append(builder, $"?path={path}&line={snippet.StartLine}&lineEnd={snippet.EndLine}&lineStartColumn=1&lineEndColumn=999");
}

#endregion
Expand Down

0 comments on commit 5b14542

Please sign in to comment.