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

Work to unify threading concepts between Workspace and ProjectSystemProjectFactory (part2) #67524

Merged
merged 5 commits into from
May 2, 2023

Conversation

CyrusNajmabadi
Copy link
Member

Followup to #67522

Continue to move existing ProjectSystemProjectFactory code over to using transformation-helper supplied by workspace.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 28, 2023
{
w.OnProjectAdded(projectInfo);
}
await w.SetCurrentSolutionAsync(
Copy link
Member Author

@CyrusNajmabadi CyrusNajmabadi Mar 28, 2023

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.

@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review April 26, 2023 16:08
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner April 26, 2023 16:08
@CyrusNajmabadi
Copy link
Member Author

@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);
Copy link
Member Author

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);
Copy link
Member Author

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);
Copy link
Member Author

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.

@CyrusNajmabadi
Copy link
Member Author

@dibarbet ptal as jason is away currently. thanks!

@CyrusNajmabadi CyrusNajmabadi merged commit 06ab3cb into dotnet:main May 2, 2023
@ghost ghost added this to the Next milestone May 2, 2023
@CyrusNajmabadi CyrusNajmabadi deleted the sharedLock3 branch May 2, 2023 18:02
@Cosifne Cosifne modified the milestones: Next, 17.7 P2 May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants