Skip to content

fix(breadcrumbs): show info when no symbols to copy#318326

Open
SpencerJung wants to merge 1 commit into
microsoft:mainfrom
SpencerJung:fix/286240-copy-breadcrumb-path-noop
Open

fix(breadcrumbs): show info when no symbols to copy#318326
SpencerJung wants to merge 1 commit into
microsoft:mainfrom
SpencerJung:fix/286240-copy-breadcrumb-path-noop

Conversation

@SpencerJung
Copy link
Copy Markdown

Related Issue

Closes #286240

Summary

The 'Copy Breadcrumbs Path' command silently did nothing when there were no breadcrumb symbols to copy (e.g. when not focused on a symbol or in files without symbol support). This was confusing because users couldn't tell if the command worked or not.

Changes

  • Show an info notification when there are no breadcrumb symbols to copy

Verification Evidence

  • npm run compile-check-ts-native: PASSED (no TypeScript errors)

Checklist

  • Base branch is main
  • No unauthorized version bump
  • All feasible verification checks attempted
  • No unintended schema or lockfile changes

The 'Copy Breadcrumbs Path' command silently did nothing when there
were no breadcrumb symbols to copy (e.g. when not focused on a symbol
or in files without symbol support). This was confusing because users
couldn't tell if the command worked or not.

- Show an info notification when there are no breadcrumb symbols to copy

Fixes microsoft#286240
Copilot AI review requested due to automatic review settings May 26, 2026 09:58
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

Note

Copilot was unable to run its full agentic suite in this review.

Adds a user-facing notification when the “Copy Breadcrumb Path” action has nothing to copy.

Changes:

  • Injects INotificationService into the CopyBreadcrumbPath action handler.
  • Shows an info notification when no breadcrumb labels/symbols are available to copy.

Comment on lines 996 to 999
if (labels.length === 0) {
notificationService.info(localize('cmd.copyPath.noSymbols', "No breadcrumb symbols to copy."));
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy Breadcrumb Path doesn't do anything when you're not focused on a symbol

3 participants