Skip to content

Commit

Permalink
Make IAnalysisListener inherit from ISLCoreListener (#5280)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgii-borovinskikh-sonarsource authored Mar 6, 2024
1 parent 434f42f commit 664e620
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/SLCore.Listeners.UnitTests/AnalysisListenerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

using System.Collections.Generic;
using System.Threading.Tasks;
using SonarLint.VisualStudio.SLCore.Core;
using SonarLint.VisualStudio.SLCore.Listener.Analysis;

namespace SonarLint.VisualStudio.SLCore.Listeners.UnitTests;
Expand All @@ -30,7 +31,7 @@ public class AnalysisListenerTests
[TestMethod]
public void MefCtor_CheckIsExported()
{
MefTestHelpers.CheckTypeCanBeImported<AnalysisListener, IAnalysisListener>();
MefTestHelpers.CheckTypeCanBeImported<AnalysisListener, ISLCoreListener>();
}

[TestMethod]
Expand Down
3 changes: 2 additions & 1 deletion src/SLCore.Listeners/Implementation/AnalysisListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@

using System.ComponentModel.Composition;
using System.Threading.Tasks;
using SonarLint.VisualStudio.SLCore.Core;
using SonarLint.VisualStudio.SLCore.Listener.Analysis;

namespace SonarLint.VisualStudio.SLCore.Listeners.Implementation;

[Export(typeof(IAnalysisListener))]
[Export(typeof(ISLCoreListener))]
[PartCreationPolicy(CreationPolicy.Shared)]
internal class AnalysisListener : IAnalysisListener
{
Expand Down
3 changes: 2 additions & 1 deletion src/SLCore/Listener/Analysis/IAnalysisListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
*/

using System.Threading.Tasks;
using SonarLint.VisualStudio.SLCore.Core;

namespace SonarLint.VisualStudio.SLCore.Listener.Analysis;

internal interface IAnalysisListener
internal interface IAnalysisListener : ISLCoreListener
{
Task DidChangeAnalysisReadinessAsync(DidChangeAnalysisReadinessParams parameters);
}

0 comments on commit 664e620

Please sign in to comment.