diff --git a/src/GitHub.InlineReviews/ViewModels/InlineCommentPeekViewModel.cs b/src/GitHub.InlineReviews/ViewModels/InlineCommentPeekViewModel.cs index 9deb23ab05..fc3b745522 100644 --- a/src/GitHub.InlineReviews/ViewModels/InlineCommentPeekViewModel.cs +++ b/src/GitHub.InlineReviews/ViewModels/InlineCommentPeekViewModel.cs @@ -75,6 +75,14 @@ public sealed class InlineCommentPeekViewModel : ReactiveObject, IDisposable { FromLine = peekService.GetLineNumber(peekSession, triggerPoint).Item1, })); + + NavigateToEditor = ReactiveCommand.CreateAsyncTask( + Observable.Return(true), + async _ => + { + // TODO: Execute the `openFileInSolutionCommand`. + await Task.Delay(1000); + }); } /// @@ -96,6 +104,11 @@ public ICommentThreadViewModel Thread /// public ReactiveCommand PreviousComment { get; } + /// + /// Gets a command which navigates to the position of this comment in the live editor. + /// + public ReactiveCommand NavigateToEditor { get; } + public void Dispose() { threadSubscription?.Dispose(); diff --git a/src/GitHub.InlineReviews/Views/InlineCommentPeekView.xaml b/src/GitHub.InlineReviews/Views/InlineCommentPeekView.xaml index c27c40447b..5c0945ffbc 100644 --- a/src/GitHub.InlineReviews/Views/InlineCommentPeekView.xaml +++ b/src/GitHub.InlineReviews/Views/InlineCommentPeekView.xaml @@ -96,7 +96,20 @@ + + +