Skip to content

Agents - show label of the running action + progress icon#315200

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/raspy-reindeer
May 8, 2026
Merged

Agents - show label of the running action + progress icon#315200
lszomoru merged 1 commit intomainfrom
lszomoru/raspy-reindeer

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented May 8, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 8, 2026 07:33
@lszomoru lszomoru enabled auto-merge (squash) May 8, 2026 07:33
@lszomoru lszomoru self-assigned this May 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Agents window “Changes” view toolbar to better reflect when git operations are running by showing a progress/loading icon and the label of the currently running action.

Changes:

  • Add observable-driven button labels (customLabelObs) and expose onWillRun/onDidRun from WorkbenchButtonBar.
  • Track the last-run action label in the Changes view and display it with a loading icon while a git operation is in progress.
  • Add CSS tweaks to align the loading icon and text in the primary action button.
Show a summary per file
File Description
src/vs/sessions/contrib/changes/browser/media/changesView.css Styles for the primary action button layout when an icon is embedded in the label.
src/vs/sessions/contrib/changes/browser/changesView.ts Tracks the running action label and switches commit/sync actions to a loading-label presentation during git operations.
src/vs/platform/actions/browser/buttonbar.ts Adds observable label support and exposes action runner lifecycle events for consumers like the Changes view.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 4

Comment on lines +373 to +376

.codicon {
margin: 0;
}
Comment on lines +135 to +140
const config = configProvider(action, i);
const showLabel = config?.showLabel ?? true;
const showIcon = config?.showIcon;
const customClass = config?.customClass;
const customLabel = config?.customLabel;
const customLabelObs = config?.customLabelObs;
Comment on lines +181 to +186
if (customLabelObs) {
this._updateStore.add(autorun(reader => {
const v = customLabelObs.read(reader);
applyLabel(v ?? customLabel ?? action.label);
}));
}
Comment on lines +182 to +185
// Set the running label override
reader.store.add(buttonBar.onWillRun(e => runningLabelObs.set(e.action.label, undefined)));

reader.store.add(buttonBar);
@lszomoru lszomoru merged commit d610456 into main May 8, 2026
30 checks passed
@lszomoru lszomoru deleted the lszomoru/raspy-reindeer branch May 8, 2026 07:50
@vs-code-engineering vs-code-engineering Bot added this to the 1.120.0 milestone May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants