Skip to content

Incorrect warning shown in settings when Code Tidy is installed as a secondary extension #924

@maguirreg

Description

@maguirreg

When using the Code Tidy extension together with the Git Source Control for InterSystems extension, the settings page displays a warning indicating that the current extension configuration is not recommended. However, Code Tidy intentionally registers itself as a secondary extension, which allows Git Source Control to function correctly within the namespace.

Despite the configuration being valid, the warning continues to appear. This misleads users into changing the setting, which then breaks Code Tidy’s intended behaviour.

Expected Behaviour

If Code Tidy is installed and has correctly registered itself as a secondary extension, the settings page should not display the warning.

Actual Behaviour

The warning is always shown, even when the configuration is valid due to Code Tidy being installed, and Git Source Control works as the Source Control extension.

Steps to Reproduce

  1. Install and Configure Git Source Control for InterSystems.
  2. Install and Configure Code Tidy.
  3. Setup the Code Tidy extension by executing do ##class(pkg.isc.codetidy.Utils).SetupExtension()
  4. Open the extension settings for Git Source Control.
  5. Observe that the warning is displayed even though the configuration is correct.
    Impact

Users may mistakenly change a valid configuration, resulting in Code Tidy no longer functioning as designed.

Proposed Fix

Add logic to detect if Git Source Control is installed and registered as a secondary extension alongside Code Tidy, and suppress the warning accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions