提交 36225488 编写于 作者: B Balaji Soundrarajan

Dont re-add the same source table

Fix #1309 : The call to AddTableSource(), which adds the table to
the manager, happens the first time when calling the base constructor
hence a explicit call to the same method is unnecessary and results
in exception being thrown
上级 6cc33123
......@@ -22,7 +22,7 @@ internal class MiscellaneousDiagnosticListTable : VisualStudioBaseDiagnosticList
SVsServiceProvider serviceProvider, MiscellaneousFilesWorkspace workspace, IDiagnosticService diagnosticService, ITableManagerProvider provider) :
base(serviceProvider, workspace, diagnosticService, Identifier, provider)
{
AddTableSource();
ConnectWorkspaceEvents();
}
/// this is for test only
......
......@@ -20,7 +20,7 @@ internal class MiscellaneousTodoListTable : VisualStudioBaseTodoListTable
public MiscellaneousTodoListTable(MiscellaneousFilesWorkspace workspace, ITodoListProvider todoListProvider, ITableManagerProvider provider) :
base(workspace, todoListProvider, Identifier, provider)
{
AddTableSource();
ConnectWorkspaceEvents();
}
// only for test
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册