-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Add support to lsif generation to generate for a single project #51458
Conversation
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.
Comments are just some rename/message updates since "solutionFile" isn't always the solution file anymore.
|
||
private static async Task GenerateFromProjectAsync(FileInfo projectFile, ILsifJsonWriter lsifWriter, TextWriter logFile) | ||
{ | ||
await LocateAndRegisterMSBuild(logFile); |
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.
Any reason not to just move the call to LocateAndRegisterMSBuild() into GenerateWithMSBuildLocatedAsync? Either merge the methods or just add it to the start of the other one, etc.
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.
Comments ont he method say:
// This method can't be loaded until we've registered MSBuild with MSBuildLocator, as otherwise
// we load ILogger prematurely which breaks MSBuildLocator.
[MethodImpl(MethodImplOptions.NoInlining)]
private static async Task GenerateWithMSBuildLocatedAsync(
FileInfo solutionOrProjectFile, ILsifJsonWriter lsifWriter, TextWriter logFile,
Func<MSBuildWorkspace, Task<Solution>> openAsync)
{
Co-authored-by: Jason Malinowski <jason@jason-m.com>
Co-authored-by: Jason Malinowski <jason@jason-m.com>
Co-authored-by: Jason Malinowski <jason@jason-m.com>
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.
Auto-approval
No description provided.