-
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
EE: Handle notification when metadata has been invalidated #75423
Changes from 8 commits
7fe1a1f
1280480
cbdaac5
00d24fb
a5ccef7
5b621fe
8cfc30a
cd4420b
3e17398
5b5c136
5fdf51d
bb573d0
c6a02f7
e2cf933
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
using System.Diagnostics; | ||
using System.IO; | ||
using System.Threading; | ||
using Microsoft.CodeAnalysis.Collections; | ||
using Microsoft.CodeAnalysis.PooledObjects; | ||
using Microsoft.VisualStudio.Debugger; | ||
using Microsoft.VisualStudio.Debugger.CallStack; | ||
|
@@ -23,6 +22,7 @@ namespace Microsoft.CodeAnalysis.ExpressionEvaluator | |
public abstract class ExpressionCompiler : | ||
IDkmClrExpressionCompiler, | ||
IDkmClrExpressionCompilerCallback, | ||
IDkmMetaDataPointerInvalidatedNotification, | ||
IDkmModuleModifiedNotification, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I'd prefer keeping the implementation of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They will not conflict - just a bit of a perf overhead since now Rosyln will be notified twice anytime, we modify an assembly. |
||
IDkmModuleInstanceUnloadNotification, | ||
IDkmLanguageFrameDecoder, | ||
|
@@ -247,6 +247,11 @@ internal static bool ShouldTryAgainWithMoreMetadataBlocks(DkmUtilities.GetMetada | |
return false; | ||
} | ||
|
||
void IDkmMetaDataPointerInvalidatedNotification.OnMetaDataPointerInvalidated(DkmClrModuleInstance moduleInstance) | ||
{ | ||
RemoveDataItemIfNecessary(moduleInstance); | ||
} | ||
|
||
void IDkmModuleModifiedNotification.OnModuleModified(DkmModuleInstance moduleInstance) | ||
{ | ||
RemoveDataItemIfNecessary(moduleInstance); | ||
|
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.
Do we need to reference a newer version of Microsoft.VSSDK.Debugger.VSDConfigTool (at line 67) as well, so that
VSDConfigTool.exe
recognizes the added interface? #Closed