From 0bef70e27a8fe1fb32db6f17bf71f2c03432bf2d Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 19 Oct 2023 09:39:52 -0700 Subject: [PATCH] Make sure codeactions contribution is an array (#196005) Fixes #196000 --- .../contrib/codeActions/browser/codeActionsContribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.ts b/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.ts index 8adbf6243a2..70ca709c5be 100644 --- a/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.ts +++ b/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.ts @@ -81,7 +81,7 @@ export class CodeActionsContribution extends Disposable implements IWorkbenchCon super(); codeActionsExtensionPoint.setHandler(extensionPoints => { - this._contributedCodeActions = extensionPoints.flatMap(x => x.value); + this._contributedCodeActions = extensionPoints.flatMap(x => x.value).filter(x => Array.isArray(x.actions)); this.updateConfigurationSchema(this._contributedCodeActions); this._onDidChangeContributions.fire(); });