Skip to content

Commit 48507d9

Browse files
authored
fix: patch isProposedAPIEnabled to always be true (#30)
1 parent 48fae57 commit 48507d9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,15 @@ export interface IExtensionHost {
134134
}
135135

136136
export function isProposedApiEnabled(extension: IExtensionDescription, proposal: ApiProposalName): boolean {
137-
if (!extension.enabledApiProposals) {
138-
return false;
139-
}
140-
return extension.enabledApiProposals.includes(proposal);
137+
/**
138+
* The Jupyter extension uses proposed APIs
139+
* but has a version that doesn't enable it correctly.
140+
*
141+
* This patch ensures that we default to enabling
142+
* the proposed API.
143+
* @author coder
144+
*/
145+
return true
141146
}
142147

143148
export function checkProposedApiEnabled(extension: IExtensionDescription, proposal: ApiProposalName): void {

0 commit comments

Comments
 (0)