Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 78a411f

Browse files
committed
Center editable document position on caret
1 parent e044f26 commit 78a411f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GitHub.VisualStudio/Views/GitHubPane/PullRequestDetailView.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ async Task DoOpenLiveFile(IPullRequestFileNode file)
138138
IVsTextView view = OpenDocument(fullPath);
139139

140140
view.SetCaretPos(line, column);
141+
view.CenterLines(line, 1);
141142

142143
// TODO: Add metrics for NumberOfPRDetailsOpenLiveFile
143144
await UsageTracker.IncrementCounter(x => x.NumberOfPRDetailsOpenFileInSolution);

0 commit comments

Comments
 (0)