Skip to content

Rely on PDB document table for identification of design-time-only source files#39295

Merged
tmat merged 1 commit intodotnet:masterfrom
tmat:EncDTD
Oct 15, 2019
Merged

Rely on PDB document table for identification of design-time-only source files#39295
tmat merged 1 commit intodotnet:masterfrom
tmat:EncDTD

Conversation

@tmat
Copy link
Member

@tmat tmat commented Oct 15, 2019

Use document list in PDB as the definitive indicator of whether a source file is design-time-only or not. This is now possible due to #39136.

Fixes #39271.
Fixes ADO 899910: Pop up a "Edit and Continue" dialog without ENC about C# uwp app

@tmat tmat requested a review from a team as a code owner October 15, 2019 18:06
@tmat
Copy link
Member Author

tmat commented Oct 15, 2019

PTAL @ivanbasov
FYI @jinujoseph

@tmat tmat merged commit 74198bf into dotnet:master Oct 15, 2019
@tmat tmat deleted the EncDTD branch October 15, 2019 19:52
@jinujoseph jinujoseph added this to the 16.4.P3 milestone Oct 15, 2019
tmat added a commit to tmat/roslyn that referenced this pull request Nov 15, 2019
…ebugging session starts

Previous change dotnet#39295 allowed us to rely on PDB source file checksums when distinguishing between design-time-only documents that should be ignored when applying changes and documents whose changes must be applied to the debuggee. The change did not handle the case when the PDB isn't loaded yet when this check is being performed. This bug resulted in changes not being applied correctly and documents getting out-of-sync in scenarios where the modules were not loaded to the debuggee fast enough.

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1013242
tmat added a commit that referenced this pull request Nov 18, 2019
#39836)

* EnC: Fix document out-of-sync checks when module is not loaded when debugging session starts

Previous change #39295 allowed us to rely on PDB source file checksums when distinguishing between design-time-only documents that should be ignored when applying changes and documents whose changes must be applied to the debuggee. The change did not handle the case when the PDB isn't loaded yet when this check is being performed. This bug resulted in changes not being applied correctly and documents getting out-of-sync in scenarios where the modules were not loaded to the debuggee fast enough.

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1013242
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EnC does not show diagnostic when editing files without method bodies

3 participants