Skip to content

Remove Copilot extension check and startup wait#430

Merged
rajbos merged 1 commit intomainfrom
copilot/remove-copilot-check
Mar 19, 2026
Merged

Remove Copilot extension check and startup wait#430
rajbos merged 1 commit intomainfrom
copilot/remove-copilot-check

Conversation

Copy link
Contributor

Copilot AI commented Mar 19, 2026

The extension unnecessarily delayed startup (2–5s) when Copilot extensions were installed but not yet active, blocking users who rely solely on OpenCode or other non-Copilot tools.

Changes

  • scheduleInitialUpdate() — replaced the three-branch Copilot detection logic with a single unconditional 100ms startup delay; analysis begins immediately regardless of Copilot extension presence or state
  • Removed recheckCopilotExtensionsAfterDelay() — only served the delayed-start path
  • Removed initialDelayTimeout property and its disposal cleanup — no longer needed
// Before: branched on Copilot extension state, waited up to 5s
private scheduleInitialUpdate(): void {
    const copilotExtension = vscode.extensions.getExtension('GitHub.copilot');
    // ... 3-way branch with 2–5s delay if extensions exist but inactive
}

// After: always starts immediately
private scheduleInitialUpdate(): void {
    this.log('🚀 Starting token usage analysis...');
    setTimeout(async () => { await this.updateTokenStats(); ... }, 100);
}

The informational checkCopilotExtension() log call in the constructor is unchanged.

Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
@rajbos rajbos marked this pull request as ready for review March 19, 2026 12:07
@rajbos rajbos enabled auto-merge March 19, 2026 12:07
@rajbos rajbos merged commit 2aed79e into main Mar 19, 2026
13 checks passed
@rajbos rajbos deleted the copilot/remove-copilot-check branch March 19, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants