Skip to content

Commit 47d8866

Browse files
code-asherAkash Satheesan
authored andcommitted
Restore proposed API patch
Without this it is impossible to enable the proposed API for extensions. To replicate the issue run a build or search for enableProposedApiForAll and set it to false (it is set to true during development) then try running an extension that uses the proposed API like the GitHub pull request extension and look for an error in the browser console.
1 parent 6987dd3 commit 47d8866

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,12 @@ export class BrowserWorkbenchEnvironmentService implements IWorkbenchEnvironment
335335
extensionHostDebugEnvironment.params.port = parseInt(value);
336336
break;
337337
case 'enableProposedApi':
338-
extensionHostDebugEnvironment.extensionEnabledProposedApi = [];
338+
try {
339+
extensionHostDebugEnvironment.extensionEnabledProposedApi = JSON.parse(value);
340+
} catch (error) {
341+
console.error(error);
342+
extensionHostDebugEnvironment.extensionEnabledProposedApi = [];
343+
}
339344
break;
340345
}
341346
}

0 commit comments

Comments
 (0)