diff --git a/src/SLCore.Listeners.UnitTests/AnalysisListenerTests.cs b/src/SLCore.Listeners.UnitTests/AnalysisListenerTests.cs index 7fe1a58ea2..c7b4d3e5da 100644 --- a/src/SLCore.Listeners.UnitTests/AnalysisListenerTests.cs +++ b/src/SLCore.Listeners.UnitTests/AnalysisListenerTests.cs @@ -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; @@ -30,7 +31,7 @@ public class AnalysisListenerTests [TestMethod] public void MefCtor_CheckIsExported() { - MefTestHelpers.CheckTypeCanBeImported(); + MefTestHelpers.CheckTypeCanBeImported(); } [TestMethod] diff --git a/src/SLCore.Listeners/Implementation/AnalysisListener.cs b/src/SLCore.Listeners/Implementation/AnalysisListener.cs index f09b233c3e..45753baddf 100644 --- a/src/SLCore.Listeners/Implementation/AnalysisListener.cs +++ b/src/SLCore.Listeners/Implementation/AnalysisListener.cs @@ -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 { diff --git a/src/SLCore/Listener/Analysis/IAnalysisListener.cs b/src/SLCore/Listener/Analysis/IAnalysisListener.cs index 78cbf7602b..db2904513f 100644 --- a/src/SLCore/Listener/Analysis/IAnalysisListener.cs +++ b/src/SLCore/Listener/Analysis/IAnalysisListener.cs @@ -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); }