live-share icon indicating copy to clipboard operation
live-share copied to clipboard

Solution Explorer/Files: A specific folder is not available(Views), if name is changed it becomes available

Open layolayo opened this issue 2 years ago • 4 comments

Describe what happened: VS 2022 on Windows 10 - Live Sharing to Web / Linux VSCode A folder named Views within a project is not showing on Linux/Web Changing the name to xViews - it suddenly becomes available Renaming to Views - it disappears

We have tested using the folder name 'Views' in another project and this is fine...

EDIT - most likely a different BUG: to attempt a fix to the above installing VS Community and trying again on a Windows PC - I am now restricted to only one project within the Solution...?

image

What was your system configuration? Product and Version [VS/VSCode]: 1.74.1 OS Version[macOS/Windows]: Linux Ubuntu 22.04 Live Share Extension Version: 1.0.5788 Target Platform or Language [e.g. Node.js]: C#

Steps to Reproduce / Scenario:

  1. Go to Explorer - View Visual Studio Live Share (Workspace)
  2. Click on - the offending Project in the App
  3. View List of Folders - The Folder 'Views' is not present
  4. Views in present on the Live Sharing Machine
  5. Changing Views to xViews on the Live Sharing Machine
  6. xViews is now available on Linux

Refactoring our code to change all namespaces just give access to the Views folder is not ideal for us

Please attach logs to this issue: You can access them via the Live Share: Export Logs command from the command palette (ctrl + shift + p) and attach them to this issue

Screenshots If applicable, add screenshots to help explain your problem.

errorlog.zip

layolayo avatar Dec 15 '22 14:12 layolayo

We have tested using the folder name 'Views' in another project and this is fine...

What type of project is the one that's affected? (Console, ASP.NET, etc)

If you share the same project but join it from web on Windows, does the same issue occur?

ermau avatar Mar 15 '23 18:03 ermau

Hi - it's a WPF application, we have also noticed that some of the SQL files that are stored in the project also do the same thing - they are present in the original project but are not available in the desktop or web version. This is also true on Windows and Linux

layolayo avatar Mar 15 '23 19:03 layolayo

Is Views in your .gitignore or a exclude setting (https://learn.microsoft.com/en-us/visualstudio/liveshare/reference/security#controlling-file-access-and-visibility) by chance?

ermau avatar Mar 28 '23 20:03 ermau

Interesting, some of the backup folders that have the same structure with a folder called Views is in the .gitignore and there is a folder with that path, though the folder has been getting uploaded to Git... I'll try again now that I have removed this entry

layolayo avatar Mar 28 '23 21:03 layolayo