Skip to content

Add support to lsif generation to generate for a single project#51458

Merged
6 commits merged intodotnet:masterfrom
CyrusNajmabadi:lsifProject
Mar 2, 2021
Merged

Add support to lsif generation to generate for a single project#51458
6 commits merged intodotnet:masterfrom
CyrusNajmabadi:lsifProject

Conversation

@CyrusNajmabadi
Copy link
Contributor

No description provided.

Copy link
Member

@jasonmalinowski jasonmalinowski left a 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);
Copy link
Member

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.

Copy link
Contributor Author

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)
        {

CyrusNajmabadi and others added 5 commits March 1, 2021 16:50
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>
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approval

@ghost ghost merged commit d1adf48 into dotnet:master Mar 2, 2021
@ghost ghost added this to the Next milestone Mar 2, 2021
@allisonchou allisonchou modified the milestones: Next, 16.10.P2 Mar 29, 2021
@CyrusNajmabadi CyrusNajmabadi deleted the lsifProject branch April 11, 2021 18:20
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants