-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
Slow IntelliSense with react-hook-form resolvers on commands completionInfo
, completionEntryDetails
, and, encodedSemanticClassifications-full
#46726
Comments
completionInfo
, completionEntryDetails
, and, encodedSemanticClassifications-full
completionInfo
, completionEntryDetails
, and, encodedSemanticClassifications-full
We need to know exactly where you were requesting the completions seen in those logs, and it would also help to know which completion item was highlighted (which is the one details are requested for). |
What’s showing in your screenshot is actually a feature called “signature help,” and that request is not in the logs you shared. I’m guessing this is actually what we’re looking at? I get completions very fast here. Can you give more detailed instructions on exactly what you’re doing step by step that triggers the issue? Does it repro with such slow completions every time? |
Apologies that is my misunderstanding with the commands. The "signature help" perf log is always sub 10 ms so I didn't see it as a culprit. For
The detailed instructions:
Exactly what I noticed as the problem was the signature helper above taking a long time to show (4.4.4 could take seconds) which previously in 4.2.4 felt immediate. Honestly 800 ms isn't the end of the world and this issue was greatly improved in 4.5.1-rc. Let me know your thoughts if I am being nitpicky here. |
No, 800ms is pretty bad for |
Bug Report
When adding react-hook-form with their resolver library and zod, the IntelliSense time blows up on three commands:
completionInfo
,completionEntryDetails
, and,encodedSemanticClassifications-full
.Before adding the resolver the logs output:
After adding the resolver the logs output:
What seems to be an identical issue was previously reported in a now closed ticket (#44851).
🔎 Search Terms
🕗 Version & Regression Information
As noted in the ticket Typescript 4.3 introduced the regression. When downgrading to Typescript 4.2, I do not see this issue. The issue persists when using the PR (#46429) that closed the previously reported issue (#44851). The PR landed in Typescript 4.5.1-rc.
⏯ Playground Link
Example repo can be found:
https://github.com/JSin/type-resolve-bug
💻 Code
🙁 Actual behavior
Extremely Slow IntelliSense
🙂 Expected behavior
Fast IntelliSense
The text was updated successfully, but these errors were encountered: