Skip to content

Commit 4f14231

Browse files
code-asherZauberNerd
authored andcommitted
Enable proposed API by default (microsoft#12)
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 5ce552f commit 4f14231

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,10 @@ class ProposedApiController {
11401140

11411141
this._productEnabledExtensions = new Map<string, ApiProposalName[]>();
11421142

1143+
/** @coder Always enable the proposed API. */
1144+
this._envEnablesProposedApiForAll = true;
1145+
this._logService.debug('[Extensions]', 'Coder: Enabled All Proposed APIs');
1146+
11431147
// todo@jrieken this is deprecated and will be removed
11441148
// OLD world - extensions that are listed in `extensionAllowedProposedApi` get all proposals enabled
11451149
if (isNonEmptyArray(productService.extensionAllowedProposedApi)) {

0 commit comments

Comments
 (0)