Skip to content

fix: hide progress bar in Code Editor for empty projects#1743

Merged
willeastcott merged 2 commits intomainfrom
fix/code-editor-progress-bar-empty-project
Feb 12, 2026
Merged

fix: hide progress bar in Code Editor for empty projects#1743
willeastcott merged 2 commits intomainfrom
fix/code-editor-progress-bar-empty-project

Conversation

@willeastcott
Copy link
Contributor

@willeastcott willeastcott commented Feb 12, 2026

Summary

  • When a project has no scripts/files/folders, the Code Editor's progress bar in the files panel stays visible indefinitely
  • The assets:load:progress event was never emitted in the empty-assets path, so the progress bar's hidden property was never set to rue
  • Emit assets:load:progress with a value of 1 (complete) before assets:load so the bar hides itself

Test Plan

  • Open the Code Editor for a project with no scripts/files/folders
  • Verify the progress bar disappears after loading completes
  • Open the Code Editor for a project with scripts and verify normal loading behavior is unaffected

When a project has no scripts/files/folders, the assets:load:progress event was never emitted, leaving the progress bar visible indefinitely. Emit the event with a value of 1 (complete) before assets:load in the empty-assets path so the progress bar hides itself.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link
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

Fixes the Code Editor files panel loading progress bar getting stuck for empty projects by ensuring a completion progress event is emitted even when there are zero assets to load.

Changes:

  • Emit assets:load:progress with value 1 in the empty-assets path so the files panel progress bar hides correctly.
  • Preserve existing assets:load + status:clear behavior for the empty-assets path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@willeastcott willeastcott merged commit a42a856 into main Feb 12, 2026
3 checks passed
@willeastcott willeastcott deleted the fix/code-editor-progress-bar-empty-project branch February 12, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: code editor bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants