vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Configure AllowedExtensions Group policy is limited to 1024 characters, longer policy is ignored

Open ckrueger1979 opened this issue 9 months ago • 2 comments

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

  • VS Code Version: 1.97.2
  • OS Version: Win11 23H2

Steps to Reproduce:

  1. set HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VSCode\AllowedExtensions to a string longer then 1024 characters
  2. Visual studio code will ignore the policy

@isidorn 1024 is way to short for an allow list, we can't implement that policy :-(

This was the feature introduction: #84756

ckrueger1979 avatar Mar 07 '25 13:03 ckrueger1979

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.98.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

seems to be silently fixed in 1.98.0

ckrueger1979 avatar Mar 07 '25 14:03 ckrueger1979

@ckrueger1979 thanks for filling this. @sandy081 fixed this by making this group policy be a string array, and not a string. Thus extending the limit.

I will go ahead and close this one

isidorn avatar Mar 10 '25 08:03 isidorn