Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sotoralph opened this issue Oct 12, 2021 · 2 comments
Open

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

sotoralph opened this issue Oct 12, 2021 · 2 comments

Comments

@sotoralph
Copy link

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

@misoeli
Copy link
Member

misoeli commented Oct 12, 2021

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.

@sotoralph
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants