-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Work to unify threading concepts between Workspace and ProjectSystemProjectFactory (part2) #67524
Conversation
{ | ||
w.OnProjectAdded(projectInfo); | ||
} | ||
await w.SetCurrentSolutionAsync( |
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.
this now uses the new helper, spinning until it 'wins' and actually makes the change to the workspace. this is the primary functional change intended by thsi PR, moving away from manually splatting the OnSolutionAdded call.
@jasonmalinowski ptal. fairly simple change. |
@@ -78,57 +77,76 @@ public ProjectSystemProjectFactory(Workspace workspace, IFileChangeWatcher fileC | |||
|
|||
public async Task<ProjectSystemProject> CreateAndAddToWorkspaceAsync(string projectSystemName, string language, ProjectSystemProjectCreationInfo creationInfo, ProjectSystemHostInfo hostInfo) | |||
{ | |||
var id = ProjectId.CreateNewId(projectSystemName); | |||
var projectId = ProjectId.CreateNewId(projectSystemName); |
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.
just a rename as 'id' was very confusing to me.
assemblyName, | ||
creationInfo.CompilationOptions, | ||
creationInfo.FilePath, | ||
creationInfo.ParseOptions); |
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.
just removed named options i thought were redundant.
compilationOptions: creationInfo.CompilationOptions, | ||
filePath: creationInfo.FilePath, | ||
parseOptions: creationInfo.ParseOptions); |
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.
pulled creation of this info singleton up out of hte lambda.
@dibarbet ptal as jason is away currently. thanks! |
Followup to #67522
Continue to move existing ProjectSystemProjectFactory code over to using transformation-helper supplied by workspace.