check existence of engine property (#229393)

This commit is contained in:
Sandeep Somavarapu
2024-09-23 17:50:53 +02:00
committed by GitHub
parent 4746e94c81
commit a322a93709

View File

@@ -1361,7 +1361,7 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
const invalidExtensions = this.local.filter(e => e.enablementState === EnablementState.DisabledByInvalidExtension && !e.isWorkspaceScoped);
if (invalidExtensions.length) {
if (invalidExtensions.some(e => e.local &&
if (invalidExtensions.some(e => e.local && e.local.manifest.engines &&
(!isEngineValid(e.local.manifest.engines.vscode, this.productService.version, this.productService.date) || areApiProposalsCompatible([...e.local.manifest.enabledApiProposals ?? []]))
)) {
return {