Skip to content

policy.name as a constant variable causes policy file generation to fail #251304

@joshspicer

Description

@joshspicer

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

  • VS Code Version: 1.101.0
  • OS Version: Any

This is not a product bug but related to the build/lib/policy.ts generation script.

I was going to swap this string literal to a constant, but the group policy generation script cannot parse a constant.

$ node build/lib/policies                                                                                                                   
Parse Error: Missing required 'name' property. vs/workbench/contrib/chat/browser/chat.contribution.ts:248

It is handy to be able to reference a policy name in multiple places within the codebase without needing to hardcode the string literal.

Metadata

Metadata

Labels

polishCleanup and polish issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions