fix (desktop): fix config.json bug reading from worktree instead of main

Merged
AV
1y ago
+185-28

Description

responding to issue#297
Fixed two bugs in config.json handling:

  1. workspaces.ts:143 - Setup config was reading from worktreePath (the newly created worktree) instead
    of project.mainRepoPath (where the config actually lives)
  2. teardown.ts:43 - Teardown config had the same issue, reading from worktreePath instead of
    mainRepoPath

Both now correctly read from {project-root}/.superset/config.json, which matches where the config
router (config.ts) creates and edits the file.

Related Issues

Type of Change

  • [ x] Bug fix
  • New feature
  • Documentation
  • Refactor
  • Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes

Summary by CodeRabbit

  • Bug Fixes

    • Configuration loading now prioritizes main repository settings over local workspace settings for setup and teardown operations.
  • Chores

    • Updated build system with explicit Bun version pinning and adjusted cache invalidation configuration.
  • Tests

    • Added comprehensive test suite for workspace teardown functionality.
  • Style

    • Improved visual styling for active project state in the project settings sidebar.

✏️ Tip: You can customize this high-level summary in your review settings.