Skip to content

Commit dffe228

Browse files
SLLS-338 rename toolCalled notification to be more specific
1 parent 4df0934 commit dffe228

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/org/sonarsource/sonarlint/ls/SonarLintExtendedLanguageServer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ public String getId() {
387387
@JsonNotification("sonarlint/helpAndFeedbackLinkClicked")
388388
CompletableFuture<Void> helpAndFeedbackLinkClicked(HelpAndFeedbackLinkClickedNotificationParams params);
389389

390-
record ToolCalledParams(String toolName, boolean success) {
390+
record LMToolCalledParams(String toolName, boolean success) {
391391
}
392392

393-
@JsonNotification("sonarlint/toolCalled")
394-
void toolCalled(ToolCalledParams params);
393+
@JsonNotification("sonarlint/lmToolCalled")
394+
void lmToolCalled(LMToolCalledParams params);
395395

396396
class ScanFolderForHotspotsParams {
397397
private final String folderUri;

src/main/java/org/sonarsource/sonarlint/ls/SonarLintLanguageServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ public CompletableFuture<Void> helpAndFeedbackLinkClicked(HelpAndFeedbackLinkCli
737737
}
738738

739739
@Override
740-
public void toolCalled(ToolCalledParams params) {
740+
public void lmToolCalled(LMToolCalledParams params) {
741741
telemetry.toolCalled(params.toolName(), params.success());
742742
}
743743

0 commit comments

Comments
 (0)