Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Feb 2, 2022
1 parent 395a8d2 commit 6265e65
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ namespace Roslyn.VisualStudio.DiagnosticsWindow
public sealed class VisualStudioDiagnosticsWindowPackage : AsyncPackage
{
private IThreadingContext _threadingContext;
private VisualStudioWorkspace _workspace;

/// <summary>
/// This function is called when the user clicks the menu item that shows the
Expand Down Expand Up @@ -83,7 +82,7 @@ protected override async Task InitializeAsync(CancellationToken cancellationToke
_threadingContext = componentModel.GetService<IThreadingContext>();
var globalOptions = componentModel.GetService<IGlobalOptionService>();

var workspace = componentModel.GetService<VisualStudioWorkspace>();
_workspace = componentModel.GetService<VisualStudioWorkspace>();
_ = new ForceLowMemoryMode(globalOptions);

// Add our command handlers for menu (commands must exist in the .vsct file)
Expand All @@ -96,7 +95,7 @@ protected override async Task InitializeAsync(CancellationToken cancellationToke
}

// set logger at start up
PerformanceLoggersPage.SetLoggers(globalOptions, _threadingContext, workspace.Services);
PerformanceLoggersPage.SetLoggers(globalOptions, _threadingContext, _workspace.Services);
}
#endregion

Expand Down

0 comments on commit 6265e65

Please sign in to comment.