feat: add tooltip text to activity indicator progress

Adds "Roo is working..." tooltip text to the progress indicator on the
sidebar icon. This provides accessible context when hovering over the
progress indicator.

Also adds a test to verify the tooltip text is included in the
progress options.
This commit is contained in:
Roo Code 2026-01-12 08:47:43 +00:00
parent 55d8cd30e7
commit 6ab93f08be
2 changed files with 12 additions and 0 deletions

View file

@ -32,6 +32,7 @@ export class ActivityIndicator {
vscode.window.withProgress(
{
location: { viewId: ActivityIndicator.VIEW_ID },
title: "Roo is working...",
},
() => {
return new Promise<void>((resolve) => {

View file

@ -36,6 +36,17 @@ describe("ActivityIndicator", () => {
)
})
it("should include tooltip text in progress options", () => {
indicator.show()
expect(mockWithProgress).toHaveBeenCalledWith(
expect.objectContaining({
title: "Roo is working...",
}),
expect.any(Function),
)
})
it("should only call withProgress once when shown multiple times", () => {
indicator.show()
indicator.show()