Skip to content

Commit 0ce3590

Browse files
committed
feat: fix analyzer
1 parent 42d26d9 commit 0ce3590

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ProjectRover/Extensions/ServiceCollectionExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ You should have received a copy of the GNU Affero General Public License
2222
using Microsoft.Extensions.DependencyInjection;
2323
using Microsoft.Extensions.Logging;
2424
using ICSharpCode.ILSpy.ViewModels;
25+
using ICSharpCode.ILSpyX;
2526

2627
namespace ProjectRover.Extensions;
2728

@@ -59,7 +60,8 @@ public static IServiceCollection AddServices(this IServiceCollection services) =
5960
sp.GetRequiredService<ICSharpCode.ILSpy.Util.SettingsService>(),
6061
sp.GetRequiredService<ICSharpCode.ILSpy.LanguageService>(),
6162
ProjectRover.App.ExportProvider
62-
));
63+
))
64+
.AddSingleton<AssemblyList>(sp => sp.GetRequiredService<ICSharpCode.ILSpy.AssemblyTree.AssemblyTreeModel>().AssemblyList);
6365

6466
private static IConfigurationRoot GetConfiguration() =>
6567
new ConfigurationBuilder()

0 commit comments

Comments
 (0)