-
Notifications
You must be signed in to change notification settings - Fork 168
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
Receive information that a project was loaded #849
Receive information that a project was loaded #849
Conversation
@microsoft-github-policy-service agree |
Thanks @Melandel, sorry for the slow response time. I've had a look and this looks fine. In dotnet6 project the Before I merge, can you please force push a clean commit message that doesn't include emoji or excessive whitespace? "Receive information that a project was loaded" is plenty. |
Sure!
https://github.com/Melandel/Zuc.Tests.SourceCodeExperiments
will do :) |
5c8053a
to
eb80a73
Compare
I am able to open this solution without issues in both linux and Windows. Apart from not being able to reproduce the original issue, the problem I'm having with this PR is that if index(a:job.loading, a:project) < 0 | return | endif |
💌 Motivation: `OmniSharpReloadProject` throws because it does not find key `job.projects_loaded`
eb80a73
to
9cf4a72
Compare
Hmm. When I add When I don't add PS: Alright, I can confirm that |
…sponses and `OmniSharpReloadProject` project load responses
The last commit should be a better solution to both our issues. Let me know what you think! |
I don't have the problems you are having. On my system, the Edit: I accidentally wrote "project load" instead of "project reload" which was confusing |
OK after more testing I realise I was wrong in my previous comment, the |
Found it.
Wild guess from omnisharp-roslyn's code. So, this apparently means the currently implemented triggers are dependant on having |
Ahhh that makes sense |
Hehe. Should we parse |
I actually think it might be safer to override the value of |
Resolved in #851 |
💌 Motivation:
OmniSharpReloadProject
would otherwise throw because it does not find keyjob.projects_loaded
In order to fill this property, I tried to figure out why it did not exist. Turns out that on my codebases (dotnet6 maybe?) don't detect loaded project events.
echomsg
-based debugging told me we did receiveMSBuildProjectDiagnostics
events, on which I started listening.Omnisharp-roslyn seems to confirm this is a reliable source of truth (moreso than the existing detection method): https://github.com/OmniSharp/omnisharp-roslyn/blob/e5606354c5c652fc8ecc83d877a2b00d32656d5d/src/OmniSharp.MSBuild/ProjectManager.cs#L327