Skip to content

Fix "Set Background" action to store a file path instead of a file URI - #332875

Merged
TylerLeonhardt merged 2 commits into
mainfrom
copilot/fix-bg-image-setting-file-uri
Aug 27, 2026
Merged

TylerLeonhardt merged 2 commits into
mainfrom
copilot/fix-bg-image-setting-file-uri

Conversation

Copilot AI commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Picking an image via Set Background... wrote a file:// URI into chat.agentSessions.preferredDarkBackgroundImage / preferredLightBackgroundImage instead of a plain file system path, e.g. "file:///Users/roblou/Downloads/Wallpaper_January.png".

Changes

  • SessionsChatBackgroundService.setBackground now writes background.fsPath instead of background.toString() when persisting the selected image to the configuration.
  • Reading the setting already handled both plain paths and file:// URIs (resolveBackgroundImage), so previously-saved settings remain valid — no migration needed.
  • Updated unit tests to assert the fsPath form is written to configuration.

Copilot AI balanced review requested due to automatic review settings August 27, 2026 04:55

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.

Copilot wasn't able to review any files in this pull request.

Copilot AI linked an issue Aug 27, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix background image setting to use fsPath instead of file URI Fix "Set Background" action to store a file path instead of a file URI Aug 27, 2026
Copilot AI requested a review from TylerLeonhardt August 27, 2026 05:00
@TylerLeonhardt
TylerLeonhardt marked this pull request as ready for review August 27, 2026 06:33
@TylerLeonhardt
TylerLeonhardt enabled auto-merge (squash) August 27, 2026 06:33
@TylerLeonhardt
TylerLeonhardt merged commit 68d9c22 into main Aug 27, 2026
37 checks passed
@TylerLeonhardt
TylerLeonhardt deleted the copilot/fix-bg-image-setting-file-uri branch August 27, 2026 07:06
@vs-code-engineering vs-code-engineering Bot added this to the 1.136.0 milestone Aug 27, 2026
@TylerLeonhardt TylerLeonhardt mentioned this pull request Aug 28, 2026
3 tasks done
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Oct 11, 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.

bg image setting uses file URI

5 participants