customizations: allow transient selection of the folder to explore customizations against#298403
Merged
joshspicer merged 2 commits intomainfrom Mar 2, 2026
Merged
customizations: allow transient selection of the folder to explore customizations against#298403joshspicer merged 2 commits intomainfrom
joshspicer merged 2 commits intomainfrom
Conversation
…stomizations against
Contributor
There was a problem hiding this comment.
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
IAICustomizationWorkspaceServicewith 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
activeProjectRootchanges (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. |
- 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
alexdima
approved these changes
Feb 28, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.