Skip to content

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
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.

2 participants