Skip to content

Commit 2a6fa9a

Browse files
committed
Minor fixes and rename host .xll
1 parent 4388c7a commit 2a6fa9a

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

Source/ExcelDna.IntelliSense.Host/ExcelDna.IntelliSense.Host.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
xcopy "$(SolutionDir)\packages\ExcelDna.AddIn.0.33.9\tools\ExcelDna.xll" "$(TargetDir)ExcelDna.IntelliSense.Host-AddIn.xll*" /C /Y
7272
xcopy "$(TargetDir)ExcelDna.IntelliSense.Host-AddIn.dna*" "$(TargetDir)ExcelDna.IntelliSense.Host-AddIn64.dna*" /C /Y
7373
xcopy "$(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.

Source/ExcelDna.IntelliSense/IntelliSenseDisplay.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff 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

Source/ExcelDna.IntelliSense/IntelliSenseServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 } },

0 commit comments

Comments
 (0)