Skip to content

Commit f12d59d

Browse files
committed
Enable proposed API by default
Turns out we used to already do this and if you passed the flag you would actually *disable* the global enable setting. This is because we were defaulting to an empty array which means to enable it globally. Fixes coder/code-server#4397 Fixes coder/code-server#4480
1 parent d62e8db commit f12d59d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/workbench/services/extensions/common/abstractExtensionService.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,9 @@ class ProposedApiController {
11321132
(_environmentService.isExtensionDevelopment && productService.quality !== 'stable') || // do not allow proposed API against stable builds when developing an extension
11331133
(this.enableProposedApiFor.length === 0 && Array.isArray(_environmentService.extensionEnabledProposedApi)); // always allow proposed API if --enable-proposed-api is provided without extension ID
11341134

1135+
// NOTE@coder: Always enable the proposed API.
1136+
this.enableProposedApiForAll = true;
1137+
11351138
this.productAllowProposedApi = new Set<string>();
11361139
if (isNonEmptyArray(productService.extensionAllowedProposedApi)) {
11371140
productService.extensionAllowedProposedApi.forEach((id) => this.productAllowProposedApi.add(ExtensionIdentifier.toKey(id)));

0 commit comments

Comments
 (0)