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

Simplify lsif generation concepts #65858

Merged
merged 17 commits into from
Dec 10, 2022
Merged

Conversation

CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented Dec 8, 2022

Should be reviewed one PR at a time.

@@ -113,10 +113,12 @@ public static async Task<CompilerInvocation> CreateFromInvocationInfoAsync(Compi
hostObjectType: null);

var solution = workspace.CurrentSolution.AddProject(projectInfo);
var compilation = await solution.GetRequiredProject(projectId).GetRequiredCompilationAsync(CancellationToken.None);
var options = GeneratorOptions.Default;
Copy link
Member Author

Choose a reason for hiding this comment

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

note that we always used GeneratorOptions.Default here. so the callers of this method just pas that along instead.

@CyrusNajmabadi
Copy link
Member Author

@jasonmalinowski ptal.

@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review December 8, 2022 17:01
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 8, 2022 17:01
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.

Lots of small changes requested but nothing huge.

src/Features/Lsif/Generator/Generator.cs Outdated Show resolved Hide resolved
src/Features/Lsif/Generator/Generator.cs Outdated Show resolved Hide resolved
src/Features/Lsif/Generator/Generator.cs Outdated Show resolved Hide resolved
src/Features/Lsif/Generator/Generator.cs Show resolved Hide resolved
src/Features/Lsif/Generator/Generator.cs Outdated Show resolved Hide resolved
@@ -18,29 +18,16 @@

namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator
{
internal class CompilerInvocation
internal static class CompilerInvocation
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if this can/should be renamed to something else but it's fine.

@CyrusNajmabadi CyrusNajmabadi merged commit f38e05e into dotnet:main Dec 10, 2022
@ghost ghost added this to the Next milestone Dec 10, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the lsifProject branch December 10, 2022 02:42
@Cosifne Cosifne modified the milestones: Next, 17.5 P3 Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants