Move host analyzer references to Solution snapshot#42240
Move host analyzer references to Solution snapshot#42240tmat merged 15 commits intodotnet:masterfrom
Conversation
0b74b44 to
e63cf13
Compare
be4d623 to
da428f8
Compare
da428f8 to
67a75df
Compare
src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Log/FunctionId.cs
Outdated
Show resolved
Hide resolved
89dbfc7 to
eb62411
Compare
|
@mavasani @CyrusNajmabadi @jasonmalinowski @dotnet/roslyn-ide PTAL |
eb62411 to
831755b
Compare
|
Any recommendation on how to review this? |
|
@CyrusNajmabadi Commit by commit should work. |
76b2efa to
553c0a5
Compare
|
Is DocumentDiagnosticAnalyzer.cs moving between layers a problem? We don't have any IVT use of that? |
Good point. I'll check. If we do, I'm gonna add type forwarder. |
|
Pretty sure TypeScript uses DocumentDiagnosticAnalyzer. |
Type forwarders are only useful if you're pushing stuff down, not up. 😦 |
|
I'm pushing them down from Features to Workspaces, no? |
jasonmalinowski
left a comment
There was a problem hiding this comment.
Leaving comments so far.
src/EditorFeatures/Test/RenameTracking/RenameTrackingTestState.cs
Outdated
Show resolved
Hide resolved
src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioWorkspaceImpl.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Was this previously async? If it wasn't this may risk some flakiness in integration tests if we have any. Surround it with an async listener operation so tests can appropriately wait?
There was a problem hiding this comment.
Added. I assume integration tests need to be updated to wait for it. Where should such wait be done?
src/Features/Core/Portable/GenerateType/AbstractGenerateTypeService.Editor.cs
Outdated
Show resolved
Hide resolved
src/Workspaces/Core/Portable/Workspace/Solution/SolutionState.cs
Outdated
Show resolved
Hide resolved
src/Workspaces/Core/Portable/Workspace/Solution/SolutionState.cs
Outdated
Show resolved
Hide resolved
src/Workspaces/Core/Portable/Workspace/Solution/SolutionState.cs
Outdated
Show resolved
Hide resolved
src/Workspaces/Core/Portable/Workspace/Solution/SolutionState.cs
Outdated
Show resolved
Hide resolved
|
And oh: I carefully reviewed the workspace changes, and less carefully reviewed anything to the diagnostics system. It looked like most of it was just simply types changing as things flowed around, but if there was something "interesting" there I either missed it or didn't appreciate it's interestingness. |
...dio/Core/Def/Implementation/Remote/RemoteHostClientServiceFactory.RemoteHostClientService.cs
Outdated
Show resolved
Hide resolved
mavasani
left a comment
There was a problem hiding this comment.
LGTM - I primarily looked at the diagnostics related changes.
c169ea3 to
8762293
Compare
jasonmalinowski
left a comment
There was a problem hiding this comment.
Initialization issue fixed, still a potential MEF deadlock risk. Easy to fix though: move the stuff running in MEF constructors just to run "later" and not until your fire-and-forget task is launched.
src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerFileReference.cs
Outdated
Show resolved
Hide resolved
...Studio/Core/Def/Implementation/Diagnostics/VisualStudioDiagnosticAnalyzerProvider.Factory.cs
Outdated
Show resolved
Hide resolved
...Studio/Core/Def/Implementation/Diagnostics/VisualStudioDiagnosticAnalyzerProvider.Factory.cs
Outdated
Show resolved
Hide resolved
.../Implementation/Diagnostics/VisualStudioDiagnosticAnalyzerProvider.WorkspaceEventListener.cs
Outdated
Show resolved
Hide resolved
src/VisualStudio/Core/Def/Implementation/Diagnostics/VisualStudioDiagnosticAnalyzerProvider.cs
Outdated
Show resolved
Hide resolved
src/Workspaces/Core/Portable/Workspace/Solution/SolutionState.cs
Outdated
Show resolved
Hide resolved
src/Workspaces/Core/Portable/Workspace/Solution/SolutionState.cs
Outdated
Show resolved
Hide resolved
37a6c72 to
0a4b112
Compare
Moves host analyzer references to SolutionState.
Fixes #41127