Skip to content

Commit

Permalink
navigate to the correct settings section
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellebore committed Nov 7, 2023
1 parent 7e530b3 commit 40d702b
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) => {
console.log(params.section);
commands.executeCommand("workbench.action.openSettings", params.section);
});

languageClient.onNotification("sourcery/vscode/scanResults", (params) => {
Expand Down

0 comments on commit 40d702b

Please sign in to comment.