Skip to content

Enable breadcrumbs for unsaved (untitled) files#315386

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/enable-breadcrumbs-for-unsaved-files
Draft

Enable breadcrumbs for unsaved (untitled) files#315386
Copilot wants to merge 2 commits intomainfrom
copilot/enable-breadcrumbs-for-unsaved-files

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 8, 2026

Breadcrumbs were silently suppressed for untitled editors because BreadcrumbsControl.update() gated on IFileService.hasProvider(uri) — which is false for the untitled:// scheme. Opening a new file and setting a language mode yielded no breadcrumbs at all, even though outline/symbol data was available.

Changes

  • breadcrumbsControl.ts — Exempt untitled:// URIs from the file-provider guard so they reach the breadcrumbs pipeline:

    // before
    if (!uri || !this._fileService.hasProvider(uri)) {
    // after
    if (!uri || (!this._fileService.hasProvider(uri) && uri.scheme !== Schemas.untitled)) {

    BreadcrumbsModel._initFilePathInfo() already returns an empty path for untitled:// URIs, so no file/folder crumbs appear — only language symbols from the outline.

  • breadcrumbModel.test.ts — Add test asserting an untitled URI produces zero file-path elements.

Copilot AI requested review from Copilot and removed request for Copilot May 8, 2026 22:20
Copilot AI linked an issue May 8, 2026 that may be closed by this pull request
Co-authored-by: dmitrivMS <9581278+dmitrivMS@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot May 8, 2026 22:26
Copilot AI changed the title [WIP] Add support for breadcrumbs in unsaved files Enable breadcrumbs for unsaved (untitled) files May 8, 2026
Copilot AI requested a review from dmitrivMS May 8, 2026 22:27
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.

Enable breadcrumbs for unsaved files

2 participants