You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// In case of the special params pattern (x, y, arg1, ...) we base the argument display on an expanded argument list, matching Excel's behaviour,
543
+
// and the magic expansion in the function wizard.
544
+
// Thanks to @amibar for figuring this out.
545
+
// NOTE: We might need to get the whole formula, the current location (or prefix) and the currentArgIndex to implement Excel's behaviour for params parameters.
546
+
// Usually just having the prefix is OK, but in case we have the formula: F(params object[] args) and we write in the formula editor =F(1,2,3,4,5,6,7)
547
+
// and then we move the cursor to point on the second argument, our current implementation will shorten its text and omit any argument after the 3rd argument.
548
+
// But Excel will keep showing the vurtual argument list corresponding to the full formula.
549
+
// There is no technical problem in getting the full formula - PenHelper will give us the required info - but tracking this throughout the IntelliSense state
550
+
// affects the code in a lot of places, and the benefits seem small, particularly in this case of quirky Excel behaviour.
functionInfo.ArgumentList[functionInfo.ArgumentList.Count-2].Name.EndsWith("1")&&// Note: Need both the Arg1 and the ... to trigger the expansion in the function wizard?
0 commit comments