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

Commit 214e1a5

Browse files
Renaming more InlineComment things
1 parent ea3c850 commit 214e1a5

21 files changed

+78
-78
lines changed

src/GitHub.Exports/Commands/INextInlineCommentCommand.cs renamed to src/GitHub.Exports/Commands/INextInlineReviewCommand.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 INextInlineCommentCommand : IVsCommand<InlineReviewNavigationParams>
9+
public interface INextInlineReviewCommand : IVsCommand<InlineReviewNavigationParams>
1010
{
1111
}
1212
}

src/GitHub.Exports/Commands/IToggleInlineCommentMarginCommand.cs

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace GitHub.Commands
2+
{
3+
public interface IToggleInlineReviewMarginCommand : IVsCommand
4+
{
5+
}
6+
}

src/GitHub.Exports/Commands/InlineReviewNavigationParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace GitHub.Commands
44
{
55
/// <summary>
6-
/// Supplies parameters to <see cref="INextInlineCommentCommand"/> and
6+
/// Supplies parameters to <see cref="INextInlineReviewCommand"/> and
77
/// <see cref="IPreviousInlineCommentCommand"/>.
88
/// </summary>
99
public class InlineReviewNavigationParams

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

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

3434
/// <summary>
35-
/// Initializes a new instance of the <see cref="InlineCommentNavigationCommand"/> class.
35+
/// Initializes a new instance of the <see cref="InlineReviewNavigationCommand"/> 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 InlineCommentNavigationCommand(
42+
protected InlineReviewNavigationCommand(
4343
IGitHubServiceProvider serviceProvider,
4444
IViewTagAggregatorFactoryService tagAggregatorFactory,
45-
IInlineCommentPeekService peekService,
45+
IInlineReviewPeekService peekService,
4646
Guid commandSet,
4747
int commandId)
4848
: base(commandSet, commandId)
@@ -170,7 +170,7 @@ protected IEnumerable<ITextView> GetCurrentTextViews()
170170
}
171171
catch (Exception e)
172172
{
173-
log.Error(e, "Exception in InlineCommentNavigationCommand.GetCurrentTextViews()");
173+
log.Error(e, "Exception in InlineReviewNavigationCommand.GetCurrentTextViews()");
174174
}
175175

176176
return result;

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

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

2929
/// <summary>
30-
/// Initializes a new instance of the <see cref="NextInlineCommentCommand"/> class.
30+
/// Initializes a new instance of the <see cref="NextInlineReviewCommand"/> 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 NextInlineCommentCommand(
36+
protected NextInlineReviewCommand(
3737
IGitHubServiceProvider serviceProvider,
3838
IViewTagAggregatorFactoryService tagAggregatorFactory,
39-
IInlineCommentPeekService peekService)
39+
IInlineReviewPeekService peekService)
4040
: base(serviceProvider, tagAggregatorFactory, peekService, CommandSet, CommandId)
4141
{
4242
}

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

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

2929
/// <summary>
30-
/// Initializes a new instance of the <see cref="PreviousInlineCommentCommand"/> class.
30+
/// Initializes a new instance of the <see cref="PreviousInlineReviewCommand"/> 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 PreviousInlineCommentCommand(
36+
protected PreviousInlineReviewCommand(
3737
IGitHubServiceProvider serviceProvider,
3838
IViewTagAggregatorFactoryService tagAggregatorFactory,
39-
IInlineCommentPeekService peekService)
39+
IInlineReviewPeekService peekService)
4040
: base(serviceProvider, tagAggregatorFactory, peekService, CommandSet, CommandId)
4141
{
4242
}

src/GitHub.InlineReviews/Commands/ToggleInlineCommentMarginCommand.cs renamed to src/GitHub.InlineReviews/Commands/ToggleInlineReviewMarginCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
namespace GitHub.InlineReviews.Commands
1414
{
15-
[Export(typeof(IToggleInlineCommentMarginCommand))]
16-
public class ToggleInlineCommentMarginCommand : VsCommand, IToggleInlineCommentMarginCommand
15+
[Export(typeof(IToggleInlineReviewMarginCommand))]
16+
public class ToggleInlineReviewMarginCommand : VsCommand, IToggleInlineReviewMarginCommand
1717
{
1818
/// <summary>
1919
/// Gets the GUID of the group the command belongs to.
@@ -30,7 +30,7 @@ public class ToggleInlineCommentMarginCommand : VsCommand, IToggleInlineCommentM
3030
readonly Lazy<IUsageTracker> usageTracker;
3131

3232
[ImportingConstructor]
33-
public ToggleInlineCommentMarginCommand(
33+
public ToggleInlineReviewMarginCommand(
3434
IGitHubServiceProvider serviceProvider,
3535
Lazy<IVsEditorAdaptersFactoryService> editorAdapter,
3636
Lazy<IUsageTracker> usageTracker) : base(CommandSet, CommandId)

src/GitHub.InlineReviews/GitHub.InlineReviews.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@
7070
<Compile Include="..\common\SolutionInfo.cs">
7171
<Link>Properties\SolutionInfo.cs</Link>
7272
</Compile>
73-
<Compile Include="Commands\ToggleInlineCommentMarginCommand.cs" />
74-
<Compile Include="Commands\InlineCommentNavigationCommand.cs" />
75-
<Compile Include="Commands\PreviousInlineCommentCommand.cs" />
76-
<Compile Include="Commands\NextInlineCommentCommand.cs" />
73+
<Compile Include="Commands\ToggleInlineReviewMarginCommand.cs" />
74+
<Compile Include="Commands\InlineReviewNavigationCommand.cs" />
75+
<Compile Include="Commands\PreviousInlineReviewCommand.cs" />
76+
<Compile Include="Commands\NextInlineReviewCommand.cs" />
7777
<Compile Include="Margins\InlineCommentTextViewOptions.cs" />
7878
<Compile Include="Margins\PullRequestFileMargin.cs" />
7979
<Compile Include="Margins\PullRequestFileMarginProvider.cs" />
@@ -104,9 +104,9 @@
104104
<Compile Include="Peek\InlineCommentPeekResultPresenter.cs" />
105105
<Compile Include="Properties\AssemblyInfo.cs" />
106106
<Compile Include="SampleData\InlineReviewViewModelDesigner.cs" />
107-
<Compile Include="Services\IInlineCommentPeekService.cs" />
107+
<Compile Include="Services\IInlineReviewPeekService.cs" />
108108
<Compile Include="Services\IPullRequestSessionService.cs" />
109-
<Compile Include="Services\InlineCommentPeekService.cs" />
109+
<Compile Include="Services\InlineReviewPeekService.cs" />
110110
<Compile Include="Services\PullRequestSession.cs" />
111111
<Compile Include="Services\PullRequestSessionManager.cs" />
112112
<Compile Include="Margins\InlineCommentMarginProvider.cs" />

src/GitHub.InlineReviews/InlineReviewsPackage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ async Task InitializeMenus()
4848
var exports = componentModel.DefaultExportProvider;
4949
var commands = new IVsCommandBase[]
5050
{
51-
exports.GetExportedValue<INextInlineCommentCommand>(),
51+
exports.GetExportedValue<INextInlineReviewCommand>(),
5252
exports.GetExportedValue<IPreviousInlineCommentCommand>(),
53-
exports.GetExportedValue<IToggleInlineCommentMarginCommand>()
53+
exports.GetExportedValue<IToggleInlineReviewMarginCommand>()
5454
};
5555

5656
await JoinableTaskFactory.SwitchToMainThreadAsync();

0 commit comments

Comments
 (0)