vscode-react-native icon indicating copy to clipboard operation
vscode-react-native copied to clipboard

[Bug] The packager status indicator shows inconsistent state

Open serhergz opened this issue 1 year ago • 5 comments

🐛 What is the bug? How can we reproduce it?

The package indicator changes it state independently of the actual packager state, specifically when the packager is running and one of these 3 actions are performed:

  • A new project is created
  • An existing project is added to the workspace
  • The stop packager command is used, and the user select a project folder not running a packager

In this 3 situations the Packager status indicator reset to the Packager Stopped status, while the packager is still running.

Steps to reproduce:

  1. Create a project
  2. Start the packager for that project
  3. Create a new project without stopping the packager

Other case, to reproduce:

  1. Create 2 projects
  2. Start the packager for the first project
  3. Execute the 'React Native: Stop Packager'
  4. On the quickpick select the second project (the one not running)

Expected behaviour

The expected behaviour is that the Packager indicator actually reflect the packager status, in the given example when creating a project the indicator should not change state since the packager is still running. Ideally the indicator should track the status of each packager considering that each project could be running one instance of it.

Debug output

React Native output channel Image show React Native Packager is still running but packager indicator has reset to the Packager Stopped status Screenshot 2024-05-10 at 08 55 14

Environment

  • React Native Tools extension version: v1.13.0

serhergz avatar May 10 '24 07:05 serhergz

Hey @serhergz , thanks for reaching us. Will fix this issue currently, any update will comment here, thank you!

EzioLi01 avatar May 10 '24 09:05 EzioLi01

Linked in enhancement https://github.com/microsoft/vscode-react-native/issues/2144.

EzioLi01 avatar May 10 '24 09:05 EzioLi01

@serhergz Just want to confirm which OS have you used?

EzioLi01 avatar May 10 '24 10:05 EzioLi01

@serhergz Just want to confirm which OS have you used?

Thanks for the quick reply, This have been observed in MacOS Sonoma 14.4.1

serhergz avatar May 10 '24 10:05 serhergz

@serhergz Just want to confirm which OS have you used?

Thanks for the quick reply, This have been observed in MacOS Sonoma 14.4.1

Got it, will look into this.

EzioLi01 avatar May 10 '24 11:05 EzioLi01