-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Hi @govert,
Our team has been struggling with an unpleasant issue when at times the arguments tooltip doesn't pop up when needed. We tracked it down and created a minimal repro:
Steps to reproduce:
- Follow the "Getting started" guide in https://excel-dna.net/
- Add an ExcelArgument attribute to
nameparameter ofSayHellomethod, e.g.:[ExcelArgument(Name = "Name", Description = "Enter your name")] - Build and run the addin
- Load ExcelDna.IntelliSense[64].xll
- Focus on a cell and press Windows key and plus sign - Magnifier appears
- Close Magnifier (optional)
- Type
=SayHello(
Expected: Arguments tooltip must show up.
Actual: It does not show up, closing the Magnifier doesn't help.
More investigation by our team:
We turned on diagnostic logging and saw that the problem roots in FormulaEditWatcher.cs. It appears that it normally expects events in the following order: Focus > Show > Unfocus > Hide. In our case however, we saw events in the produced log in Focus > Unfocus > Hide order.
We attempted to add some compensating code to IntelliSense and it helped:

If that works, I could submit a pull request. Otherwise, we would love to hear your advice on this matter.
