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

Custom Commands Intellisense #46

Open
talyh opened this issue Mar 23, 2021 · 2 comments
Open

Custom Commands Intellisense #46

talyh opened this issue Mar 23, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@talyh
Copy link

talyh commented Mar 23, 2021

Sorry for opening this is an Issue. Doing so as a consequence of #45.

I'm wondering whether with the autocompletion features that exist for fixture and alias and the knowledge of the commands folder, if there's a way to have autocompletion for custom commands that I'm somehow missing.

The setup seems ok (ie. Go to Custom Command Definition works fine, as well as the fixture/alias autocompletion), so not sure if I'm missing something here or wishing for something that doesn't exist.

@Shelex Shelex added the enhancement New feature or request label Mar 25, 2021
@Shelex
Copy link
Contributor

Shelex commented Mar 25, 2021

@talyh ,
custom command autocompletion is currently supported via Cypress proposed approach with types for custom commands.
It is done by generating type definitions file on demand Generate type definitions for cypress commands and also there is automatic option to do that when file is saved (cypressHelper.typeDefinitionOnSave).

I think that it will be great to have autocomplete when there is no such definitions available. However it may conflict with definitions provided by cypress and by typescript engine, so it should be investigated first.

@talyh
Copy link
Author

talyh commented Mar 25, 2021

Thanks for the clarification!

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

No branches or pull requests

2 participants