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

Include data in completionEntryDetails request #467

Conversation

JaydenNavarro-at
Copy link
Contributor

At work some changes were made recently to the way module resolution works which broke auto importing in Tide. Other editors such as VSCode were not affected, so we compared the tsserver requests/responses between VSCode and Tide and noticed that completionEntryDetails was returning an empty body for Tide but not VSCode. The only difference between the two requests was that VSCode included the data property under entryNames (included in the response from the completions request), whereas Tide did not. Patching Tide to include data fixed the issue.

I'm not sure why after these tsconfig changes tsserver no longer can provide completion entry details without the extra data, but the change to support this is minimal so I thought I'd contribute it upstream in case others hit the same issue.

@ananthakumaran
Copy link
Owner

Thanks for debugging the issue and the patch. It seems like this info is required to disambiguate the completion with the same name microsoft/TypeScript#42890

@ananthakumaran ananthakumaran merged commit b38dfc3 into ananthakumaran:master Jun 20, 2023
10 checks passed
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.

None yet

2 participants