Skip to content

Handle packager port setting changes in status bar #2627

@ConnorQi01

Description

@ConnorQi01

Summary

When
eact-native.packager.port changes after extension activation, existing Packager instances can still hold the previous cached port.

This issue tracks a scoped runtime handling path for that setting without restoring the old noisy configuration-change popup.

Proposed Changes

  • Listen only for
    eact-native.packager.port configuration changes.
  • Refresh cached packager ports when packagers are stopped.
  • When a packager is already active, keep the running port unchanged and mark the status bar with a warning indicator.
  • Show the pending port in the status bar tooltip using this wording:
    • Running on port 8081.
    • Port setting changed to 9090. It will be reset on next start.

Test Plan

  • Run
    pm run build.
  • Manually start the packager, change
    eact-native.packager.port, and verify the status bar warning and tooltip.

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