Skip to content

Commit

Permalink
Disable inheritance margin for interactive documents (#61476)
Browse files Browse the repository at this point in the history
  • Loading branch information
dibarbet authored May 24, 2022
1 parent 2f067e9 commit 828ca46
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Editor;
using Microsoft.CodeAnalysis.Editor.Shared.Extensions;
using Microsoft.CodeAnalysis.Editor.Shared.Options;
Expand Down Expand Up @@ -95,6 +96,9 @@ protected override async Task ProduceTagsAsync(
if (document == null)
return;

if (document.Project.Solution.Workspace.Kind == WorkspaceKind.Interactive)
return;

var inheritanceMarginInfoService = document.GetLanguageService<IInheritanceMarginService>();
if (inheritanceMarginInfoService == null)
return;
Expand Down

0 comments on commit 828ca46

Please sign in to comment.