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

Look for directory to load in case a solution is opened #9

Open
iboB opened this issue Feb 1, 2020 · 0 comments
Open

Look for directory to load in case a solution is opened #9

iboB opened this issue Feb 1, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@iboB
Copy link
Owner

iboB commented Feb 1, 2020

Currently the loaded directory in case a solution is opened is the directory of the .sln file. This can be... well... useless if the .sln file is not in the root of the repo, which is a popular pattern. Especially popular for externally configured CMake projects for example.

A smarter way to look for the root needs to be employed:

Use the first match of: (in that order)

  • VSOpenFileFromDirFilters.json in parent directories of the chosen one
  • .git subdirectory in the parent directories
  • Choose a source file from one of the projects and repeat above two steps (will help with out-of source configurations)
  • If all else fails, fall back to the directory of the solution

Some way of manually setting the directory should probably be available?

@iboB iboB added the enhancement New feature or request label Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant