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

file-local variable for solution path? #483

Open
unhammer opened this issue May 27, 2019 · 1 comment
Open

file-local variable for solution path? #483

unhammer opened this issue May 27, 2019 · 1 comment

Comments

@unhammer
Copy link
Contributor

I work on a project that happens to have two .sln files in the same dir as the .cs file, so omnisharp keeps asking me which one I want. Could we please have something like

(defcustom omnisharp-preferred-solution-path nil
  "Path to preferred solution file in case of ambiguity.
If this is set to the path of a soluton file, prefer it when
there are multiple projects.  Hint: Set it with
`add-dir-local-variable' in the project root to make it global
for this project."
  :safe #'stringp)

that can be used to avoid "omnisharp: no unambigious project path could be found" ?

@razzmatazz
Copy link
Contributor

razzmatazz commented Jul 2, 2019

Sorry for replying after this long time.

As usual, I am kind of weary of adding too many customization points since we would have to maintain that all along. I am not against this approach, I am just loud-out thinking what the other options could be?

What about pre-selecting last solution for a file? So hitting enter blindly would do the job for you, or is it still too much noise?

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

No branches or pull requests

2 participants