-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Do not duplicate directives when converting from property to methods #76184
Do not duplicate directives when converting from property to methods #76184
Conversation
@@ -1738,13 +1748,6 @@ internal interface ILanguageServiceHost | |||
/// An value that provides access to the language service for the active configured project. | |||
/// </returns> | |||
object GetActiveProjectContext(); | |||
|
|||
/// <summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i thought about it, but decided it was something the user would need to take care of to decide how they wanted the existing comment to map over to multiple members.
CancellationToken cancellationToken) | ||
{ | ||
var methodDeclaration = GetSetMethodWorker(); | ||
|
||
// The analyzer doesn't report diagnostics when the trivia contains preprocessor directives, so it's safe | ||
// to copy the complete leading trivia to both generated methods. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this comment used to be true? It seems like the code was written with consideration to pp directives, so I'm curious where it went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah. that comment looks to be a big fat lie. it might have been true way in the past. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #75186