XrmDefinitelyTyped icon indicating copy to clipboard operation
XrmDefinitelyTyped copied to clipboard

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

Open sotoralph opened this issue 4 years ago • 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

sotoralph avatar Oct 12 '21 15:10 sotoralph

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.

misoeli avatar Oct 12 '21 18:10 misoeli

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

sotoralph avatar Oct 12 '21 19:10 sotoralph