-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
Version 2 completions seem to be much slower #4024
Comments
Cant speak for @keithbrink but I have noticed a huge change between versions 2.0.4 and 2.0.5. So maybe a regression in 2.0.5? Downgrading to 2.0.4 has a much smoother experience for me |
Similar to #4005 |
I'm looking for a reproduced case to investigate this issue. I've tried reproducing the problem on elk but no luck. (Not a small project) |
I would like to confirm if volarjs/volar.js@f041c79 is the cause, can you try this version if it solves the problem? |
@johnsoncodehk Still seems relatively slow using that patch instead of the 2.0.4 version |
I find that the time-consuming of the v2.0.5
v2.0.4
|
I tried elk and found no significant difference between 2.0.5 and 2.0.4, but the issue was reproduced in the following repository. https://github.com/skywalker512/voalr-2-reproduced It is the same operation, vscode prompts the members of a certain object. CPU profile has been sent to your email. @johnsoncodehk
|
@skywalker512 I can confirm this, thanks! |
Fixed by volarjs/volar.js@7be3ea4, it turns out that TS plugin should never proxy This will introduce a regression. When the vue file holding global types is deleted (usually the first open vue file), the next taker will not be able to update its virtual code in time to inject global types before its content is changed. This can be temporarily solved by restarting the TS server. |
Before version 2, completions would take less than a second, most of the time showing up as fast as I can type. Now, they are taking a few seconds:
The text was updated successfully, but these errors were encountered: