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

Autofill object members feature request #443

Closed
preslavmihaylov opened this issue Nov 5, 2023 · 2 comments
Closed

Autofill object members feature request #443

preslavmihaylov opened this issue Nov 5, 2023 · 2 comments

Comments

@preslavmihaylov
Copy link

There's apparently a feature in tsserver which allows one to auto-fill missing members in an object, given that you know what type you're looking for.

a good way to understand what the feature looks like is this comment.

Is these support for something similar in coc-tsserver or are there plans to implement it?

@fannheyward
Copy link
Member

It's already supported, fire codeAction on data

image

@preslavmihaylov
Copy link
Author

ahh thank you, wasn't aware of code actions!

For completeness, the way I triggered this window is by adding this mapping:

xmap <leader>a  <Plug>(coc-codeaction-selected)

and after selecting the line I'm interested in, it does suggest adding the missing properties.

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