|
|
@@ -2,6 +2,7 @@ import * as vscode from "vscode"
|
|
|
import delay from "delay"
|
|
|
|
|
|
import type { CommandId } from "@roo-code/types"
|
|
|
+import { TelemetryService } from "@roo-code/telemetry"
|
|
|
|
|
|
import { getCommand } from "../utils/commands"
|
|
|
import { ClineProvider } from "../core/webview/ClineProvider"
|
|
|
@@ -79,6 +80,8 @@ const getCommandsMap = ({ context, outputChannel }: RegisterCommandOptions): Rec
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ TelemetryService.instance.captureTitleButtonClicked("account")
|
|
|
+
|
|
|
visibleProvider.postMessageToWebview({ type: "action", action: "accountButtonClicked" })
|
|
|
},
|
|
|
plusButtonClicked: async () => {
|
|
|
@@ -88,6 +91,8 @@ const getCommandsMap = ({ context, outputChannel }: RegisterCommandOptions): Rec
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ TelemetryService.instance.captureTitleButtonClicked("plus")
|
|
|
+
|
|
|
await visibleProvider.removeClineFromStack()
|
|
|
await visibleProvider.postStateToWebview()
|
|
|
await visibleProvider.postMessageToWebview({ type: "action", action: "chatButtonClicked" })
|
|
|
@@ -99,7 +104,7 @@ const getCommandsMap = ({ context, outputChannel }: RegisterCommandOptions): Rec
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- // TelemetryService.instance.captureTitleButtonClicked("mcp")
|
|
|
+ TelemetryService.instance.captureTitleButtonClicked("mcp")
|
|
|
|
|
|
visibleProvider.postMessageToWebview({ type: "action", action: "mcpButtonClicked" })
|
|
|
},
|
|
|
@@ -110,9 +115,13 @@ const getCommandsMap = ({ context, outputChannel }: RegisterCommandOptions): Rec
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ TelemetryService.instance.captureTitleButtonClicked("prompts")
|
|
|
+
|
|
|
visibleProvider.postMessageToWebview({ type: "action", action: "promptsButtonClicked" })
|
|
|
},
|
|
|
popoutButtonClicked: () => {
|
|
|
+ TelemetryService.instance.captureTitleButtonClicked("popout")
|
|
|
+
|
|
|
return openClineInNewTab({ context, outputChannel })
|
|
|
},
|
|
|
openInNewTab: () => openClineInNewTab({ context, outputChannel }),
|
|
|
@@ -123,6 +132,8 @@ const getCommandsMap = ({ context, outputChannel }: RegisterCommandOptions): Rec
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ TelemetryService.instance.captureTitleButtonClicked("settings")
|
|
|
+
|
|
|
visibleProvider.postMessageToWebview({ type: "action", action: "settingsButtonClicked" })
|
|
|
// Also explicitly post the visibility message to trigger scroll reliably
|
|
|
visibleProvider.postMessageToWebview({ type: "action", action: "didBecomeVisible" })
|
|
|
@@ -134,6 +145,8 @@ const getCommandsMap = ({ context, outputChannel }: RegisterCommandOptions): Rec
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ TelemetryService.instance.captureTitleButtonClicked("history")
|
|
|
+
|
|
|
visibleProvider.postMessageToWebview({ type: "action", action: "historyButtonClicked" })
|
|
|
},
|
|
|
// kilocode_change begin
|