Skip to content

Conversation

@vksvicky
Copy link

@vksvicky vksvicky commented Dec 2, 2025

Fixed issue where CodeEdit would show "The 'git' command requires the command line developer tools. Would you like to install the tools now?" popup on every app launch, even when Source Control was completely disabled in Settings.

Description

  • WorkspaceView.swift was unconditionally calling git operations (refreshRemotes and refreshStashEntries) on every workspace launch
  • These git commands triggered macOS to show the Command Line Developer Tools installation popup if git wasn't installed
  • The operations ran regardless of the sourceControlIsEnabled setting

Result:

  • Users who disable Source Control no longer see the git tools popup
  • Git operations still work normally when Source Control is enabled
  • Popup behavior now respects user preferences as expected

Related Issues

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

)

Fixed issue where CodeEdit would show "The 'git' command requires the
command line developer tools. Would you like to install the tools now?"
popup on every app launch, even when Source Control was completely
disabled in Settings.

Issue Analysis:
- WorkspaceView.swift was unconditionally calling git operations
  (refreshRemotes and refreshStashEntries) on every workspace launch
- These git commands triggered macOS to show the Command Line Developer
  Tools installation popup if git wasn't installed
- The operations ran regardless of the sourceControlIsEnabled setting

Solution:
- Added guard statement to check sourceControlIsEnabled before running
  git operations in the .task block
- Now git commands only execute when Source Control is enabled in Settings
- Also updated onChange syntax to modern two-parameter form

Result:
- Users who disable Source Control no longer see the git tools popup
- Git operations still work normally when Source Control is enabled
- Popup behavior now respects user preferences as expected

Fixes CodeEditApp#2138
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