Skip to content

show logs by default#298916

Merged
sandy081 merged 1 commit intomainfrom
sandy081/quintessential-jellyfish
Mar 3, 2026
Merged

show logs by default#298916
sandy081 merged 1 commit intomainfrom
sandy081/quintessential-jellyfish

Conversation

@sandy081
Copy link
Member

@sandy081 sandy081 commented Mar 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 3, 2026 09:42
@sandy081 sandy081 enabled auto-merge (squash) March 3, 2026 09:43
@sandy081 sandy081 self-assigned this Mar 3, 2026
@vs-code-engineering vs-code-engineering bot added this to the March 2026 milestone Mar 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Sessions window logs contribution to make the Output/Logs view available without requiring an explicit “Show Logs” command/context-key gate.

Changes:

  • Removes the sessionsShowLogs context key and the when condition that previously gated visibility of the logs/output view.
  • Deletes the “Sessions: Show Logs” command that set the context key and opened the Output view.

Comment on lines 8 to 28
@@ -32,7 +26,6 @@ class RegisterLogsViewContainerContribution implements IWorkbenchContribution {
constructor(
@IContextKeyService contextKeyService: IContextKeyService,
) {
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IContextKeyService is no longer used (the context key gating was removed), but the constructor still injects it. With noUnusedParameters enabled, this will cause a compile error. Remove the @IContextKeyService contextKeyService parameter (and the import) or actually use it.

Copilot uses AI. Check for mistakes.
Comment on lines 59 to 63
ctorDescriptor: new SyncDescriptor(OutputViewPane),
canToggleVisibility: true,
canMoveView: false,
when: CONTEXT_SESSIONS_SHOW_LOGS,
windowVisibility: WindowVisibility.Sessions,
}], logsViewContainer);
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline comment just above this view registration says it is registered “with a when context”, but the when condition was removed in this change. Please update/remove that comment so it matches the current behavior.

Copilot uses AI. Check for mistakes.
@sandy081 sandy081 merged commit d31d031 into main Mar 3, 2026
24 checks passed
@sandy081 sandy081 deleted the sandy081/quintessential-jellyfish branch March 3, 2026 10:16
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.

3 participants