Skip to content

Conversation

@aspeddro
Copy link
Contributor

Neovim:
image

VSCode:
image

Related #469
Close #469

@zth
Copy link
Member

zth commented Oct 22, 2023

I like this in general! But, I worry about perf. Does this mean that the cmt is processed for every file module that can be found? If so, it's important to test the cases where we complete and get tons of file modules back. Like when completing for "nothing" at the top level for example.

Could you bench this somehow? Preferably in a larger project. We could for example consider doing the lookups for only the first X file modules, and do them lazily as needed.

@zth
Copy link
Member

zth commented Nov 13, 2023

@aspeddro could we check the perf here somehow?

@aspeddro
Copy link
Contributor Author

I'll check this week

@aspeddro aspeddro marked this pull request as draft November 18, 2023 00:15
@aspeddro
Copy link
Contributor Author

I changed it to draft bc the implementation is wrong

@zth
Copy link
Member

zth commented Mar 11, 2024

@aspeddro think we can close this one, I implemented the equivalent via the completionResolve request instead in a recent PR.

@aspeddro aspeddro closed this Mar 12, 2024
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

Successfully merging this pull request may close these issues.

Show docs for file modules on type hint

2 participants