-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Mark error as build only #80698
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
base: main
Are you sure you want to change the base?
Mark error as build only #80698
Conversation
@dotnet/roslyn-compiler ptal. |
I'd think I'd rather see us call |
Also, please don't forget to test VB here, I assume something similar may exist. |
I will be fine if we start with making a simple change that reflects the current state of affairs with respect to when the error is reported. Changing at which compilation phase the error is reported could be done later if we have a strong case for that. |
@AlekseyTs I'd argue that the original bug report is that case; @svick is confused why the error isn't showing up immediately. If that's not enough of a justification, then I don't know what would ever be enough of a justification. |
my concerns with GetEntryPointAndDiagnostics are:
|
|
Since the PR provided no explanation other than claiming that it fixed the issue, I assumed this change led to a desired IDE behavior. @CyrusNajmabadi could you please clarify? |
Yes. It addresses things where build errors are not filtered out when you go to 'build + intellisense' errors. Right now they are filtered out because we think this is a 'live' diagnostic, and thus we don't show the actual build diagnostic sincce we think it would cause duplicate errors. |
Sorry, it is still not clear to me. In your opinion, will the user remain confused after the change or not? |
I do not believe they will be confused. |
Fixes #17259