pulsar-edit / pulsar

A Community-led Hyper-Hackable Text Editor
https://pulsar-edit.dev
Other
3.22k stars 135 forks source link

"Show in Explorer" from right clicked file explorer context menu, open Explorer on background #1088

Open LAGENCECREE opened 1 week ago

LAGENCECREE commented 1 week ago

Thanks in advance for your bug report!

What happened?

"Show in Explorer" from right clicked file explorer context menu, open Explorer on the background of pulsar (the system explorer window dont receive the focus or at least do not open over the pulsar window)

Pulsar version

1.118

Which OS does this happen on?

🪟 Windows

OS details

11

Which CPU architecture are you running this on?

None

What steps are needed to reproduce this?

On the file explorer panel, Right-click a Folder Click on "Show in explorer"

Additional Information:

I observed this bug too in the past , on windows 10 with atom editor

confused-Techie commented 1 week ago

Thanks a ton for reporting this issue!

Looking into this, the way we currently open the file explorer occurs here.

Which essentially boils down to:

const shell = require('electron').shell;
shell.showItemInFolder(filePath);

Looking into it I can find some reports of the same behavior, such as here.

Which suggests that a solution would look like:

const shell = require('electron').remote.shell;
shell.showItemInFolder(filePath);

Although, I haven't done the testing or research to see if we would be able to do this.

LAGENCECREE commented 1 week ago

thanks to you ! i guess i have to compile my own pulsar to test that, i will try asap if i can (not sure) or wait to be fixed by core devs in a future release 🙏