Skip to content

Commit ed03b9f

Browse files
committed
Raise individual UIStateUpdates
1 parent 5f90238 commit ed03b9f

File tree

6 files changed

+244
-119
lines changed

6 files changed

+244
-119
lines changed

Source/ExcelDna.IntelliSense.Host/ExcelDna.IntelliSense.Host-AddIn.xll.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
<system.diagnostics>
150150
<trace autoflush="false" indentsize="4"/>
151151
<sources>
152-
<source name="ExcelDna.IntelliSense" switchValue="All">
152+
<source name="ExcelDna.IntelliSense" switchValue="Off">
153153
<listeners>
154154
<!--<remove name="Default" />-->
155155
<!--<add name="LogDisplay" type="ExcelDna.Logging.LogDisplayTraceListener,ExcelDna.Integration">

Source/ExcelDna.IntelliSense/IntelliSenseDisplay.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ public IntelliSenseDisplay(SynchronizationContext syncContextMain, UIMonitor uiM
5454

5555
private void _uiMonitor_StateChanged(object sender, UIStateUpdate e)
5656
{
57-
57+
Debug.Print($"STATE UPDATE ({e.Update}): {e.OldState} => {e.NewState}");
5858
}
5959

6060

61-
6261
//// Runs on the main thread
6362
//void MainWindowChanged(object _unused_)
6463
//{

Source/ExcelDna.IntelliSense/SingleThreadSynchronizationContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void RunOnCurrentThread()
4444
}
4545
catch (Exception ex)
4646
{
47-
Debug.Print($"### Unhandled exception on Automation thread - {ex.Message}");
47+
Debug.Print($"### Unhandled exception on Automation thread - {ex.ToString()}");
4848
}
4949
}
5050

0 commit comments

Comments
 (0)