delegateas/XrmDefinitelyTyped

Issue with formContext.ui.tab.get Intellisense is not working

Opened this issue · 2 comments

I am having issues with the formContext.ui.tabs.get api as it is not being recognized by the intelli-sense any longer.

image

The formContext.getAttribute and formContext.getControl seem to work but tabs is not.

image

image

I just checked on latest (5.6.1), and it's working as intended my side.
Which version are you using?
Further, I've seen a restart of visual studio or regeneration of the TS Context can do the trick if there's no other obvious explanations. Hoping it helps, otherwise, please reach out again.

I tried both regenerating the TS and restarting Visual Studio to no avail. Version is 5.6.1 TypeScript version 4.4.3. The work around I did was cast the executionContext.getFormType to "any" first then to the form. Only then did it pull up the intellisense correctly.

image