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

Commit 90513f3

Browse files
committed
Only crerate margin for diff views
This disables support for margins on editable and non-editable document views.
1 parent 9ec3d1b commit 90513f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/GitHub.InlineReviews/Margins/InlineCommentMarginProvider.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using Microsoft.VisualStudio.Text.Classification;
88
using GitHub.Services;
99
using GitHub.VisualStudio;
10-
using GitHub.InlineReviews.Services;
1110

1211
namespace GitHub.InlineReviews.Margins
1312
{
@@ -16,7 +15,9 @@ namespace GitHub.InlineReviews.Margins
1615
[Order(After = PredefinedMarginNames.Glyph)]
1716
[MarginContainer(PredefinedMarginNames.Left)]
1817
[ContentType("text")]
19-
[TextViewRole(PredefinedTextViewRoles.Interactive)]
18+
[TextViewRole("LEFTDIFF")]
19+
[TextViewRole("RIGHTDIFF")]
20+
[TextViewRole("INLINEDIFF")]
2021
internal sealed class InlineCommentMarginProvider : IWpfTextViewMarginProvider
2122
{
2223
readonly Lazy<IEditorFormatMapService> editorFormatMapService;

0 commit comments

Comments
 (0)