mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-06 14:24:04 -05:00
check existence of engine property (#229393)
This commit is contained in:
committed by
GitHub
parent
4746e94c81
commit
a322a93709
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user