-
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
Simplify lsif generation concepts #65858
Conversation
@@ -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; |
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.
note that we always used GeneratorOptions.Default here. so the callers of this method just pas that along instead.
@jasonmalinowski ptal. |
src/Features/LanguageServer/Protocol/Handler/Hover/HoverHandler.cs
Outdated
Show resolved
Hide resolved
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.
Lots of small changes requested but nothing huge.
Co-authored-by: Jason Malinowski <[email protected]>
@@ -18,29 +18,16 @@ | |||
|
|||
namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator | |||
{ | |||
internal class CompilerInvocation | |||
internal static class CompilerInvocation |
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.
Not sure if this can/should be renamed to something else but it's fine.
Should be reviewed one PR at a time.