Skip to content

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

@AlexBlack772

Description

@AlexBlack772

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

Metadata

Metadata

Assignees

Labels

area:autocompleteRelates to the auto complete featureide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behaviorneeds-triageos:macHappening specifically on Macpriority:mediumIndicates medium priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions