Change:
throw new Error(localize('cannot change enablement environment', "Cannot change enablement of {0} extension because it is enabled in environment", extension.manifest.displayName || extension.identifier.id)); } <del> switch (this.getEnablementState(extension)) { </del> <ins> this.throwErrorIfEnablementStateCannotBeChanged(extension, this.getEnablementState(extension), donotCheckDependencies); } private throwErrorIfEnablementStateCannotBeChanged(extension: IExtension, enablementStateOfExtension: EnablementState, donotCheckDependencies?: boolean): void { switch (enablementStateOfExtension) { </ins> case EnablementState.DisabledByEnvironment: throw new Error(localize('cannot change disablement environment', "Cannot change enablement of {0} extension because it is disabled in environment", extension.manifest.displayName || extension.identifier.id)); case EnablementState.DisabledByVirtualWorkspace:

Discussion:
Issue Type: <bBug</bto a remote machine with the ssh extension the jupyter extension on the remote machine (I also have it installed locally) the extension, reload the window, then re-enable Result: Error: The extension has to be uninstalled and reinstalled to get it to load again VS Code version: Code - Insiders 1.69.0-insider (, 2022-06-24T06:32:08.615Z) OS version: WindowsNT x64 10.0. Restricted Mode: No Remote OS version: Linux x64 5.13.0-1021-azure <details<summarySystem Info</summary </details<details<summaryExtensions (10)</summaryExtensionVersion ------ Bookmarks13.3.0 tsl-problem-matcher0.6.2 vscode-language-pack-de1.69. jupyter-keymap1.0.0 remote-containers0.240.0 remote-ssh0.83. remote-wsl0.66.3 jupyter2022.6. jupyter-keymap1.0.0 jupyter-renderers1.0.8 </details<details<summaryA/B Experiments</summary</details<!-- generated by issue reporter --
Hi there, I raised a duplicate issue and was asked if I would try "Insiders" to see if it reproed. I installed Insiders and it did not repro so seems fixed. What I don't understand is whether I should keep Insiders installed, or uninstall my normal VSCode and use it instead. I use VSCode on WSL. There was no explanation of what to do with Insiders. I am going on the assumption that I will uninstall it and wait for this to make it into a mainline VSCode update.
Right and this fix is available in VS Code (stable) now.
I don't think this is actually fixed. Maybe it started working for due to doing a reinstall (switching to Insiders)?

I did a brand new install of Code (first time on this machine) yesterday Version 1.69.1, Date: 2022-07-12 (2 days ago) Installed ssh extension and connected remote Source code did not have any Git change information (no line markers for lines that have changed) recommended disabling built-in 'Git' and re-enabling it Same issue happened when I tried to re-enable the disabled Git extension: "Cannot change enablement of Git Base extension because of its extension kind" Strange workaround: Click 'Enable for Workspace' Then click 'Enable' It appears to be enabled (although the source code still does not show git change that's a different issue)
Can you please provide a gif to get better understanding of what is happening?
Here are the steps in the video: Open remote connection using ssh extension Go to extensions, filter by "Built In" Select Git, and Disable Reload Go to extensions, select Git Try Enabling (fails) Go to Explorer, open a workspace Go to extensions, select Git Try Enabling (fails) Enable for workspace (success) Try Enabling (success) !