Skip to content

Show Docstrings for completion items#837

Closed
aspeddro wants to merge 2 commits into
rescript-lang:masterfrom
aspeddro:fix-completion-docstring-module
Closed

Show Docstrings for completion items#837
aspeddro wants to merge 2 commits into
rescript-lang:masterfrom
aspeddro:fix-completion-docstring-module

Conversation

@aspeddro

Copy link
Copy Markdown
Contributor

Neovim:
image

VSCode:
image

Related #469
Close #469

@zth

zth commented Oct 22, 2023

Copy link
Copy Markdown
Member

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

zth commented Nov 13, 2023

Copy link
Copy Markdown
Member

@aspeddro could we check the perf here somehow?

@aspeddro

Copy link
Copy Markdown
Contributor Author

I'll check this week

@aspeddro aspeddro marked this pull request as draft November 18, 2023 00:15
@aspeddro

Copy link
Copy Markdown
Contributor Author

I changed it to draft bc the implementation is wrong

@zth

zth commented Mar 11, 2024

Copy link
Copy Markdown
Member

@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