Skip to content

Commit 32af6e7

Browse files
authored
graceful commit check (microsoft#187034)
1 parent a38349b commit 32af6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/amdX.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export async function importAMDNodeModule<T>(nodeModuleName: string, pathInsideN
177177

178178
if (isBuilt === undefined) {
179179
const product = globalThis._VSCODE_PRODUCT_JSON as unknown as IProductConfiguration;
180-
isBuilt = Boolean((product ?? (<any>globalThis).vscode.context.configuration()?.product)?.commit);
180+
isBuilt = Boolean((product ?? (<any>globalThis).vscode?.context?.configuration()?.product)?.commit);
181181
}
182182

183183
if (_paths[nodeModuleName]) {

0 commit comments

Comments
 (0)