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

Commit b24f8a2

Browse files
Restoring names of a lot of things
1 parent 18dc78d commit b24f8a2

16 files changed

+54
-54
lines changed

src/GitHub.App/Services/PullRequestEditorService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public async Task<IDifferenceViewer> OpenDiff(IPullRequestSession session, strin
254254
{
255255
var diffViewer = await OpenDiff(session, relativePath, headSha, scrollToFirstDiff: false);
256256

257-
var param = (object) new InlineReviewNavigationParams
257+
var param = (object) new InlineCommentNavigationParams
258258
{
259259
FromLine = fromLine,
260260
};

src/GitHub.Exports/Commands/INextInlineReviewCommand.cs renamed to src/GitHub.Exports/Commands/INextInlineCommentCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace GitHub.Commands
66
/// <summary>
77
/// Navigates to and opens the the next inline comment thread in the currently active text view.
88
/// </summary>
9-
public interface INextInlineReviewCommand : IVsCommand<InlineReviewNavigationParams>
9+
public interface INextInlineCommentCommand : IVsCommand<InlineCommentNavigationParams>
1010
{
1111
}
1212
}

src/GitHub.Exports/Commands/IPreviousInlineCommentCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace GitHub.Commands
66
/// <summary>
77
/// Navigates to and opens the the previous inline comment thread in the currently active text view.
88
/// </summary>
9-
public interface IPreviousInlineCommentCommand : IVsCommand<InlineReviewNavigationParams>
9+
public interface IPreviousInlineCommentCommand : IVsCommand<InlineCommentNavigationParams>
1010
{
1111
}
1212
}

src/GitHub.Exports/Commands/InlineReviewNavigationParams.cs renamed to src/GitHub.Exports/Commands/InlineCommentNavigationParams.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
namespace GitHub.Commands
44
{
55
/// <summary>
6-
/// Supplies parameters to <see cref="INextInlineReviewCommand"/> and
6+
/// Supplies parameters to <see cref="INextInlineCommentCommand"/> and
77
/// <see cref="IPreviousInlineCommentCommand"/>.
88
/// </summary>
9-
public class InlineReviewNavigationParams
9+
public class InlineCommentNavigationParams
1010
{
1111
/// <summary>
1212
/// Gets or sets the line that should be used as the start point for navigation.

src/GitHub.InlineReviews/Commands/InlineReviewNavigationCommand.cs renamed to src/GitHub.InlineReviews/Commands/InlineCommentNavigationCommand.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ namespace GitHub.InlineReviews.Commands
2424
/// <summary>
2525
/// Base class for commands that navigate between inline comments.
2626
/// </summary>
27-
abstract class InlineReviewNavigationCommand : VsCommand<InlineReviewNavigationParams>
27+
abstract class InlineCommentNavigationCommand : VsCommand<InlineCommentNavigationParams>
2828
{
29-
static readonly ILogger log = LogManager.ForContext<InlineReviewNavigationCommand>();
29+
static readonly ILogger log = LogManager.ForContext<InlineCommentNavigationCommand>();
3030
readonly IGitHubServiceProvider serviceProvider;
3131
readonly IViewTagAggregatorFactoryService tagAggregatorFactory;
3232
readonly IInlineReviewPeekService peekService;
3333

3434
/// <summary>
35-
/// Initializes a new instance of the <see cref="InlineReviewNavigationCommand"/> class.
35+
/// Initializes a new instance of the <see cref="InlineCommentNavigationCommand"/> class.
3636
/// </summary>
3737
/// <param name="serviceProvider"></param>
3838
/// <param name="tagAggregatorFactory">The tag aggregator factory.</param>
3939
/// <param name="peekService">The peek service.</param>
4040
/// <param name="commandSet">The GUID of the group the command belongs to.</param>
4141
/// <param name="commandId">The numeric identifier of the command.</param>
42-
protected InlineReviewNavigationCommand(
42+
protected InlineCommentNavigationCommand(
4343
IGitHubServiceProvider serviceProvider,
4444
IViewTagAggregatorFactoryService tagAggregatorFactory,
4545
IInlineReviewPeekService peekService,
@@ -60,7 +60,7 @@ protected InlineReviewNavigationCommand(
6060
/// <param name="parameter">The parameters.</param>
6161
/// <param name="textView">The text view.</param>
6262
/// <returns></returns>
63-
protected int GetCursorPoint(ITextView textView, InlineReviewNavigationParams parameter)
63+
protected int GetCursorPoint(ITextView textView, InlineCommentNavigationParams parameter)
6464
{
6565
if (parameter?.FromLine != null)
6666
{
@@ -170,7 +170,7 @@ protected IEnumerable<ITextView> GetCurrentTextViews()
170170
}
171171
catch (Exception e)
172172
{
173-
log.Error(e, "Exception in InlineReviewNavigationCommand.GetCurrentTextViews()");
173+
log.Error(e, "Exception in InlineCommentNavigationCommand.GetCurrentTextViews()");
174174
}
175175

176176
return result;
@@ -223,7 +223,7 @@ protected IReadOnlyList<ITagInfo> GetTags(IEnumerable<ITextView> textViews)
223223
/// <param name="parameter">The navigation parameter detailing a search from the specified tag</param>
224224
/// <param name="allTextViews">The full list of text views</param>
225225
protected void ShowPeekComments(
226-
InlineReviewNavigationParams parameter,
226+
InlineCommentNavigationParams parameter,
227227
ITextView textView,
228228
ShowInlineReviewTag tag,
229229
IEnumerable<ITextView> allTextViews)

src/GitHub.InlineReviews/Commands/NextInlineReviewCommand.cs renamed to src/GitHub.InlineReviews/Commands/NextInlineCommentCommand.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ namespace GitHub.InlineReviews.Commands
1313
/// <summary>
1414
/// Navigates to and opens the the next inline review in the currently active text view.
1515
/// </summary>
16-
[Export(typeof(INextInlineReviewCommand))]
17-
class NextInlineReviewCommand : InlineReviewNavigationCommand, INextInlineReviewCommand
16+
[Export(typeof(INextInlineCommentCommand))]
17+
class NextInlineCommentCommand : InlineCommentNavigationCommand, INextInlineCommentCommand
1818
{
1919
/// <summary>
2020
/// Gets the GUID of the group the command belongs to.
@@ -27,13 +27,13 @@ class NextInlineReviewCommand : InlineReviewNavigationCommand, INextInlineReview
2727
public const int CommandId = PkgCmdIDList.NextInlineCommentId;
2828

2929
/// <summary>
30-
/// Initializes a new instance of the <see cref="NextInlineReviewCommand"/> class.
30+
/// Initializes a new instance of the <see cref="NextInlineCommentCommand"/> class.
3131
/// </summary>
3232
/// <param name="serviceProvider">The GitHub service provider.</param>
3333
/// <param name="tagAggregatorFactory">The tag aggregator factory.</param>
3434
/// <param name="peekService">The peek service.</param>
3535
[ImportingConstructor]
36-
protected NextInlineReviewCommand(
36+
protected NextInlineCommentCommand(
3737
IGitHubServiceProvider serviceProvider,
3838
IViewTagAggregatorFactoryService tagAggregatorFactory,
3939
IInlineReviewPeekService peekService)
@@ -45,7 +45,7 @@ protected NextInlineReviewCommand(
4545
/// Executes the command.
4646
/// </summary>
4747
/// <returns>A task that tracks the execution of the command.</returns>
48-
public override Task Execute(InlineReviewNavigationParams parameter)
48+
public override Task Execute(InlineCommentNavigationParams parameter)
4949
{
5050
var textViews = GetCurrentTextViews().ToList();
5151
var tags = GetTags(textViews);

src/GitHub.InlineReviews/Commands/PreviousInlineReviewCommand.cs renamed to src/GitHub.InlineReviews/Commands/PreviousInlineCommentCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace GitHub.InlineReviews.Commands
1414
/// Navigates to and opens the the previous inline review in the currently active text view.
1515
/// </summary>
1616
[Export(typeof(IPreviousInlineCommentCommand))]
17-
class PreviousInlineReviewCommand : InlineReviewNavigationCommand, IPreviousInlineCommentCommand
17+
class PreviousInlineCommentCommand : InlineCommentNavigationCommand, IPreviousInlineCommentCommand
1818
{
1919
/// <summary>
2020
/// Gets the GUID of the group the command belongs to.
@@ -27,13 +27,13 @@ class PreviousInlineReviewCommand : InlineReviewNavigationCommand, IPreviousInli
2727
public const int CommandId = PkgCmdIDList.PreviousInlineCommentId;
2828

2929
/// <summary>
30-
/// Initializes a new instance of the <see cref="PreviousInlineReviewCommand"/> class.
30+
/// Initializes a new instance of the <see cref="PreviousInlineCommentCommand"/> class.
3131
/// </summary>
3232
/// <param name="serviceProvider">The GitHub service provider.</param>
3333
/// <param name="tagAggregatorFactory">The tag aggregator factory.</param>
3434
/// <param name="peekService">The peek service.</param>
3535
[ImportingConstructor]
36-
protected PreviousInlineReviewCommand(
36+
protected PreviousInlineCommentCommand(
3737
IGitHubServiceProvider serviceProvider,
3838
IViewTagAggregatorFactoryService tagAggregatorFactory,
3939
IInlineReviewPeekService peekService)
@@ -45,7 +45,7 @@ protected PreviousInlineReviewCommand(
4545
/// Executes the command.
4646
/// </summary>
4747
/// <returns>A task that tracks the execution of the command.</returns>
48-
public override Task Execute(InlineReviewNavigationParams parameter)
48+
public override Task Execute(InlineCommentNavigationParams parameter)
4949
{
5050
var textViews = GetCurrentTextViews().ToList();
5151
var tags = GetTags(textViews);

src/GitHub.InlineReviews/GitHub.InlineReviews.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
<Link>Properties\SolutionInfo.cs</Link>
7272
</Compile>
7373
<Compile Include="Commands\ToggleInlineReviewMarginCommand.cs" />
74-
<Compile Include="Commands\InlineReviewNavigationCommand.cs" />
75-
<Compile Include="Commands\PreviousInlineReviewCommand.cs" />
76-
<Compile Include="Commands\NextInlineReviewCommand.cs" />
74+
<Compile Include="Commands\InlineCommentNavigationCommand.cs" />
75+
<Compile Include="Commands\PreviousInlineCommentCommand.cs" />
76+
<Compile Include="Commands\NextInlineCommentCommand.cs" />
7777
<Compile Include="Margins\InlineCommentTextViewOptions.cs" />
7878
<Compile Include="Margins\PullRequestFileMargin.cs" />
7979
<Compile Include="Margins\PullRequestFileMarginProvider.cs" />
@@ -137,8 +137,8 @@
137137
<Compile Include="Views\GlyphMarginGrid.xaml.cs">
138138
<DependentUpon>GlyphMarginGrid.xaml</DependentUpon>
139139
</Compile>
140-
<Compile Include="Views\InlineReviewPeekView.xaml.cs">
141-
<DependentUpon>InlineReviewPeekView.xaml</DependentUpon>
140+
<Compile Include="Views\InlineCommentPeekView.xaml.cs">
141+
<DependentUpon>InlineCommentPeekView.xaml</DependentUpon>
142142
</Compile>
143143
<Compile Include="SampleData\CommentViewModelDesigner.cs" />
144144
<Compile Include="Services\DiffService.cs" />
@@ -476,7 +476,7 @@
476476
<SubType>Designer</SubType>
477477
<Generator>MSBuild:Compile</Generator>
478478
</Page>
479-
<Page Include="Views\InlineReviewPeekView.xaml">
479+
<Page Include="Views\InlineCommentPeekView.xaml">
480480
<SubType>Designer</SubType>
481481
<Generator>MSBuild:Compile</Generator>
482482
</Page>

src/GitHub.InlineReviews/InlineReviewsPackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async Task InitializeMenus()
4848
var exports = componentModel.DefaultExportProvider;
4949
var commands = new IVsCommandBase[]
5050
{
51-
exports.GetExportedValue<INextInlineReviewCommand>(),
51+
exports.GetExportedValue<INextInlineCommentCommand>(),
5252
exports.GetExportedValue<IPreviousInlineCommentCommand>(),
5353
exports.GetExportedValue<IToggleInlineReviewMarginCommand>()
5454
};

src/GitHub.InlineReviews/Peek/InlineCommentPeekResultPresentation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class InlineCommentPeekResultPresentation : IPeekResultPresentation, IDesiredHei
1010
{
1111
const double PeekBorders = 28.0;
1212
readonly InlineReviewPeekViewModel viewModel;
13-
InlineReviewPeekView view;
13+
InlineCommentPeekView view;
1414
double desiredHeight;
1515

1616
public bool IsDirty => false;
@@ -72,7 +72,7 @@ public void Close()
7272

7373
public UIElement Create(IPeekSession session, IPeekResultScrollState scrollState)
7474
{
75-
view = new InlineReviewPeekView();
75+
view = new InlineCommentPeekView();
7676
view.DataContext = viewModel;
7777

7878
// Report the desired size back to the peek view. Unfortunately the peek view

0 commit comments

Comments
 (0)