Skip to content

Commit 90e0c5a

Browse files
authored
feat: navigate to the correct settings section when invoked (#236)
1 parent 411f3e5 commit 90e0c5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/extension.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ function registerNotifications({
125125
commands.executeCommand(command, ...args);
126126
});
127127

128-
languageClient.onNotification("sourcery/vscode/showSettings", () => {
129-
commands.executeCommand("workbench.action.openSettings", "sourcery");
128+
languageClient.onNotification("sourcery/vscode/showSettings", (params) => {
129+
const section = params && params.section ? params.section : "sourcery";
130+
commands.executeCommand("workbench.action.openSettings", section);
130131
});
131132

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

0 commit comments

Comments
 (0)