CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

Fix: Prevent git popup when Source Control is disabled (#2138)

Open vksvicky opened this issue 1 month ago • 0 comments

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

  • #2138

Checklist

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

Screenshots

vksvicky avatar Dec 02 '25 10:12 vksvicky