Skip to content

fix: folder scope in Settings now correctly reads/writes folder-specific settings (fixes PlatformNetwork/bounty-challenge#21930)#30

Closed
echobt wants to merge 1 commit intomainfrom
fix/issue-21930
Closed

fix: folder scope in Settings now correctly reads/writes folder-specific settings (fixes PlatformNetwork/bounty-challenge#21930)#30
echobt wants to merge 1 commit intomainfrom
fix/issue-21930

Conversation

@echobt
Copy link
Copy Markdown
Contributor

@echobt echobt commented Feb 27, 2026

Fix for PlatformNetwork/bounty-challenge#21930: Folder-scoped settings not wired in Settings Dialog

Changes

  • Added setFolderSetting and resetFolderSetting functions to settings panels
  • All 8 settings panels now accept scope and folderPath props
  • When scope is 'folder', settings are read from and written to folder-specific overrides
  • SettingsDialog passes the correct scope and folderPath to all panel components

Files Modified

  • src/components/SettingsDialog.tsx
  • src/components/settings/DebugSettingsPanel.tsx
  • src/components/settings/EditorSettingsPanel.tsx
  • src/components/settings/FilesSettingsPanel.tsx
  • src/components/settings/GitSettingsPanel.tsx
  • src/components/settings/NetworkSettingsPanel.tsx
  • src/components/settings/TerminalSettingsPanel.tsx
  • src/components/settings/WorkbenchSettingsPanel.tsx

…fic settings (fixes PlatformNetwork/bounty-challenge#21930)

When the user selects 'Folder' scope in Settings, all settings panels now
correctly use folder-specific APIs instead of falling through to
user/workspace level:

- All 7 sub-panels (Editor, Files, Terminal, Network, Git, Debug,
  Workbench) updated to accept folderPath prop and check for folder scope
- updateSetting() now calls setFolderSetting() when scope is 'folder'
- hasOverride() now calls hasFolderOverride() when scope is 'folder'
- resetOverride() now calls resetFolderSetting() when scope is 'folder'
- Settings display reads from getEffectiveSettingsForPath() for folder scope
- Inline settings in SettingsDialog (theme, wrapTabs, sortOrder) also
  handle folder scope with proper read/write/reset
- Added folder scope indicator badges (green) to all panels
- Reset buttons show folder-specific text when in folder scope
- SettingsDialog passes selectedFolder() as folderPath to all sub-panels
- wrapTabs override indicator dot correctly reflects folder overrides
@echobt echobt changed the title fix: folder scope in Settings now correctly reads/writes folder-specific settings (fixes #21930) fix: folder scope in Settings now correctly reads/writes folder-specific settings (fixes PlatformNetwork/bounty-challenge#21930) Feb 27, 2026
@echobt
Copy link
Copy Markdown
Contributor Author

echobt commented Feb 27, 2026

Closing: this fix has already been applied directly to the main branch. The branch is based on an older commit and merging it would regress other fixes. The referenced issue is resolved on main.

@echobt echobt closed this Feb 27, 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.

1 participant