Skip to content

customizations: allow transient selection of the folder to explore customizations against#298403

Merged
joshspicer merged 2 commits intomainfrom
josh/picker
Mar 2, 2026
Merged

customizations: allow transient selection of the folder to explore customizations against#298403
joshspicer merged 2 commits intomainfrom
josh/picker

Conversation

@joshspicer
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings February 28, 2026 03:28
Copy link
Copy Markdown
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

Adds a transient “project root” override for AI Customizations (primarily for Sessions) so users can temporarily browse/manage customization artifacts against a different folder, with UI affordances to pick/reset that folder.

Changes:

  • Extend IAICustomizationWorkspaceService with a transient project root override API (hasOverrideProjectRoot, setOverrideProjectRoot, clearOverrideProjectRoot).
  • Add a Sessions-only folder picker footer to the AI Customization Management Editor sidebar, and wire it to the override API.
  • Update Sessions prompt discovery to react to activeProjectRoot changes (including overrides) when determining “workspace folders”.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.ts Adds override-root API to the shared workspace service interface.
src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css Styles a Sessions-only sidebar footer for browsing/resetting the folder root.
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.ts Implements the new interface members in core (no-op override).
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.ts Adds folder picker UI + wiring; clears override on open/close.
src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.ts Adds item hover tooltip showing name + path.
src/vs/sessions/contrib/chat/browser/promptsService.ts Switches Sessions prompt locator to track changes via activeProjectRoot.
src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.ts Implements transient override root in Sessions via an observable override.

Comment thread src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.ts Outdated
- Fix no-op setOverrideProjectRoot to accept URI parameter
- Fix JSDoc/comments to be environment-agnostic (session or workspace)
- Account for folder picker footer height in sidebar layout
- Use ILabelService for URI tooltip instead of fsPath
@joshspicer joshspicer merged commit b753be8 into main Mar 2, 2026
20 checks passed
@joshspicer joshspicer deleted the josh/picker branch March 2, 2026 04:24
DonJayamanne pushed a commit that referenced this pull request Mar 2, 2026
…stomizations against (#298403)

* customizations: allow transient selection of the folder to explore customizations against

* address PR review comments

- Fix no-op setOverrideProjectRoot to accept URI parameter
- Fix JSDoc/comments to be environment-agnostic (session or workspace)
- Account for folder picker footer height in sidebar layout
- Use ILabelService for URI tooltip instead of fsPath
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Apr 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants