Skip to content

Commit a38349b

Browse files
authored
also use vscode.context.config... for sneaky access to product info (microsoft#187026)
1 parent d71be02 commit a38349b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/amdX.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as platform from 'vs/base/common/platform';
99
import { IProductConfiguration } from 'vs/base/common/product';
1010
import { URI } from 'vs/base/common/uri';
1111

12+
1213
class DefineCall {
1314
constructor(
1415
public readonly id: string | null | undefined,
@@ -176,7 +177,7 @@ export async function importAMDNodeModule<T>(nodeModuleName: string, pathInsideN
176177

177178
if (isBuilt === undefined) {
178179
const product = globalThis._VSCODE_PRODUCT_JSON as unknown as IProductConfiguration;
179-
isBuilt = !!product?.commit;
180+
isBuilt = Boolean((product ?? (<any>globalThis).vscode.context.configuration()?.product)?.commit);
180181
}
181182

182183
if (_paths[nodeModuleName]) {

0 commit comments

Comments
 (0)