fernandoescolar / vscode-solution-explorer

This is a Visual Studio Code extension that provides a (.sln) Visual Studio Solution explorer panel..
MIT License
348 stars 73 forks source link

.vcxproj - relative parent directory is ignored in ClCompile Include entry #279

Open SoapyMan opened 1 year ago

SoapyMan commented 1 year ago

Describe the bug If file is somewhere in parent folders relative to solution, parent folders will be ignored.

To Reproduce Steps to reproduce the behavior:

  1. Have source files in root
  2. Create solution and vcxproj using VS2022 in root\project_solution, add source files from the root to project, Save.
  3. Check that vcxproj file's ClCompile Include entry has ..\ in the beginning of path
  4. Open solution in VS Code using this plugin
  5. Double clicking on file in project won't open it
  6. Also mouse over on file shows full path including project_solution when it should not

Expected behavior File path is correctly displayed and can be opened in VSCode

Environment

Fantastic extension so far, been using it for .NET Core and decided to try it out for Premake-generated C++ projects for convinience sake, as there's lack of proper vcproj filters in VSCode