alefragnani / vscode-project-manager

Project Manager Extension for Visual Studio Code
GNU General Public License v3.0
1.89k stars 225 forks source link

[BUG] - When close the favourites menu, it can't be restored #656

Closed vieiraes closed 1 year ago

vieiraes commented 1 year ago

Environment/version

Steps to reproduce

alefragnani commented 1 year ago

Hi @vieiraes ,

Please, could you provide more details?

Thank you

nathanstone commented 1 year ago

@alefragnani, I'm also experiencing an issue similar to @vieiraes where I'm missing all menus besides favorites (Git, Any, etc). I do not have steps to reproduce unfortunately, but attached is a screenshot of the project manager interface showing the missing options.

Environment/version

any

alefragnani commented 1 year ago

Hi @nathanstone ,

I'm not sure why Views / Favorites is disabled, since this menu is controlled by VS Code itself. In fact, I never noticed such behavior on any of my extensions.

The Git, Any and other menus/panels are available only if you defined the equivalent projectManager.XXX.baseFolders setting, and some project is located. If you defined such settings, I suggest you to reset the views location, using the View: Reset View Locations command, as it would restore the panels to the Project Manager Side Bar.

Hope this helps

nathanstone commented 1 year ago

Hi @alefragnani,

Thanks for getting back to me, this helped me figure it out. It looks like the baseFolders setting does not appreciate a ~ in the paths listed. For example, here was my previous config:

"projectManager.any.baseFolders": [
  "~/Sites"
]

However, as soon as I updated it to the following the Any and Git options reappeared:

"projectManager.any.baseFolders": [
  "/Users/whatever/Sites"
]

This is strange because everything was working until recently, and my settings had always been the former. Also, after I changed the setting to the full path, I could change it back to the former and the options would still be available. I was able to replicate the issue by completely deleting the setting, then re-adding it using the ~ path shortcut. The options failed to appear again until I change the setting back to the full path.

alefragnani commented 1 year ago

Hi @nathanstone ,

That's weird. I use the same ~ approach, and has no issue. And the extension itself hasn't received any update since September.

Maybe something OS related? Could you take a look if some error appears in the Console, using Developer: Toggle Developer Tools? If yes, please, open a new issue with the details.

Based on this report, I'm thinking of displaying the related panel, even if no project is located, so the user will be sure the extension searched for projects

Thank you

alefragnani commented 1 year ago

I'm closing this issue because no new comments (from the original post) has been added since my first question. Feel free to reopen/comment if the error still occurs.

Thanks for your understanding

kantesilvestrsEvidentStudio commented 2 months ago

I'm having exactly the same issue and I haven't done any settings changes to Project Manager extension. Only time the Git tab is available is when I disable and re-enable the extension, and it disappears again after opening project in a new window.