Skip to content

Move designer attribute scanning out-of-process#42346

Merged
CyrusNajmabadi merged 63 commits intodotnet:masterfrom
CyrusNajmabadi:designerOOP
Mar 15, 2020
Merged

Move designer attribute scanning out-of-process#42346
CyrusNajmabadi merged 63 commits intodotnet:masterfrom
CyrusNajmabadi:designerOOP

Conversation

@CyrusNajmabadi
Copy link
Contributor

@CyrusNajmabadi CyrusNajmabadi commented Mar 11, 2020

Fixes #42186

// cache the update service for cps projects. Computed on demand (slow), but then cached for
// quick responses after that.
private readonly ConcurrentDictionary<ProjectId, IProjectItemDesignerTypeUpdateService> _cpsProjects
= new ConcurrentDictionary<ProjectId, IProjectItemDesignerTypeUpdateService>();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copied the code for this (including how it is initialized) from the previous impl.

// Make sure this is a document we still know about when OOP notifies us.
var document = project.GetDocument(info.DocumentId);
if (document == null)
return;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the rest of the code in this method matches what we previously did in the last incremental analyzer. the code is copied almost unchanged.

@tmat
Copy link
Member

tmat commented Mar 13, 2020

            .WithChangedOption(RemoteHostOptions.RemoteHostTest, remote)));

Seems unnecessary. I don't see any RPCs here (which is a good thing, let's just unit test the DesignAttributeHelpers here). DesignerAttributeHelpers just works with local document/project.


Refers to: src/VisualStudio/CSharp/Test/DesignerAttribute/DesignerAttributeServiceTests.cs:92 in 7254c99. [](commit_id = 7254c99, deletion_comment = False)

@CyrusNajmabadi
Copy link
Contributor Author

Updated tests.

@CyrusNajmabadi CyrusNajmabadi requested a review from tmat March 13, 2020 19:03
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

@CyrusNajmabadi CyrusNajmabadi merged commit 6895112 into dotnet:master Mar 15, 2020
@CyrusNajmabadi CyrusNajmabadi deleted the designerOOP branch March 15, 2020 00:50
@ghost ghost added this to the Next milestone Mar 15, 2020
@CyrusNajmabadi
Copy link
Contributor Author

Thanks!

@sharwell sharwell modified the milestones: Next, 16.6.P2 Mar 17, 2020
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.

Move DesignerAttributeIncrementalAnalyzer OOP

4 participants