Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: roslyn doesn't attach to cs buffer when .sln is not present
The condition `not sln or not csproj` in sln.utils.root_dir was causing roslyn not to attach to cs buffer if one of .csproj or .sln was not found via `vim.fs.root_dir` This behavior was introduced relatively recently in d121ca7 The fix updates the condition to allow for only one of these being found (the rest of the code already seems to account for it). After updating the condition, find_files_with_extension(sln, ".sln") was breaking as well, so I wrapped those calls in their own separate conditions based on if .csproj or .sln root directories were found. Existing github issue: seblyng#87 address pr feedback: early return on no sln
- Loading branch information