mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
declare proposed API properties for package.json and link them with actual proposal names
This commit is contained in:
@@ -239,9 +239,10 @@ function apiProposalNamesGenerator() {
|
||||
'',
|
||||
'// THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY.',
|
||||
'',
|
||||
'export const apiProposals = {',
|
||||
'const apiProposals = {',
|
||||
`${proposalNames.map(name => `\t${name}: true`).join(',\n')}`,
|
||||
'};',
|
||||
'export const apiProposalNames = Object.freeze(Object.keys(apiProposals));',
|
||||
'export type ApiProposalName = keyof typeof apiProposals;',
|
||||
'',
|
||||
].join('\n');
|
||||
|
||||
Reference in New Issue
Block a user