vscode: Enterprise AllowedExtensions on MacOS crashing on changes to allowed list

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.99.1
  • OS Version: Macos 15.4

Steps to Reproduce:

  1. Deploy .mobileconfig with AllowedExtensions defined
  2. Redeploy an updated .mobileconfig with changes to the AllowedExtensions
  3. The extension allowed list will now be empty and the allowed list defaults to block all

When a change is made, VS code is not picking up the changes, but rather dropping the list altogether. The only way to deploy changes is to remove the .mobileconfig completely, and then redeploy.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

Is there anything in the Window log? What if you quit and restart VS Code?

When I update the config, this is what gets written to the logs when the issue happens


[warning] [Window] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings
[error] [Window] TreeError [SettingsTree] Tree element not found: [object Object]: Error: TreeError [SettingsTree] Tree element not found: [object Object]
    at LIs.o (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:414:8339)
    at LIs.rerender (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:414:6800)
    at WJe.rerender (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:414:15667)
    at w0.$c (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1864:55442)
    at w0.Yc (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1864:55257)
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1864:54593
    at Set.forEach (<anonymous>)
    at w0.Wc (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1864:54577)
    at Hse.value (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1864:38284)
    at E.B (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:29:2392)
[warning] [Window] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings

Actually I can reproduce on a much smaller scale as well.

I pushed this config out and it worked

<key>AllowedExtensions</key>
<string>{"microsoft":true,"redhat":true,"github":true,"codeium":true,"ukoloff.win-ca":true,"oracle":true}</string>

I then updated the config and added 2 more extensions like this:

<key>AllowedExtensions</key>
<string>{"microsoft":true,"redhat":true,"github":true,"codeium":true,"ukoloff.win-ca":true,"oracle":true,"golang.go":true,"gitpod":true}</string>

When looking at the settings in VS Code, I see the extension list update briefly with the changes, and then the extensions disasppear so that no extensions are listed in the Allowed list.