realmazharhussain / nautilus-code

Extension for Nautilus (GNOME Files) which adds right-click menu items to open current folder in code editors e.g. VSCode, GNOME Builder
79 stars 8 forks source link

"Open in VSCode" from a folder's context menu, opens the parent folder #26

Closed harmsk closed 1 year ago

harmsk commented 1 year ago

What happened?

I use this extension on all my computers, and all except one it works as expected. I cannot figure out why it's not working correctly on this one computer.

If I right-click on a folder in nautilus, it will open the folder's parent folder in VS Code, not the folder itself.

Expected behavior

The folder I selected to "Open in VSCode" would open in VS Code.

To Reproduce

  1. Clone nautilus-code repository.
  2. Follow the installations instructions in the README.md
  3. Right click on any folder in nautilus and select "Open in VSCode"

Detailed Explaination (Optional)

I am happy to troubleshoot this issue. But I don't know how to figure out what's going on. Is there a log I can look at?

Extension Version

f09f51e041d82149cc2c3b582435977965a27ece

Source

Source Code

Environment

realmazharhussain commented 1 year ago

Sorry for being late and thank you for your patience! I was busy with my final year project.

I can reproduce this issue after upgrading to Nautilus 44 (44.1). Can you confirm that the computers on which you don't experience this issue are on Nautilus 43 or earlier?

curable-online commented 1 year ago

I can open folders successfully in VSCodium .

realmazharhussain commented 1 year ago

@abraham-sah You are probably opening folders in VSCodium by using the three dots menu which works fine. The problem is with right-clicking to open a folder.

realmazharhussain commented 1 year ago

I have fixed the problem and this issue will be automatically closed when I push the changes. Feel free to re-open the issue if the problem isn't fixed for you.

curable-online commented 1 year ago

@realmazharhussain Sorry but no. I was opening through right clicking on folders and then clicking on Open in VSCodium from context menu in Nautilus.

If I was opening folders from inside VSCodium, then it wasn't related to this issue at all.

realmazharhussain commented 1 year ago

That's odd. Maybe some change in 44.2 point release fixed the behavior. Or maybe Arch Linux has some patch that fixed it.

On my system (Manjaro), with Nautilus 44.1, nautilus-admin extension is also having the same issue.

Regardless, this extension should now work on all versions without this problem.

curable-online commented 1 year ago

@realmazharhussain probably related to 44.2 or I don't know otherwise.

Since I don't have any problem with nautilus-admin neither.

harmsk commented 1 year ago

Sorry for being late and thank you for your patience! I was busy with my final year project.

I can reproduce this issue after upgrading to Nautilus 44 (44.1). Can you confirm that the computers on which you don't experience this issue are on Nautilus 43 or earlier?

Yes! I can confirm the other computers are using Nautilus 43 and the computer with this issue is using Nautilus 44.