Skip to content

Commit

Permalink
feat: navigate to the correct settings section when invoked (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellebore authored Nov 8, 2023
1 parent 411f3e5 commit 90e0c5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ function registerNotifications({
commands.executeCommand(command, ...args);
});

languageClient.onNotification("sourcery/vscode/showSettings", () => {
commands.executeCommand("workbench.action.openSettings", "sourcery");
languageClient.onNotification("sourcery/vscode/showSettings", (params) => {
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 90e0c5a

Please sign in to comment.