提交 82b2c2a2 编写于 作者: H Heejae Chang 提交者: GitHub

Merge pull request #14809 from heejaechang/fixdump2

fail fast when extension manager is null
......@@ -43,6 +43,12 @@ public VisualStudioWorkspaceDiagnosticAnalyzerProviderService(VisualStudioWorksp
// Get the analyzer assets for installed VSIX extensions through the VSIX extension manager.
var extensionManager = workspace.GetVsService(assembly.GetType("Microsoft.VisualStudio.ExtensionManager.SVsExtensionManager"));
if (extensionManager == null)
{
// extension manager can't be null. if it is null, then VS is seriously broken.
// fail fast right away
FailFast.OnFatalException(new Exception("extension manager can't be null"));
}
_hostDiagnosticAnalyzerInfo = GetHostAnalyzerPackagesWithName(extensionManager, assembly.GetType("Microsoft.VisualStudio.ExtensionManager.IExtensionContent"));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册