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

The plugin responds slowly if you turn autocomplete on and off more than 10 times in a row #3616

Open
2 of 3 tasks
AlexBlack772 opened this issue Jan 6, 2025 · 0 comments
Assignees
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

Comments

@AlexBlack772
Copy link

Before submitting your bug report

Relevant environment info

- OS: Mac os 
- Continue version: 0.8.66
- IDE version: Version: 1.96.2 (Universal)

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

  1. Use hotkey more than 10 times to enable/disable continue (command continue.toggleTabAutocompleteEnabled)

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

INFO Settings Sync: Account status changed from uninitialized to unavailable
log.ts:425  INFO [perf] Render performance baseline is 37ms
log.ts:425  INFO Extension host (LocalProcess pid: 42092) is unresponsive.
log.ts:425  INFO Extension host (LocalProcess pid: 42092) is responsive.
log.ts:425  INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
localProcessExtensionHost.ts:275 Extension Host
localProcessExtensionHost.ts:276 Debugger attached.
log.ts:425  INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:425  INFO Extension host (LocalProcess pid: 42092) is unresponsive.
localProcessExtensionHost.ts:275 Extension Host
localProcessExtensionHost.ts:276 Debugger attached.
log.ts:425  INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:425  INFO Extension host (LocalProcess pid: 42092) is responsive.
log.ts:425  INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
@dosubot dosubot bot added 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 priority:medium Indicates medium priority labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants