Can't create new profile from import and/or template
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Re-verified on a newer build. Same symptom: the profile is never persisted.
### Steps to Reproduce
1. `Ctrl+Shift+P` -> `Preferences: Open Profiles (UI)`.
2. Click **New Profile** (dropdown) -> **Import Profile...** and select a `.code-profile`.
3. Observe the profiles list - no new profile is added.
4. Close the Profiles editor - it prompts to save - nothing is saved.
### Actual
- 19 new folders appear under `%APPDATA%\Code\User\profiles\`, each containing only an empty `globalStorage` folder (no settings.json / keybindings.json / extensions.json).
- `%APPDATA%\Code\User\globalStorage\storage.json` -> `userDataProfiles` still contains **only** the built-in entry `{location: builtin/agents, name: Agents}`. The imported profile is never written.
- `profileAssociations.workspaces` for the current folder remains `__default__profile__`.
- Deleting the orphan folders leaves the profiles folder containing only `builtin`.
### Expected
The imported profile appears in the Profiles list and is written to `userDataProfiles`, with its settings.json / extensions.json under the profile folder.
### Environment
- VS Code 1.137.0 (commit 645f29cc3176500b4b5762ba887cf2a7f0ffdf2c), x64
- Windows 11 (10.0.26200.9445)
Note: in 1.137 there is no `Profiles: Import Profile...` command in the Command Palette; import is only reachable from the New-Profile dropdown / list context menu.
Contributor guide
Assessment
This issue has not been assessed yet.