Repository navigation
Fix save locations for untitled custom editors in virtual workspaces - #343326
Arham Begani (Arham-Begani) wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Note
This error may be related to your runner configuration. You can now configure runners for Copilot code review separately from Copilot cloud agent by creating a copilot-code-review.yml file with your setup steps. Read the docs for details.
@microsoft-github-policy-service agree |
|
Matt Bierner (@mjbvz), the focused fix for #141801 is ready for review at The CLA and dependency checks pass. The linked before/after runs in the description reproduce both save-path failures, then pass all 22 Chromium tests on Linux and Windows with the fix. Client type checking, changed-file lint and hygiene also pass. Those fork results are separate from the pending upstream checks. This status update was prepared with AI assistance. |
Fixes #141801.
An extension can open a new custom document with a relative URI such as
untitled:Untitled-1.custom. In a virtual workspace, Save converts its scheme but leaves the authority empty and the path relative. Save As passes the untitled URI directly to the dialog. Neither uses the workspace's default save directory.This resolves relative untitled paths against
IFileDialogService.defaultFilePath()before opening either save dialog, following the existing notebook save-path approach. Explicit absolute paths and authorities retain their existing behavior.Validation
13d3bd453cfcb803650fa2a5cb18ca5c47f534a2: both new save-location tests fail because the suggested URI has the wrong authority/path; all 14 existing tests pass. Baseline run.72405876.AI assistance was used for the investigation, implementation, and tests.
To run the focused suite after setting up the repository and Chromium: