Skip to content

Fix startup logs by registering continue.viewLogs command early#12950

Open
SparshGarg999 wants to merge 1 commit into
continuedev:mainfrom
SparshGarg999:fix/startup-logs-view-logs
Open

Fix startup logs by registering continue.viewLogs command early#12950
SparshGarg999 wants to merge 1 commit into
continuedev:mainfrom
SparshGarg999:fix/startup-logs-view-logs

Conversation

@SparshGarg999

Copy link
Copy Markdown

Description

This PR resolves issue #12946 where clicking the "Show Logs" button during extension startup failures does nothing and throws an error in the console: command 'continue.viewLogs' not found.

The command continue.viewLogs was registered too late (after full extension activation). When activation crashes early, the command is never registered, rendering the troubleshooting option useless.

By registering continue.viewLogs immediately in the main �ctivate entry point in extension.ts, we ensure that the command is available to VS Code even if subsequent activation fails.

Test Plan

  1. Induce an early activation crash (e.g., throwing a dummy error in �ctivateExtension).
  2. Click the "View Logs" (or "Show Logs") button on the warning pop-up.
  3. DevTools console should toggle open successfully instead of throwing a command-not-found error.

@SparshGarg999 SparshGarg999 requested a review from a team as a code owner July 6, 2026 13:17
@SparshGarg999 SparshGarg999 requested review from sestinj and removed request for a team July 6, 2026 13:17
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@SparshGarg999

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant