Skip to content

fix: ensure refresh settings tree even if context view focused#278537

Open
mortalYoung wants to merge 1 commit intomicrosoft:mainfrom
mortalYoung:fix/settingsTree
Open

fix: ensure refresh settings tree even if context view focused#278537
mortalYoung wants to merge 1 commit intomicrosoft:mainfrom
mortalYoung:fix/settingsTree

Conversation

@mortalYoung
Copy link
Contributor

Description

Remove unnecessarily code to make sure always refresh settings tree.

Changes

I checked the git blame and found these code were committed in d59d014

And I cannot reproduce the issue related in this commit after removing these code.

Related

Fixed #277787

Copilot AI review requested due to automatic review settings November 20, 2025 09:47
@vs-code-engineering
Copy link

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@rzhao271

Matched files:

  • src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts

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

This PR fixes a bug where the settings tree wouldn't refresh when a context view (such as a dropdown or autocomplete widget) had focus. The fix removes unnecessary code that was deferring refresh operations in this scenario.

  • Removes the context view focus check that was blocking settings tree refreshes
  • Removes the unused contextViewFocused() helper method
  • Ensures settings always refresh appropriately while maintaining protection for focused setting controls

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.

[SettingsTree] Tree element not found: [object Object]

3 participants