From 562d55871e30bb525c978c4804b29beeb5808779 Mon Sep 17 00:00:00 2001 From: Hellebore Date: Wed, 8 Nov 2023 10:07:30 +0000 Subject: [PATCH] default back to sourcery if we dont get the argument defined properly --- src/extension.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index f27915a8..48d266a0 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -126,7 +126,8 @@ function registerNotifications({ }); languageClient.onNotification("sourcery/vscode/showSettings", (params) => { - commands.executeCommand("workbench.action.openSettings", params.section); + const section = params && params.section ? params.section : "sourcery"; + commands.executeCommand("workbench.action.openSettings", section); }); languageClient.onNotification("sourcery/vscode/scanResults", (params) => {