Skip to content

Commit

Permalink
default back to sourcery if we dont get the argument defined properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellebore committed Nov 8, 2023
1 parent 2765c5a commit 562d558
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 562d558

Please sign in to comment.