Skip to content

Commit

Permalink
Add parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonchou committed Nov 30, 2021
1 parent d53933d commit 9e66c4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ internal partial class DiagnosticIncrementalAnalyzer
private partial class StateManager
{
private readonly Workspace _workspace;
private readonly IPersistentStorageService _persistentStorageService;
private readonly DiagnosticAnalyzerInfoCache _analyzerInfoCache;

/// <summary>
Expand All @@ -41,8 +42,9 @@ private partial class StateManager
/// </summary>
public event EventHandler<ProjectAnalyzerReferenceChangedEventArgs>? ProjectAnalyzerReferenceChanged;

public StateManager(Workspace workspace, DiagnosticAnalyzerInfoCache analyzerInfoCache)
public StateManager(Workspace workspace, IPersistentStorageService persistentStorageService, DiagnosticAnalyzerInfoCache analyzerInfoCache)
{
_persistentStorageService = persistentStorageService;
_workspace = workspace;
_analyzerInfoCache = analyzerInfoCache;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public DiagnosticIncrementalAnalyzer(

_correlationId = correlationId;

_stateManager = new StateManager(workspace, analyzerInfoCache);
_stateManager = new StateManager(workspace, PersistentStorageService, analyzerInfoCache);
_stateManager.ProjectAnalyzerReferenceChanged += OnProjectAnalyzerReferenceChanged;
_telemetry = new DiagnosticAnalyzerTelemetry();

Expand Down

0 comments on commit 9e66c4f

Please sign in to comment.