File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
ExcelDna.IntelliSense.Host Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 7171xcopy "$(SolutionDir)\packages\ExcelDna.AddIn.0.33.9\tools\ExcelDna.xll" "$(TargetDir)ExcelDna.IntelliSense.Host-AddIn.xll*" /C /Y
7272xcopy "$(TargetDir)ExcelDna.IntelliSense.Host-AddIn.dna*" "$(TargetDir)ExcelDna.IntelliSense.Host-AddIn64.dna*" /C /Y
7373xcopy "$(SolutionDir)\packages\ExcelDna.AddIn.0.33.9\tools\ExcelDna64.xll" "$(TargetDir)ExcelDna.IntelliSense.Host-AddIn64.xll*" /C /Y
74- "$(SolutionDir)\packages\ExcelDna.AddIn.0.33.9\tools\ExcelDnaPack.exe" "$(TargetDir)ExcelDna.IntelliSense.Host-AddIn.dna" /Y
75- "$(SolutionDir)\packages\ExcelDna.AddIn.0.33.9\tools\ExcelDnaPack.exe" "$(TargetDir)ExcelDna.IntelliSense.Host-AddIn64.dna" /Y</PostBuildEvent >
74+ "$(SolutionDir)\packages\ExcelDna.AddIn.0.33.9\tools\ExcelDnaPack.exe" "$(TargetDir)ExcelDna.IntelliSense.Host-AddIn.dna" /Y /O "$(TargetDir)ExcelDna.IntelliSense.xll"
75+ "$(SolutionDir)\packages\ExcelDna.AddIn.0.33.9\tools\ExcelDnaPack.exe" "$(TargetDir)ExcelDna.IntelliSense.Host-AddIn64.dna" /Y /O "$(TargetDir)ExcelDna.IntelliSense64.xll" </PostBuildEvent >
7676 </PropertyGroup >
7777 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
7878 Other similar extension points exist, see Microsoft.Common.targets.
Original file line number Diff line number Diff line change @@ -192,6 +192,10 @@ void UpdateFormulaEditWindow(IntPtr formulaEditWindow)
192192 _argumentsToolTip = new ToolTipForm ( _formulaEditWindow ) ;
193193 //_argumentsToolTip.OwnerHandle = _formulaEditWindow;
194194 }
195+ else
196+ {
197+ Debug . Fail ( "Unexpected null FormulaEditWindow..." ) ;
198+ }
195199 }
196200 }
197201
@@ -226,9 +230,13 @@ void FormulaEditStart()
226230 void FormulaEditEnd ( )
227231 {
228232 Debug . Print ( $ "IntelliSenseDisplay - FormulaEditEnd") ;
229- //_argumentsToolTip.Hide();
230- _argumentsToolTip . Dispose ( ) ;
231- _argumentsToolTip = null ;
233+ // TODO: When can it be null
234+ if ( _argumentsToolTip != null )
235+ {
236+ //_argumentsToolTip.Hide();
237+ _argumentsToolTip . Dispose ( ) ;
238+ _argumentsToolTip = null ;
239+ }
232240 }
233241
234242 // Runs on the main thread
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ static RegistrationInfo GetHighestPublishedRegistration()
397397
398398 static void RegisterControlFunction ( )
399399 {
400- var method = typeof ( IntelliSenseServer ) . GetMethod ( " IntelliSenseServerControl" , BindingFlags . Static | BindingFlags . Public ) ;
400+ var method = typeof ( IntelliSenseServer ) . GetMethod ( nameof ( IntelliSenseServerControl ) , BindingFlags . Static | BindingFlags . Public ) ;
401401 var name = "IntelliSenseServerControl_" + _serverId . ToString ( "N" ) ;
402402 ExcelIntegration . RegisterMethods ( new List < MethodInfo > { method } ,
403403 new List < object > { new ExcelCommandAttribute { Name = name } } ,
You can’t perform that action at this time.
0 commit comments