Skip to content
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

Merged
6 commits merged into from
Mar 2, 2021

Conversation

CyrusNajmabadi
Copy link
Member

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.

src/Features/Lsif/Generator/Program.cs Show resolved Hide resolved

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

src/Features/Lsif/Generator/Program.cs Outdated Show resolved Hide resolved
src/Features/Lsif/Generator/Program.cs Outdated Show resolved Hide resolved
src/Features/Lsif/Generator/Program.cs Outdated Show resolved Hide resolved
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