Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - The status bar does not show the name of the currently loaded project when using a relative path. #650

Closed
jaronfort opened this issue Sep 23, 2022 · 5 comments

Comments

@jaronfort
Copy link

Environment/version

  • Extension version: latest
  • VSCode version: latest
  • OS version: Windows 11 Pro 10.0.22621 Build 22621 (also experienced on macOS)

Steps to reproduce

  1. Create a new workspace.
  2. Save the workspace as a project.
  3. Open up the projects.json file and change the workspace path of the new project to use ~/Documents/MyProjects/my-project.vscode-workspace (instead of c://Users/Me/Documents/MyProjects/my-project.vscode-workspace.
  4. Open the project using the project manager.
  5. Notice the project is not showing in the status bar with no "Hide/Show 'Project Manager'" open in the right-click menu.
@alefragnani
Copy link
Owner

Hi @jaronfort ,

I'm not sure this is a Windows related issue, but I couldn't reproduce the error on my MacOS.

The ~ shortcut is supported on project paths and it seems to be properly expanded on project detection of the Status Bar, so it is really weird it is not working in your case.

Btw, does the project path is properly displayed (expanded) when you hover the project in the Project Manager - Favorites view? It should display

Project Name
c:/Users/Me.... (expanded path)
Icon Workspace

Hope this helps

@jaronfort
Copy link
Author

jaronfort commented Sep 24, 2022 via email

@alefragnani
Copy link
Owner

Just to let you know, I could reproduce the error on a Windows machine, and neither $home keyword is working.

So, it is definitely something OS specific.

Thanks for reporting

@jaronfort
Copy link
Author

jaronfort commented Sep 26, 2022 via email

@sdak75
Copy link

sdak75 commented Nov 10, 2023

Hi,
I had the same problem on Windows and was able to resolve it by removing the \ at the end of the path.
Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants