Skip to content

Commit 4e274ef

Browse files
authored
Merge pull request #1951 from Hosch250/codeExplorerBugs
Code explorer bugs
2 parents 91f00b6 + 726a1ba commit 4e274ef

File tree

10 files changed

+295
-242
lines changed

10 files changed

+295
-242
lines changed

RetailCoder.VBE/Common/Dispatch/DispatcherEventArgs.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using System;
2-
using Rubberduck.Parsing;
32

43
namespace Rubberduck.Common.Dispatch
54
{
6-
public class DispatcherEventArgs<T> : EventArgs, IDispatcherEventArgs<T>
5+
public class DispatcherEventArgs<T> : EventArgs
76
where T : class
87
{
98
private readonly T _item;

RetailCoder.VBE/Common/Dispatch/DispatcherRenamedEventArgs.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
using Rubberduck.Parsing;
2-
3-
namespace Rubberduck.Common.Dispatch
1+
namespace Rubberduck.Common.Dispatch
42
{
5-
public class DispatcherRenamedEventArgs<T> : DispatcherEventArgs<T>, IDispatcherRenamedEventArgs<T>
3+
public class DispatcherRenamedEventArgs<T> : DispatcherEventArgs<T>
64
where T : class
75
{
86
private readonly string _oldName;

RetailCoder.VBE/Extension.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using System.Runtime.InteropServices;
1212
using System.Windows.Forms;
1313
using Ninject.Extensions.Interception;
14+
using NLog;
1415

1516
namespace Rubberduck
1617
{
@@ -26,6 +27,7 @@ public class _Extension : IDTExtensibility2
2627

2728
private IKernel _kernel;
2829
private App _app;
30+
private readonly Logger _logger = LogManager.GetCurrentClassLogger();
2931

3032
public void OnAddInsUpdate(ref Array custom)
3133
{
@@ -50,6 +52,7 @@ public void OnConnection(object Application, ext_ConnectMode ConnectMode, object
5052
}
5153
catch (Exception exception)
5254
{
55+
_logger.Fatal(exception);
5356
System.Windows.Forms.MessageBox.Show(exception.ToString(), RubberduckUI.RubberduckLoadFailure, MessageBoxButtons.OK, MessageBoxIcon.Error);
5457
}
5558
}

0 commit comments

Comments
 (0)