Synced extensions do not respect VS Code profiles.
#124
Replies: 1 comment 3 replies
-
|
This also looks source-backed. The extension sync model is not profile-aware enough to preserve the VS Code profile metadata you describe. The serialized The restore side also uses global VS Code commands: workbench.extensions.installExtension
workbench.extensions.enableExtension
workbench.extensions.disableExtensionThose calls do not carry profile/all-profiles metadata in this code. That explains why the all-profiles flag is lost after uninstall/reinstall. The "custom-profile-only extension appears as disabled" behavior also follows from the current scan: extensions present on disk but not active in So I would treat this as a profile-support bug/feature gap. Syncing the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
The synced
extensionsfile shows several undesired interactions with respect to VS Code profilesApply Extension to all Profilesflag is not recorded in the synced dataenabled/disabledflags seem to record the state of the current workspace/profile rather than the state of theDefaultVS Code profile. This is in contrast to otherresourceslikesettingswhich correspond to theDefaultVS Code profile.extensionsfile as disabled extensionsExpected Behavior
The
extensionsresourceshould record the state of extensions of theDefaultVS Code profile, analogous to howsettingsrecords the settings of theDefaultprofile, rather than the VS Code profile applied in the current workspace.Moreover, the
Apply Extension to all Profilesflag must be recorded in this file.Actual Behavior
Apply Extension to all Profilesflags are lost through syncing.enabled/disabledsection when switching VS Code profiles, even though their configuration in theDefaultprofile is untouched. This seems related toDefaultVS Code profile but other custom profiles still show up as disabled extensions. This seems related toReproduction Steps
Apply Extension to all ProfilesflagApply Extension to all Profilesfor some extensionEin the VS Code UIEEis reinstalled but theApply Extension to all Profilesflag is no longer setextensionsrecording the state of the current workspace/profileSync Settings: View differences between actual and saved settingsshows no differences)enabled/disabledsection, even though no actual config changes happenedEDefaultprofile and observe that extensionEdoes not show up as installed extension in the VS Code UISync Settings: View differences between actual and saved settingsEshows up as disabled extension in the generatedextensionsfileVersion
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions