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

Commit 9189d6b

Browse files
committed
Fix navigate from 'View File' to editor
1 parent c917d44 commit 9189d6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/GitHub.App/Services/PullRequestEditorService.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ public async Task OpenFile(
102102
if (!workingDirectory)
103103
{
104104
AddBufferTag(buffer, session, fullPath, commitSha, null);
105+
106+
var textView = FindActiveView();
107+
var file = await session.GetFile(relativePath);
108+
EnableNavigateToEditor(textView, session, file);
105109
}
106110
}
107111

0 commit comments

Comments
 (0)