Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class RooCodeButtonProvider : ExtensionButtonProvider {
MCPButtonClickAction(),
HistoryButtonClickAction(),
MarketplaceButtonClickAction(),
CloudButtonClickAction(),
SettingsButtonClickAction()
)
}
Expand Down Expand Up @@ -161,6 +162,31 @@ class RooCodeButtonProvider : ExtensionButtonProvider {
}
}

/**
* Action that handles clicks on the Cloud button in the UI.
* Executes the corresponding VSCode command when triggered.
*/
class CloudButtonClickAction : AnAction() {
private val logger: Logger = Logger.getInstance(CloudButtonClickAction::class.java)
private val commandId: String = "roo-cline.cloudButtonClicked"

init {
templatePresentation.icon = AllIcons.Javaee.WebService
templatePresentation.text = "Cloud"
templatePresentation.description = "Cloud"
}

/**
* Performs the action when the Cloud button is clicked.
*
* @param e The action event containing context information
*/
override fun actionPerformed(e: AnActionEvent) {
logger.info("Cloud button clicked")
executeCommand(commandId, e.project)
}
}

/**
* Action that handles clicks on the Settings button in the UI.
* Executes the corresponding VSCode command when triggered.
Expand Down