alefragnani / vscode-project-manager

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

[BUG] - Strange popup when opening project manager from sidebar #727

Open dannysteenman opened 5 months ago

dannysteenman commented 5 months ago

It seems that whenever you click the project manager button to load the favorite projects, it will briefly show the save project button for just a couple milliseconds before showing the files.

This happens on a fresh installation of vscode and on my preconfigured vscode setup on my macbook m3.

Environment/version

Steps to reproduce

See the screenshare of a fresh vscode installation with project manager installed:

vscode-project-manager-issue

Edit: In the split second this is the screen that pops up SCR-20240215-iypw

So it thinks briefly that I don't have any favorite projects setup, whilst a second later 2 favorite projects are shown.

alefragnani commented 4 months ago

Hi @dannysteenman ,

That "popup" is what VS Code calls "Welcome View". It is used when your Tree based Views have no meaningful content to display (ie. no nodes).

The problem is, the appearance of that view is controlled by VS Code, not the extension. The extension provides the data (in this case, the list of projects) but prior to the first run to retrieve that data, VS Code already displayed the Welcome View. Even on a fairly small and simple list, the Welcome View is still appears, unfortunately .

I tested a few other extensions that provides Welcome View, like GitLens, Remote Extensions and Copilot, and it seems all suffers from the same issue. At the same time, doing a quick look at VS Code issues, I didn't find any about this subject, so maybe this is a regression that is present in recent releases.

I'll try to ask to the VS Code team if this is of their knowledge, if there is some issue reported about it, or some new approach to avoid this behavior, and if possible, apply to the extension. Otherwise, that welcome view will keep popping up on first access.

Hope this helps

dannysteenman commented 3 weeks ago

Sorry maybe I was not clear or I don't understand what you mean but what I meant was that the project manager shows a pop up with a message: "No projects are saved yet." even though I have saved two projects in my favorites, see the screenshot below 👇

72702

So as you can see in the gif, I open up the project manager extension to show my list of folders and then in a split second you see the popup of that message you see above that I dont have any projects saved yet and after that split second it shows my favorite projects again.

So you can ignore the welcome page. I tried to reproduce this behaviour on a clean install without any custom settings, that's why you see the welcome page in my screenshot.