The plugin responds slowly if you turn autocomplete on and off more than 10 times in a row #3616
Open
2 of 3 tasks
Labels
area:autocomplete
Relates to the auto complete feature
ide:vscode
Relates specifically to VS Code extension
kind:bug
Indicates an unexpected problem or unintended behavior
"needs-triage"
priority:medium
Indicates medium priority
Before submitting your bug report
Relevant environment info
Description
If you disable and enable tab completion several times in a row, the plugin starts consuming more than 100% of CPU and responds to actions with a big delay.
To reproduce
Use hotkey more than 10 times to enable/disable continue (command continue.toggleTabAutocompleteEnabled)
Watch the continue icon in the status bar, after 10-15 presses it starts to react slower and slower to key presses.
Video - http://kzx.s3.eu-central-1.amazonaws.com/m/202501-3cvga.mp4
On the video you can see how I first enable and disable autocomplete 10 times (look in the bottom corner of VS window, there the continue icon becomes active or disabled).
After that with each press on a hotkey the plugin reacts slower and slower, also if you click on it with the mouse (time 0:31 on the video) it reacts with a big delay, CPU at this time is about 114%
Even if you do not press anything further, this behavior persists. The responsiveness of the plugin worsens with each hotkey press and does not recover over time.
Log output
The text was updated successfully, but these errors were encountered: