Skip to content

🧹 Remove isSessionTypeVisible from ChatInputPart#325697

Merged
benvillalobos merged 3 commits into
mainfrom
bv/automations-debt-reduction2
Jul 13, 2026
Merged

🧹 Remove isSessionTypeVisible from ChatInputPart#325697
benvillalobos merged 3 commits into
mainfrom
bv/automations-debt-reduction2

Conversation

@benvillalobos

Copy link
Copy Markdown
Member

Reducing debt created in #323914

After much refactoring, the following logic can be entirely reverted / deleted.

benvillalobos and others added 2 commits July 13, 2026 13:57
The `_isVisible` override in SessionTypePickerActionItem duplicated the
Extension Host Copilot CLI hide check that isVisibleEditorChatSessionType
already performs (keyed on the same chat.editor.copilotCli.hideExtensionHost
setting). It also introduced an isSessionTypeVisible delegate hook that no
delegate ever implemented.

Restore _isVisible to the pre-#323914 one-liner that defers to the shared
isVisibleEditorChatSessionType, and drop the now-dead isSessionTypeVisible
member from the picker delegate interface. No behavior change: the hide rule
remains centralized in isVisibleEditorChatSessionType.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 53512dbc-d36f-4137-b6fe-739338b4844b
The IAutomationSessionTypeProvider abstraction was registered as a singleton
but never injected or called by anyone. It was intended as the layering seam
for a workbench-side automations UI to reach the Sessions layer, but the
automations dialog lives in vs/sessions and drives its session-type picker
(MobileSessionTypePicker) directly against ISessionsManagementService.
getSessionTypesForFolder, bypassing the bridge entirely.

Delete the interface, its IAutomationSessionTypeChoice type, the
AutomationSessionTypeProvider implementation, and the singleton
registration. No behavior change: the live path was always the sessions
picker.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 53512dbc-d36f-4137-b6fe-739338b4844b
Copilot AI review requested due to automatic review settings July 13, 2026 21:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes obsolete automation-specific session-type filtering and its now-unused provider bridge.

Changes:

  • Removes isSessionTypeVisible from the picker delegate.
  • Uses the shared editor session-type visibility logic.
  • Deletes unused automation session-type services and registration.
Show a summary per file
File Description
automationSessionTypes.ts Removes the obsolete service contract.
sessionTargetPickerActionItem.ts Uses shared visibility filtering exclusively.
chat.ts Removes the delegate visibility callback.
automationSessionTypeProvider.ts Removes the unused Sessions-layer implementation.
automations.contribution.ts Removes obsolete service registration.

Review details

  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Medium

@benvillalobos benvillalobos marked this pull request as ready for review July 13, 2026 21:49
@benvillalobos benvillalobos enabled auto-merge (squash) July 13, 2026 22:01
@benvillalobos benvillalobos merged commit 2efe62e into main Jul 13, 2026
29 checks passed
@benvillalobos benvillalobos deleted the bv/automations-debt-reduction2 branch July 13, 2026 23:21
@vs-code-engineering vs-code-engineering Bot added this to the 1.130.0 milestone Jul 13, 2026
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.

4 participants